joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537a70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10c], esi
mov esi, edx
mov ebx, eax
xor ecx, ecx
push ebp
push 0x537b1b
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x105]
xor ecx, ecx
mov edx, 0x105
call fcn.00403268
push 0
push 0
push 0xd
push ebx
call sub.user32.dll_SendMessageA
test eax, eax
jle 0x537ab8
inc eax
lea edx, [ebp - 0x105]
push edx
push eax
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea ecx, [ebp - 0x10c]
mov ecx, 0x105
lea edx, [ebp - 0x105]
call fcn.00404ab0
cmp dword [ebp - 0x10c], 0
je 0x537afb
mov ecx, esi
mov ecx, 0x105
lea edx, [ebp - 0x105]
call fcn.00404ab0
jmp 0x537b02
mov eax, esi
call fcn.00404848
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537b22
lea eax, [ebp - 0x10c]
call fcn.00404848
ret
Function at 0x538b30
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
mov ebx, esp
add esp, 0xfffffec0
push ebp
push edi
push esi
mov dword [ebx - 0xc], ecx
mov dword [ebx - 8], edx
mov dword [ebx - 4], eax
mov eax, dword [ebx - 4]
call fcn.00404ce8
mov eax, dword [ebx - 8]
call fcn.00404ce8
mov eax, dword [ebx - 0xc]
call fcn.00404ce8
xor eax, eax
push ebx
push 0x538d19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.00404848
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebx - 4]
call fcn.00404cf8
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x538cfe
push 0
lea eax, [ebx - 0x10]
push eax
lea eax, [ebx - 0x54]
push 0x40
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
cmp word [ebx - 0x54], 0x5a4d
jne 0x538cfe
push 0
push 0
mov eax, dword [ebx - 0x18]
push eax
push ebp
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebx - 0x10]
push eax
lea eax, [ebx - 0x140]
push 0xe8
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
cmp dword [ebx - 0x10], 0xe8
jne 0x538cfe
cmp dword [ebx - 0x140], 0x4550
jne 0x538cfe
mov eax, dword [ebx - 0xa8]
test eax, eax
je 0x538cfe
cmp dword [ebx - 0xa4], 0
je 0x538cfe
push 0
push 0
push eax
push ebp
call sub.kernel32.dll_SetFilePointer_1
mov eax, dword [ebx - 0xa4]
call fcn.004027d8
mov dword [ebx - 0x14], eax
lea eax, [ebx - 0x10]
push 0
push eax
mov eax, dword [ebx - 0xa4]
push eax
mov eax, dword [ebx - 0x14]
push eax
push ebp
call sub.kernel32.dll_ReadFile_1
push ebp
call sub.kernel32.dll_CloseHandle_1
push ebx
xor ecx, ecx
push 0x538cec
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ecx, dword [ebx - 0xa4]
mov eax, dword [ebx - 8]
mov edx, dword [ebx - 0x14]
call fcn.00538a60
mov ebp, eax
cmp ebp, 0xffffffff
je 0x538ce2
mov eax, dword [ebx - 8]
call fcn.00404b00
mov ecx, dword [ebx - 0xa4]
mov edx, eax
mov eax, dword [ebx - 0x14]
add eax, ebp
add edx, eax
sub ecx, ebp
mov eax, dword [ebx - 0xc]
call fcn.00538a60
mov edi, eax
cmp edi, 0xffffffff
je 0x538ce2
mov eax, dword [ebx + 8]
mov edx, edi
call fcn.00404e84
mov eax, dword [ebx - 8]
call fcn.00404b00
add ebp, eax
dec edi
or edi, edi
jb 0x538ce2
inc edi
xor esi, esi
mov ecx, dword [ebx + 8]
call fcn.00404d50
add ecx, esi
mov eax, ebp
push ecx
mov ecx, esi
xor edx, edx
push edx
push ecx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
sub esp, 0xfffffff8
pop ecx
inc esi
dec edi
mov edx, dword [ebx - 0x14]
mov al, byte [edx + eax]
mov byte [ecx], al
jne 0x538cb7
pop edx
xor eax, eax
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x538cf6
mov eax, dword [ebx - 0x14]
call fcn.004027f8
xor edx, edx
pop eax
pop ecx
pop ecx
mov dword fs:[edx], eax
push 0x538d20
mov edx, 3
lea eax, [ebx - 0xc]
call fcn.0040486c
ret
Function at 0x538d2c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, eax
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0x103
mov ebx, edx
push eax
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x20
mov eax, dword [0x542658]
cmp byte [eax], 1
cmc
sbb eax, eax
push eax
mov eax, esi
push 0
push 0
call fcn.00404cf8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x538df3
push ebp
xor eax, eax
push 0x538dec
push dword fs:[eax]
test bl, bl
mov dword fs:[eax], esp
je 0x538db4
jmp 0x538da3
mov eax, dword [0x542594]
mov eax, dword [eax]
call fcn.004620f0
mov eax, dword [0x54285c]
cmp byte [eax], 0
jne 0x538dbf
push 0xa
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
or eax, eax
jne 0x538d8d
jmp 0x538dbf
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538df3
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop esi
pop ebx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x538e44
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ce8
xor ebx, ebx
push ebp
push 0x538f0d
push dword fs:[ebx]
mov dword fs:[ebx], esp
mov eax, dword [ebp - 4]
call fcn.0040997c
test al, al
je 0x538ef2
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
call fcn.00409dbc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040dbc0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0x538f20
call fcn.00404b4c
mov eax, dword [ebp - 8]
call fcn.0040997c
test al, al
je 0x538ec8
push 0x538f38
push dword [ebp - 8]
push 0x538f44
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404bc0
mov eax, dword [ebp - 0x14]
call fcn.00538dfc
push 1
push 0x538f38
push dword [ebp - 4]
push 0x538f54
mov edx, 3
lea eax, [ebp - 0x18]
call fcn.00404bc0
mov eax, dword [ebp - 0x18]
call fcn.00404cf8
push eax
call sub.kernel32.dll_WinExec
xor esi, esi
pop ebx
pop edx
pop ecx
mov dword fs:[esi], ebx
push 0x538f14
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.0040486c
ret
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add byte [ebp + 8], 0x8b
or eax, 0x5a39c8
push eax
add ecx, 0x40
push 0x4077d274
push ecx
call dword [0x40c19d]
mov eax, dword [0x410271]
add esp, 0xc
test eax, eax
je 0x401787
push eax
push 0xdaacd254
call dword [0x40ae66]
fcmovnb st(0), st(4)
cld
push 1
call dword [sym.imp.MSVCRT.dll_exit]
nop

Function at 0x404310
Capabilities:
Encode data using xor

Disassembly:
push ebp
push 0xf3f18bec
mov ecx, dword [0xccc0c8]
push esi
mov esi, dword [0x40e180]
push eax
add ecx, 0x40
push str.Usage:__s__options___http:___hostname_:port__path_n
call esi
mov edx, dword [0x40b02e]
push str.Options_are:_n
add edx, 0x40
push edx
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push 0x40f2c6
aas
rol byte [eax + 0x46], 0xff
test al, 0x8b
or eax, sym.imp.MSVCRT.dll__iob
push 0x40f18d
add ecx, 0x40
push ecx
call esi
mov edx, dword [0xedc5c8]
xor ebp, dword [ecx + esi*8 - 0x117cffc0]
inc eax
push edx
call esi
mov eax, dword [sym.imp.MSVCRT.dll__iob]
shl byte [ecx - 0x4c], cl
inc eax
add byte [ebx - 0x74afbf3a], al
salc
mov esi, dword [eax + ecx*8 - 0x40]
inc eax
add byte [eax + 0x48], ch
sbb eax, dword [eax]
add ecx, 0x40
push ecx
aaa
js 0x404316
adc eax, 0x402f0b
push str._____u_putfile______File_containing_data_to_PUT._Remember_also_to_set__T_n
add edx, 0x40
push edx
call dword [eax - 0x5f]
or eax, 0x830040c0
les eax, [ebx + eax*4 - 0x40]
inc eax
push 0x404794
push eax
call esi
mov esp, dword [ecx]
enter 0x40c0, 0x40
push 0x40a458
invalid
Function at 0x406fa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sbb dword [esp], 0x53
push esi
mov eax, dword [ebx + 0xc]
xor ebx, ebx
cmp esi, ebx
xchg dword [ebx + 0x5754e75], esi
mov esi, str.0.0.0.0
mov al, byte [esi]
cmp al, 0x30
cmpxchg dword [ecx + 0x3c000000], edi
cmp dword [edi], ecx
invalid
Function at 0x416e10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x416e31
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x416a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x416e58
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417ef0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.004167e0
test eax, eax
jne 0x417f08
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040d000
cmp eax, esi
je 0x417f51
push eax
call fcn.0040cd00
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x417f49
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.11AC3232_E7D7_49CD_ABFE_501700100B3A
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0040d000
cmp eax, esi
je 0x417fa2
push eax
call fcn.0040cd00
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x417f8e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417f99
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x43f30c]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x433660
mov dword [ebp - 0x1c], str.11AC3232_E7D7_49CD_ABFE_501700100B3A
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00410450
mov dword [ebp - 4], eax
cmp edi, esi
je 0x417fe6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x417ff1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xf58058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f581a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xf5807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5806a
add dl, dl
jne 0xf58089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf580dc
xor eax, eax
add dl, dl
jne 0xf58096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf5817d
add dl, dl
jne 0xf580a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf580d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf58075
mov eax, 1
add dl, dl
jne 0xf580ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf580f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf580e1
sub eax, ebx
mov ebx, 1
jne 0xf58128
mov ecx, 1
add dl, dl
jne 0xf5810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf58119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf58105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf58075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf5813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf5814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf58136
cmp eax, 0x7d00
jae 0xf5816d
cmp eax, 0x500
jb 0xf58168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf58075
cmp eax, 0x7f
ja 0xf58170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf58075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf5819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xf58075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x412f8b
Capabilities:
Identify system language via api

Disassembly:
push 0xbc
mov eax, 0x71c2b7
call fcn.0054dced
mov eax, dword [ebp + 0xc]
test eax, eax
mov ebx, dword [ebp + 8]
jne 0x412fc5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3ff
cmp eax, 4
je 0x412fc2
xor ecx, ecx
cmp eax, 0xa
sete cl
inc ecx
inc ecx
mov eax, ecx
jmp 0x412fc5
xor eax, eax
inc eax
lea edi, [ebx + 4]
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x44], edi
call fcn.00413252
lea esi, [ebp - 0x30]
mov eax, ebx
call fcn.00413124
and dword [ebp - 4], 0
mov ebx, dword [ebx]
push dword [ebx + 0x4c]
add ebx, 0x48
mov edi, ebx
lea esi, [ebp - 0x38]
call fcn.0041a54f
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
jmp 0x4130db
lea esi, [ebp - 0x40]
call fcn.004132de
lea ecx, [ebp - 0x30]
push ecx
push dword [eax]
call fcn.004720e2
test eax, eax
je 0x4130d1
sub esp, 0x1c
lea edi, [eax + 0x1c]
mov eax, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.0044ea2a
pop ecx
mov byte [ebp - 4], 1
call fcn.004132de
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x48], esp
push dword [eax]
call fcn.00407bbe
lea esi, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.00413b3b
add esp, 0x38
mov esi, eax
push esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00407bbe
add esi, 0x1c
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.00407bbe
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.0041318c
xor edi, edi
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x68]
call fcn.00401f4f
push edi
push esi
lea ecx, [ebp - 0x84]
call fcn.00401f4f
push edi
push esi
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0
call fcn.00401f4f
push edi
push esi
lea ecx, [ebp - 0xc8]
call fcn.00401f4f
lea esi, [ebp - 0x40]
call fcn.004132fb
mov edi, ebx
push dword [ebx + 8]
lea esi, [ebp - 0x38]
call fcn.0041a54f
mov edi, esi
lea esi, [ebp - 0x40]
call fcn.0041331b
test al, al
jne 0x413004
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00401f4f
call fcn.0054dd70
ret 8
Function at 0x42d22c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7168c7
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x820ac4]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push esi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
xor ebx, ebx
cmp eax, ebx
je 0x42d29e
mov dword [0x83b674], str._WSAStartup_failed
mov dword [esp + 0x10], ebx
push 0x7f3310
lea eax, [esp + 0x14]
push eax
call fcn.0054d859
cmp byte [esp + 0x14], 2
jne 0x42d384
cmp byte [esp + 0x15], 2
jne 0x42d384
mov dword [0x83b674], str._v2.2
call fcn.00542afe
mov esi, eax
cmp dword [esi + 0x30], ebx
jne 0x42d2f9
push 0x1c
call fcn.005416ba
pop ecx
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, ebx
mov dword [esp + 0x1b8], ebx
je 0x42d2ec
push 0xa
call fcn.00543912
jmp 0x42d2ee
xor eax, eax
or dword [esp + 0x1b8], 0xffffffff
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], ebx
jne 0x42d331
push 0x1c
call fcn.005416ba
pop ecx
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, ebx
mov dword [esp + 0x1b8], 1
je 0x42d324
push 0xa
call fcn.00543912
jmp 0x42d326
xor eax, eax
or dword [esp + 0x1b8], 0xffffffff
mov dword [esi + 0x34], eax
cmp dword [esi + 0x38], ebx
jne 0x42d361
push 0x1c
call fcn.005416ba
pop ecx
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, ebx
mov dword [esp + 0x1b8], 2
je 0x42d35c
push 0xa
call fcn.00543a89
jmp 0x42d35e
xor eax, eax
mov dword [esi + 0x38], eax
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.0054ae61
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push 0x276c
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov ax, word [esp + 0x14]
cmp al, 1
jne 0x42d3ae
cmp ah, al
jne 0x42d3e9
mov dword [0x83b674], str._v1.1
jmp 0x42d3f3
cmp al, bl
jne 0x42d3c3
cmp ah, 2
jne 0x42d3e9
mov dword [0x83b674], str._v2.0
jmp 0x42d3f3
cmp al, 2
jne 0x42d3e9
shr ax, 8
cmp al, 1
jne 0x42d3db
mov dword [0x83b674], str._v2.1
jmp 0x42d3f3
cmp al, bl
mov dword [0x83b674], 0x7b7180
je 0x42d3f3
mov dword [0x83b674], str._vx.x
mov dword [esp + 0xc], ebx
push 0x7f3310
lea eax, [esp + 0x10]
jmp 0x42d298

Function at 0x42df3f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x820ac4]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov ecx, dword [esp + 0x194]
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.0054ae61
mov esp, ebp
pop ebp
ret
Function at 0x431383
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x72aa2a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esi + 0x168]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov byte [esp + 0x14], bl
call fcn.0040d4f7
mov dword [esp + 0x30], ebx
cmp byte [esi + 0x184], bl
je 0x431403
mov dword [esp + 0x14], ebx
call fcn.006598d0
mov dword [esp + 0x18], eax
lea eax, [esi + 0xb0]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [eax + 8]
lea eax, [esp + 0x20]
push eax
mov eax, dword [edx + 0x14]
call fcn.0043352b
mov byte [esi + 0x184], bl
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0xc]
call fcn.0040d1d9
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432d38
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0xffffffff
push esi
push edi
je 0x432df1
xor esi, esi
push esi
push esi
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, esi
je 0x432d6b
push dword [ebx]
mov edi, eax
call fcn.00432fe2
test byte [ebx + 0x88], 2
je 0x432db6
mov word [esp + 0xc], si
mov word [esp + 0xe], si
call fcn.006598d0
mov edi, dword [ebx]
lea esi, [esp + 0x10]
call fcn.00438a2d
push 4
lea eax, [esp + 0x10]
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WSOCK32.dll_setsockopt]
push eax
call fcn.00439127
test eax, eax
pop ecx
jne 0x432db6
call fcn.00438a2d
call fcn.006598d0
push dword [ebx]
lea eax, [esp + 0x14]
call fcn.0043a3e2
pop ecx
or eax, 0xffffffff
mov ecx, ebx
call fcn.0043333d
mov byte [ebx + 0x88], 0
add ebx, 0x8c
and dword [ebx], 0
mov ecx, dword [ebx + 4]
and dword [ebx + 4], 0
test ecx, ecx
je 0x432df1
call fcn.0040a6bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x434c9b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x23c
mov eax, 0x7229ca
call fcn.0054dc84
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x434ce7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea esi, [ebp + 0x18]
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x18
movsd dword es:[edi], dword [esi]
and dword [ebp - 0x24], 0
push 6
pop ecx
mov edi, esp
lea esi, [ebp - 0x38]
mov dword [ebp - 0x28], 0x2719
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
call fcn.00436c71
jmp 0x434e12
lea eax, [ebp + 0x18]
push eax
push 0x48
mov dword [ebp - 0x48], eax
call fcn.0042f861
pop ecx
pop ecx
and dword [ebp - 4], 0
test eax, eax
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
lea edx, [ebp + 0x18]
mov dword [ebp - 0x18], edx
je 0x434d27
sub esp, 0x10
mov edi, esp
push dword [ebp + 0x14]
mov esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
push 2
push eax
mov eax, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
call fcn.00436071
jmp 0x434d29
xor eax, eax
and dword [ebp - 0x44], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
lea ebx, [ecx + 8]
xor edx, edx
jmp 0x434d56
cmp edx, 0x40
jae 0x434d5a
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp + edx*8 - 0x248], edi
mov dword [ebp + edx*8 - 0x244], esi
add ecx, 8
inc edx
cmp ecx, ebx
jne 0x434d3a
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
xor edi, edi
push edi
push eax
add eax, 0x28
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push edx
lea eax, [ebp - 0x248]
push eax
push ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp esi, edi
mov dword [ebp + 0x10], eax
je 0x434e03
cmp eax, 0x3e5
je 0x434e03
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0xc]
add eax, 0x18
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0043545d
call fcn.006598d0
mov ecx, dword [ebp + 0x10]
lea esi, [ebp + 0x18]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x20
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push 8
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov edi, esp
lea esi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x14]
call fcn.004358d1
mov byte [ebp - 4], 1
mov esi, dword [ebx + 0xc]
call fcn.0042f892
jmp 0x434e06
mov dword [ebp - 0x14], edi
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0043545d
call fcn.0054dd5c
ret 0x20