joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b280
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, 0x201c
call fcn.00458680
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x1a
mov esi, str.HTTP_1.0_200_OK_r_nServer:_Youngzsoft.com_r_nContent_Type:_application_octet_stream_r_nAccept_Ranges:_bytes_r_n_r_n
lea edi, [esp + 0x1024]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x3e5
lea edi, [esp + 0x108e]
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
add edx, 0xb9d8
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42b2ea
mov eax, dword [esp + 0x202c]
push edx
push eax
mov ecx, ebx
call fcn.0041c670
pop edi
pop esi
pop ebx
add esp, 0x201c
ret 4
mov cl, byte [0x494b70]
xor eax, eax
mov byte [esp + 0x20], cl
mov ecx, 0x400
lea edi, [esp + 0x21]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
push ebp
mov ebp, dword [esp + 0x2030]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x1b]
and eax, 0xff
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x1a]
push edx
mov edx, dword [esp + 0x1d]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
push eax
lea ecx, [esp + 0x38]
push str.function_FindProxyForURL_url__host__r_n_r_nreturn__PROXY__d._d._d._d:_d__
push ecx
call fcn.004585a3
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1028]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1028]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
mov ecx, ebx
call fcn.0041c670
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x201c
ret 4
Function at 0x42ba20
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0xffffffffffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
add esp, 0x10c
ret 4
Function at 0x4352b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
mov esi, dword [esp + 0x424]
push edi
mov ebp, ecx
mov eax, dword [esi]
test eax, 0x800000
je 0x4352db
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x414
ret 0xc
and eax, 0xf0ffffff
lea ebx, [ebp + 0xa0]
mov dword [esi], eax
lea edi, [esi + 0xc]
mov dword [ebx], esi
mov eax, dword [esi]
add ebx, 4
test eax, 0x780000
jne 0x4354a2
mov ax, word [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 1
jne 0x43548c
test dword [esi + 4], 0xffff0000
jne 0x43548c
test dword [esi + 8], 0xffffffff
jne 0x43548c
test byte [edi], 0xc0
jne 0x435336
mov dword [ebx], edi
add ebx, 4
mov edx, dword [esp + 0x42c]
lea ecx, [esp + 0x20]
mov dword [ebx], 0
push 0x401
push ecx
lea ebx, [esi + edx]
push edi
push ebx
push esi
mov ecx, ebp
call fcn.004348c0
test eax, eax
jl 0x435494
add edi, eax
xor eax, eax
xor ecx, ecx
mov ah, byte [edi]
mov ch, byte [edi + 2]
mov al, byte [edi + 1]
mov cl, byte [edi + 3]
add edi, 2
mov dword [esp + 0x14], eax
add edi, 2
mov dword [esp + 0x18], ecx
cmp edi, ebx
jbe 0x43539a
mov edx, dword [esi]
and edx, 0xf1ffffff
or edx, 0x1000000
mov dword [esi], edx
jmp 0x4354a2
cmp eax, 0xfc
jne 0x4353b4
mov dword [ebp + 0xa0], 0
mov eax, dword [esi]
and eax, 0xfffeffff
mov dword [esi], eax
mov eax, dword [esp + 0x42c]
mov ecx, dword [esp + 0x430]
sub ecx, eax
lea edx, [esp + 0x20]
mov dword [esp + 0x430], ecx
lea ecx, [esp + 0x20]
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4353f7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret 0xc
push eax
mov ecx, ebp
call fcn.00435270
mov ebx, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x430]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push esi
push eax
sub edi, esi
push ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x2c], edi
call fcn.00435060
mov edx, dword [ebx]
mov edi, eax
push edx
call fcn.0045a3ca
mov eax, dword [ebx + 0xc]
push eax
call fcn.0045a3ca
push ebx
call fcn.0045a3ca
add esp, 0xc
test edi, edi
je 0x4354a2
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x430]
mov ebx, dword [esp + 0x42c]
mov ecx, eax
and eax, 0xffff
and ecx, 0xffff0000
sub ebp, edi
shl edx, 0x10
add ecx, edx
add ebx, edi
xor ecx, eax
mov dword [esp + 0x430], ebp
mov dword [esp + 0x42c], ebx
mov dword [esi + 4], ecx
jmp 0x4354a2
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [esi]
and eax, 0xf1ffffff
or eax, 0x1000000
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov edi, dword [esi]
shr ecx, 0x10
or edi, 0x80800000
push ecx
mov dword [esi], edi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
and eax, 0xffff
shl eax, 0x10
and edx, 0xffff
pop edi
or eax, edx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x428]
pop esi
pop ebp
pop ebx
add esp, 0x414
ret 0xc
Function at 0x435c40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xa4], 0
mov ecx, dword [esi + 0x7c]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x4be
mov ecx, esi
call fcn.0046e028
mov ecx, eax
call fcn.0046e25b
push 0
push 0x3e9
mov ecx, esi
call fcn.0046e028
mov ecx, eax
call fcn.0046e25b
pop esi
ret
Function at 0x436ae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47a498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x436b8a
mov eax, dword [0x492aec]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0046eee2
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0046ef31
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0046ee8e
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x436b71
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x436b71
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046eab2
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x436ba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x436c02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x436e10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
push edi
push eax
push str..htm
mov esi, ecx
push bind
call fcn.00436ba0
test eax, eax
jne 0x436ed1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 8]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 8]
lea eax, [esp + 8]
push edx
push eax
push bind
mov ecx, esi
call fcn.00436ba0
test eax, eax
jne 0x436ed1
lea ecx, [esp + 8]
push 0x48f5b4
push ecx
call fcn.00459f71
mov esi, eax
add esp, 8
test esi, esi
jne 0x436ea3
lea edx, [esp + 8]
push 0x48f5b0
push edx
call fcn.00458600
mov esi, eax
add esp, 8
test esi, esi
jne 0x436ea3
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 7]
jmp 0x436ea6
mov byte [esi], 0
push 0x48e1cc
push esi
call edi
mov ecx, dword [esp + 0x214]
push ecx
push esi
call edi
lea edx, [esp + 8]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
add esp, 0x208
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x208
ret 8
Function at 0x438560
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
lea eax, [esp]
push edi
push eax
push str..htm
push bind
call fcn.00438630
add esp, 0xc
test eax, eax
jne 0x438619
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 4]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 4]
lea eax, [esp + 4]
push edx
push eax
push bind
call fcn.00438630
add esp, 0xc
test eax, eax
jne 0x438619
push esi
lea ecx, [esp + 8]
push 0x48f5b4
push ecx
call fcn.00459f71
mov esi, eax
add esp, 8
test esi, esi
jne 0x4385f5
lea edx, [esp + 8]
push 0x48f5b0
push edx
call fcn.00458600
mov esi, eax
add esp, 8
test esi, esi
jne 0x4385f5
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 7]
jmp 0x4385f8
mov byte [esi], 0
push 0x48e1cc
push esi
call edi
mov ecx, dword [esp + 0x214]
push ecx
push esi
call edi
lea edx, [esp + 8]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
add esp, 0x208
ret

Function at 0x438630
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x438692
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x43b590
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Start service
Stop service

Disassembly:
mov eax, 0x101c
call fcn.00458680
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
mov ebx, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x43b625
lea eax, [ebx + 0x8c]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43b61e
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43b610
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x43b610
cmp dword [esp + 0x14], 3
jne 0x43b610
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
jne 0x43b5f2
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x43b645
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret
lea ecx, [esp + 0x2c]
push 0x7d0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43b666
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x101c
ret
lea edx, [esp + 0x2c]
push str._service
push edx
lea eax, [esp + 0x834]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x82c]
lea ebp, [ebx + 0x8c]
add ebx, 0x28
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push ebx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x43b6d0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x101c
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call ebx
push esi
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x43b742
push 0x14
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43b73f
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x10]
push edx
push esi
call ebp
test eax, eax
je 0x43b73c
cmp dword [esp + 0x14], 2
jne 0x43b73c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
jne 0x43b71e
push esi
call ebx
push edi
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x101c
ret
Function at 0x43b760
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0
mov ecx, 0x494ba0
call fcn.00415050
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x43b7b8
push 0
push 0
push 2
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
mov ecx, 0x494ba0
call fcn.00415050
push eax
call esi
test eax, eax
je 0x43b7b8
push 0x3e8
call ebp
jmp 0x43b79c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x43b846
add edi, 0x8c
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x43b832
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x43b824
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
je 0x43b824
cmp dword [esp + 0x14], 3
jne 0x43b824
push 0x3e8
call ebp
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x43b80a
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret

Function at 0x43bb30
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
lea eax, [esp]
push ebx
push esi
push eax
call fcn.00414250
mov esi, dword [eax]
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x43bbbf
push 0x14
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x43bb72
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x43bbbf
push ebp
push edi
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
je 0x43bbb1
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x18], 2
jne 0x43bbb1
push 0x3e8
call ebp
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x43bb97
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop ebp
lea ecx, [esp + 8]
call fcn.0046eab2
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x43cc70
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x47ab6b
push eax
mov eax, 0x2014
mov dword fs:[0], esp
call fcn.00458680
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov eax, dword [ebx + 0x78]
push 0
push 0
push 0x14b
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x43cd68
mov eax, dword [esi + 0xc]
xor edi, edi
cmp dword [eax], 0
je 0x43cd68
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x14]
call fcn.0046eb20
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x78]
push eax
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebp, ebp
mov esi, 0x49fad0
cmp dword [esi], 0
je 0x43cd25
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esi], eax
je 0x43cd20
add esi, 4
cmp esi, 0x49faf8
jl 0x43ccff
jmp 0x43cd25
mov ebp, 1
mov eax, dword [ebx + 0x78]
push ebp
push edi
push 0x151
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
inc edi
mov dword [esp + 0x202c], 0xffffffff
cmp edi, 0xa
lea ecx, [esp + 0x10]
jge 0x43cd63
call fcn.0046eab2
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
cmp dword [eax + edi*4], 0
jne 0x43cccc
jmp 0x43cd68
call fcn.0046eab2
push 0x48e23c
push 0x49f6cc
lea ecx, [esp + 0x20]
call fcn.00443360
lea ecx, [esp + 0x18]
call fcn.004433c0
mov edx, dword [ebx + 0x78]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0x14c
push edx
call esi
push 0
push eax
mov eax, dword [ebx + 0x78]
push 0x14e
push eax
call esi
mov ecx, ebx
call fcn.0043cf20
mov ecx, dword [esp + 0x2024]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2020
ret
Function at 0x43d250
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x4915dc]
push esi
mov word [0x495114], ax
inc eax
mov dword [0x4915dc], eax
mov eax, dword [0x4915e0]
mov word [0x495116], ax
inc eax
push edi
mov dword [0x4915e0], eax
mov edi, ecx
mov byte [0x495110], 8
mov byte [0x495111], 0
mov word [0x495112], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x49511d], cl
inc eax
cmp eax, 0x20
jl 0x43d28f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2d
push 0x495110
mov ecx, edi
mov dword [0x495119], eax
call fcn.0043d470
mov edx, dword [esp + 0x10]
push 0x10
push edx
mov word [0x495112], ax
mov eax, dword [esp + 0x14]
push 0
push 0x2d
push 0x495110
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43d2ed
push str.sendto__
mov ecx, edi
call fcn.0043d3d0
mov eax, esi
pop edi
pop esi
ret 8

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

Disassembly:
sub esp, 0x148
push esi
mov esi, ecx
mov ecx, dword [esp + 0x154]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x154]
push ecx
push 0
lea edx, [esp + 0x14]
push 0x141
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x43d364
push str.recvfrom__
mov ecx, esi
call fcn.0043d3d0
mov ecx, dword [esp + 0x158]
mov dl, byte [esp + 0x10]
mov eax, dword [esp + 0x25]
pop esi
mov byte [ecx], dl
add esp, 0x148
ret 0xc
mov eax, dword [esp + 0x158]
mov cl, byte [esp + 0x10]
pop esi
mov byte [eax], cl
mov eax, dword [esp + 0x21]
add esp, 0x148
ret 0xc

Function at 0x43d380
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_select]
add esp, 0x10c
ret 4

Function at 0x43d3d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x404
mov al, byte [0x494b70]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x10], al
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x418]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s___WSAError:__ld_r_n
push edx
call fcn.004585a3
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 8]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret 4
Function at 0x43d4d0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x43d4f6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push esi
call edi
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x43d517
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
push str.GetModuleFileNameExA
push esi
call edi
test eax, eax
mov dword [esp + 0x18], eax
jne 0x43d532
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
mov al, byte [0x494b70]
mov ecx, 0xff
mov byte [esp + 0x20], al
xor eax, eax
lea edi, [esp + 0x21]
mov ebx, dword [esp + 0x424]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
stosw word es:[edi], ax
push 0
push 0x410
stosb byte es:[edi], al
call ebp
mov esi, eax
test esi, esi
jne 0x43d573
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 4
push edx
push esi
mov dword [esp + 0x24], 0x400
call dword [esp + 0x2c]
test eax, eax
jne 0x43d5a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0x400
push eax
push ecx
push esi
call dword [esp + 0x28]
test eax, eax
push esi
jne 0x43d5d0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push 0
push 1
call ebp
mov esi, eax
test esi, esi
jne 0x43d603
lea edx, [esp + 0x20]
push edx
call fcn.0043d650
add esp, 4
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x410
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x43d631
call edi
lea eax, [esp + 0x20]
push eax
call fcn.0043d650
add esp, 4
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x410
ret
call edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x43e7e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov edx, dword [ebp + 8]
push edi
mov eax, edx
shr eax, 0x16
mov eax, dword [ecx + eax*4]
mov ecx, eax
and ecx, 0xff
cmp ecx, 1
jb 0x43e899
mov edi, dword [esp + 0x18]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp ecx, 0x80
jae 0x43e84a
and eax, 0xfffff000
push 0x1000
push eax
push 0
push 4
push edi
call ebx
mov edx, dword [ebp + 8]
push eax
shr edx, 0xc
and edx, 0x3ff
mov esi, dword [eax + edx*4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and esi, 0xfffff000
jmp 0x43e859
and eax, 0xfffff000
and edx, 0x3ff000
add eax, edx
mov esi, eax
push 0x1000
push esi
push 0
push 4
push edi
call ebx
test eax, eax
pop ebx
je 0x43e899
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
and esi, 0xfff
mov ebp, 0x70
add esi, eax
mov edi, esi
sub edi, ecx
mov dl, byte [edi + ecx]
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x43e883
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop edi
pop esi
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebp
ret