joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa49
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416c08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405c3b
mov dword [ebp - 0x14], eax
cmp dword [0x43c4ec], esi
jne 0x40ab3c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40aac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ac1c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ac1c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac1c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43c4ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43c4f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43c4f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43c4fc], eax
test eax, eax
je 0x40ab39
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43c4f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ab61
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ab54
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ab76
push 4
pop eax
jmp 0x40ac1e
cmp dword [ebp - 0x14], esi
je 0x40ab76
push dword [0x43c4ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ab5b
mov eax, dword [0x43c4f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40abd4
cmp dword [0x43c4fc], edi
je 0x40abd4
push eax
call ebx
push dword [0x43c4fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40abd4
test eax, eax
je 0x40abd4
call ecx
test eax, eax
je 0x40abc9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40abc9
test byte [ebp - 8], 1
jne 0x40abd4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ac04
mov eax, dword [0x43c4f0]
cmp eax, edi
je 0x40ac01
push eax
call ebx
test eax, eax
je 0x40ac01
call eax
mov esi, eax
test esi, esi
je 0x40ac01
mov eax, dword [0x43c4f4]
cmp eax, edi
je 0x40ac01
push eax
call ebx
test eax, eax
je 0x40ac01
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43c4ec]
call ebx
test eax, eax
je 0x40ac1c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ac1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004038cd
mov esp, ebp
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x409e9b
pop dword [ebp - 0x38]
mov eax, 0x55f41b7
add eax, 0xfae15ce4
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xae663132
add dword [ebp - 0x48], 0x9fec1419
mov dword [ebp - 0x44], 0x96b21ad9
add dword [ebp - 0x44], 0x9b81316c
mov dword [ebp - 0x40], 0x695e23e9
add dword [ebp - 0x40], 0xe2ee2045
mov dword [ebp - 0x3c], 0x3910cabe
sub dword [ebp - 0x3c], 0x3910cabe
lea eax, [ebp - 0x48]
push eax
mov eax, 0x8acf66e7
sub eax, 0x8a8e9693
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x8b7fec18
add dword [ebp - 0x48], 0xe8f27d3e
mov dword [ebp - 0x44], 0x3b118f5d
add dword [ebp - 0x44], 0x65ad218
mov dword [ebp - 0x40], 0xc006f42b
sub dword [ebp - 0x40], 0x5c9787bf
mov dword [ebp - 0x3c], 0x63567339
sub dword [ebp - 0x3c], 0x63567339
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x6eb9632b
add eax, 0x91876d21
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37276
push 0
call eax
mov ecx, 0x292f4718
sub ecx, 0x292f0906
mov esi, eax
mov edi, 0x2aa4bd89
add edi, 0xd59cf277
add edi, dword [ebp - 0x38]
mov ebx, 0x8deff048
add ebx, 0xe6f81dd5
xor dword [ebp - 0x28], 0x19228efe
mov edx, dword [edi]
add dword [ebp - 0x34], ebx
xor edx, ebx
add dword [ebp - 0x2c], 0x4104793e
mov dword [esi], edx
sub dword [ebp - 0x10], 0x112c3a7a
add esi, 0x8f56a16a
add esi, 0x70a95e9a
add edi, 4
loop 0x409fbd
add eax, 0xd7ef7315
add eax, 0x28117806
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x40b481
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0040b500
jae 0x40b48d
xor ecx, ecx
call fcn.0040b500
jae 0x40b4b7
xor eax, eax
call fcn.0040b500
jae 0x40b4c8
mov al, 0x10
call fcn.0040b500
adc al, al
jae 0x40b4a9
jne 0x40b4f5
stosb byte es:[edi], al
jmp 0x40b48e
call fcn.0040b50c
dec ecx
loop 0x40b4d4
mov eax, ebp
call fcn.0040b50a
jmp 0x40b4f6
lodsb al, byte [esi]
shr eax, 1
je 0x40b51c
adc ecx, 2
mov ebp, eax
jmp 0x40b4f6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040b50a
cmp eax, 0x7d00
jae 0x40b4f4
cmp eax, 0x500
jae 0x40b4f5
cmp eax, 0x7f
ja 0x40b4f6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40b48e
pop ebp
ret 8
Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x401078
push str.Windows_original_main_args:_n
call fcn.004010f9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebx
pop ecx
call edi
cmp dword [eax], ebx
jle 0x401078
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.004010f9
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401058
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea ecx, [edi*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebx
test edi, edi
jle 0x4010b2
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x4010a7
mov ecx, dword [str.java]
mov dword [esi + edx*4], ebx
test ecx, ecx
jne 0x4010c1
mov ecx, dword [esi]
mov eax, dword [section..data]
test eax, eax
jne 0x4010cc
mov eax, dword [esi]
push ebx
push ebx
push ebx
push 1
push ecx
push eax
push 0x4021bc
push 0x4021c0
push 0x40300c
push 2
push 0x403004
push 2
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x407178
cmp byte [esi + ebx - 1], 0xa
je 0x40714c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4082bc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x407ce0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1008aeb0
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x108247c], al
jne 0x1008b020
pushal
mov esi, section.UPX1
lea edi, [esi - 0x71000]
push edi
or ebp, 0xffffffff
jmp 0x1008aee1
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1008aee8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1008aed7
mov eax, 1
add ebx, ebx
jne 0x1008aefa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1008af0b
jne 0x1008af1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1008af1b
dec eax
add ebx, ebx
jne 0x1008af17
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1008aeef
xor ecx, ecx
sub eax, 3
jb 0x1008af33
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1008afa5
sar eax, 1
mov ebp, eax
jmp 0x1008af3e
add ebx, ebx
jne 0x1008af3e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1008af4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1008af6f
inc ecx
add ebx, ebx
jne 0x1008af5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1008af50
jne 0x1008af6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1008af50
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1008af8f
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1008af80
jmp 0x1008aedd
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1008af8f
add edi, ecx
jmp 0x1008aedd
pop esi
lea edi, [esi + 0x87000]
mov eax, dword [edi]
or eax, eax
je 0x1008afee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8e628]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8e650]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1008afac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8e654]
or eax, eax
je 0x1008afe8
mov dword [ebx], eax
add ebx, 4
jmp 0x1008afc9
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1008b01f
cmp al, 0xef
ja 0x1008b012
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1008aff4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1008b001
popal
jmp 0x10001187
Function at 0x6406a9b0
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x640fe3b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.6406aac0
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0x248
push eax
lea esi, [ebp - 0x24c]
mov eax, esi
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
cmp eax, 0x6f
jne 0x6406aa3d
push dword [ebp - 0x250]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x6406aa23
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetNetworkParams]
test eax, eax
je 0x6406aa3d
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, edi
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::constructor_void_]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea eax, [esi + 0x84]
push eax
lea ecx, [ebp - 0x254]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::constructor_char_const___int_]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_static_class_kso_qt::QString___cdecl_kso_qt::QUrl::fromAce_class_kso_qt::QByteArray_const__]
add esp, 8
lea ecx, [ebp - 0x254]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QByteArray::destructor_void_]
lea eax, [ebp - 0x24c]
cmp esi, eax
je 0x6406aa89
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [ebp - 0x258]
mov ecx, edi
push eax
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::constructor_class_kso_qt::QString__]
lea ecx, [ebp - 0x258]
call dword [sym.imp.Qt5CoreKso.dll_public:_void___thiscall_kso_qt::QString::destructor_void_]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.640ad545
mov esp, ebp
pop ebp
ret
Function at 0x6407c470
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.6407eda0
Function at 0x6407d730
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
mov esi, ecx
push eax
push 0x4004667f
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x6407d785
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or eax, 0xffffffff
or edx, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
cmp eax, 1
jne 0x6407d7f4
cmp dword [esi + 0x50], eax
jne 0x6407d7f4
push 0
push 0
push 0
push 0
lea eax, [ebp - 1]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 2
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x6407d7f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
je 0x6407d7e7
cmp eax, 0x2744
je 0x6407d7e7
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6407d810
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x640fe3b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
push eax
push edi
push dword [ebp + 0xc]
mov esi, ecx
call fcn.6407ee70
mov eax, dword [esi + 0x54]
cmp eax, 1
je 0x6407d84c
cmp eax, 2
jne 0x6407d871
mov ecx, edi
call sym.Qt5NetworkKso.dll_public:_enum_kso_qt::QSsl::SslProtocol___thiscall_kso_qt::QSslConfiguration::sessionProtocol_void_
test eax, eax
je 0x6407d871
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 0x1b
push 0x29
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push 0
push 0
push dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x6407d9f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov ecx, 0x2734
cmove eax, ecx
mov ecx, eax
sub ecx, 0x2733
je 0x6407d8ba
sub ecx, 0x3a
je 0x6407d9da
jmp 0x6407d9d0
push ebx
xor bl, bl
mov dword [ebp - 0x24], 0
xor bh, bh
mov dword [ebp - 0x28], 4
xor edi, edi
nop
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x1007
push 0xffff
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne case.0x6407d93b.10014
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x6407d921
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x1007
push 0xffff
push dword [esi + 0x74]
mov bh, 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x24]
jmp 0x6407d926
test bl, bl
sete bl
add eax, 0xffffd8e3
cmp eax, 0x34
ja case.0x6407d93b.10014
movzx eax, byte [eax + 0x6407da3c]
jmp dword [eax*4 + 0x6407da10]
mov dword [esi + 0x4c], 3
jmp case.0x6407d93b.10014
push 9
push 7
mov ecx, esi
call fcn.6407c150
mov dword [esi + 0x4c], 0
jmp case.0x6407d93b.10014
push 0xf
jmp 0x6407d94d
push 8
push 0xb
mov ecx, esi
call fcn.6407c150
mov dword [esi + 0x4c], 2
jmp case.0x6407d93b.10014
push 0xe
push 7
jmp 0x6407d9b1
push 0xd
push 0
mov ecx, esi
call fcn.6407c150
mov dword [esi + 0x4c], 0
jmp case.0x6407d93b.10014
push 0xc
jmp 0x6407d94d
push 0xb
push 3
mov ecx, esi
call fcn.6407c150
mov dword [esi + 0x4c], 0
jmp case.0x6407d93b.10014
push 0xa
jmp 0x6407d94d
push 8
push 0xb
mov ecx, esi
call fcn.6407c150
inc edi
test bl, bl
je 0x6407d9c6
cmp edi, 2
jl 0x6407d8d0
test bh, bh
pop ebx
jne 0x6407d9da
mov eax, 0x2734
push esi
push eax
call fcn.6407eca0
add esp, 8
cmp dword [esi + 0x4c], 3
je 0x6407d9f4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
mov dword [esi + 0x4c], 3
xor ecx, ebp
pop esi
call fcn.640ad545
mov esp, ebp
pop ebp
ret 8
Function at 0x6407da80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x640fe3b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
lea eax, [ebp - 0x21]
mov dword [ebp - 0x28], 0x1c
mov dword [ebp - 0x34], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movq qword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], 1
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], 2
push eax
push dword [ecx + 0x74]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
pop esi
jne 0x6407db1c
cmp eax, 0x2738
je 0x6407db1c
cmp eax, 0x2746
je 0x6407db1c
cmp eax, 0x2744
je 0x6407db1c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret

Function at 0x6407de10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x640fe3b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 5
push edi
mov dword [ebp - 0x5e8], esi
xor ecx, ecx
mov edx, 8
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.640ada7d
add esp, 4
xor ecx, ecx
mov edi, eax
test ebx, ebx
je 0x6407de76
nop word [eax + eax]
lea eax, [ebp - 0x5e0]
mov dword [edi + ecx*8], 0x5dc
mov dword [edi + ecx*8 + 4], eax
inc ecx
cmp ecx, ebx
jb 0x6407de60
push 0
push 0
lea eax, [ebp - 0x5f0]
mov dword [ebp - 0x5f0], 2
push eax
lea eax, [ebp - 0x5e4]
mov dword [ebp - 0x5e4], 0
push eax
push ebx
push edi
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 0xffffffff
jne 0x6407defc
sub eax, 0x2738
jne 0x6407ded2
push edi
add ebx, 5
call fcn.640ada86
mov esi, dword [ebp - 0x5e8]
add esp, 4
jmp 0x6407de33
sub eax, 0xc
je 0x6407dee3
sub eax, 2
je 0x6407dee3
or esi, 0xffffffff
or ebx, esi
jmp 0x6407df04
xorps xmm0, xmm0
movlpd qword [ebp - 0x5ec], xmm0
mov ebx, dword [ebp - 0x5e8]
mov esi, dword [ebp - 0x5ec]
jmp 0x6407df04
mov esi, dword [ebp - 0x5e4]
xor ebx, ebx
test edi, edi
je 0x6407df11
push edi
call fcn.640ada86
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.640ad545
mov esp, ebp
pop ebp
ret
Function at 0x6407df30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push esi
push edi
push 0
mov dword [ebp - 4], eax
or esi, 0xffffffff
mov eax, dword [ebp + 0xc]
or edi, esi
push 0
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
mov dword [ebp + 0x10], 0
push eax
push 1
lea eax, [ebp - 8]
mov dword [ebp + 8], 0
push eax
push dword [ecx + 0x74]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, esi
jne 0x6407dfa7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6407dfb4
add eax, 0xffffd8bb
cmp eax, 1
ja 0x6407dfcd
xorps xmm0, xmm0
movlpd qword [ebp + 0xc], xmm0
mov edi, dword [ebp + 0x10]
mov edx, edi
mov esi, dword [ebp + 0xc]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x6407dfc8
or edi, 0xffffffff
mov esi, 0xfffffffe
mov edx, edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor edi, edi
mov edx, edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc