joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402838
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4028b0
xor eax, eax
push ebp
push 0x4028a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4028b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409018], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x402f79
cmp word [0x40a208], 0xd7b2
jne 0x402f41
cmp dword [0x40a210], 0
jbe 0x402f41
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402fa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409024], 0
jne 0x402f95
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403cb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403d1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004031f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040269c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403d04
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403d21
lea eax, [ebp - 0x10]
call fcn.00403094
ret

Function at 0x404b68
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
invalid
Function at 0x404bb4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
invalid
inc ebp

Function at 0x404bc4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
invalid
inc ebp

Function at 0x404f18
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
je 0x404f3a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x404f44
add ecx, eax
or byte [ecx], 4

Function at 0x404f34
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
je 0x404f3a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x404f44
add ecx, eax
or byte [ecx], 4

Function at 0x405c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
invalid
invalid

Function at 0x406d40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x9c], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406dfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x97]
push eax
push 0x97
call sub.kernel32.dll_GetLogicalDriveStringsA
xor ebx, ebx
jmp 0x406dd5
mov esi, ebx
and esi, 0xff
lea eax, [ebp + esi - 0x97]
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 5
je 0x406dd2
mov al, byte [ebp + esi - 0x97]
call fcn.0040258c
cmp al, 0x41
je 0x406dd2
mov al, byte [ebp + esi - 0x97]
call fcn.0040258c
cmp al, 0x42
je 0x406dd2
lea eax, [ebp - 0x9c]
mov dl, byte [ebp + esi - 0x97]
call fcn.004031b4
mov edx, dword [ebp - 0x9c]
mov eax, edi
call fcn.00403214
add bl, 4
xor eax, eax
mov al, bl
cmp byte [ebp + eax - 0x97], 0
jne 0x406d79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e03
lea eax, [ebp - 0x9c]
call fcn.00403094
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x422448
Capabilities:
Create udp socket
Get system information on windows
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x426120]
push esi
mov esi, ecx
cmp byte [esi + 0x28], 0
mov dword [ebp - 4], eax
je 0x422466
xor eax, eax
jmp 0x4225c9
push ebx
push edi
mov ebx, esi
call fcn.004229e2
mov edi, eax
test edi, edi
jne 0x4225c0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
inc edi
push edi
push 0
push 0
push 6
push edi
push 2
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
je 0x422560
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x20]
push ecx
push edi
push 6
push eax
mov dword [ebp - 0x20], edi
call ebx
cmp eax, 0xffffffff
je 0x422560
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x20]
mov dword [ebp - 0x1c], edi
call ebx
push dword [esi + 0x20]
call sub.aspnet_isapi.dll_AttachHandleToThreadPool
mov edi, eax
test edi, edi
jne 0x4225c0
mov ax, word [esi + 0x1c]
mov word [ebp - 0x14], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
and dword [ebp - 0x10], edi
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x42254d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x422560
and dword [ebp - 0x1c], edi
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x20]
call ebx
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x422560
push closesocket
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x422584
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
jg 0x422572
call edi
mov edi, eax
jmp 0x4225bc
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x4225bc
mov eax, dword [ebp - 0x18]
lea ebx, [eax + eax*2]
mov byte [esi + 0x28], 1
mov dword [ebp - 0x18], ebx
jmp 0x4225a3
mov edi, esi
call fcn.00422648
mov edi, eax
test edi, edi
jne 0x4225c0
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0
jg 0x422593
push ebx
push 0x4212d0
push 0x40000434
call sub.aspnet_isapi.dll__XspLogEvent__YAJKPAGZZ
add esp, 0xc
test edi, edi
je 0x4225c5
call fcn.004225d4
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0042513d
leave
ret
Function at 0x42290e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
push eax
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
push reloc.WS2_32.dll_bind
xor esi, esi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x422949
jle 0x42296e
and eax, 0xffff
or eax, 0x80070000
jmp 0x42296e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x421304
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x422972
jg 0x42293d
mov esi, eax
jmp 0x42298d
cmp dword [ebp - 4], edi
jle 0x422980
cmp dword [ebp - 4], 0x7fffffff
jle 0x422987
mov dword [ebp - 4], 0xf
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
cmp dword [ebp - 8], edi
je 0x42299b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x4229a6
mov dword [ebx + 0x14], 0xf
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4229ac
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov ebx, eax
push edi
xor edi, edi
mov byte [ebx + 0xc], 0
call fcn.0042290e
xor esi, esi
push esi
push esi
push esi
push 0x4228a3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebx + 8], eax
jne 0x4229dc
call fcn.00424251
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4229e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
push reloc.WS2_32.dll_bind
xor esi, esi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x422a1d
jle 0x422a42
and eax, 0xffff
or eax, 0x80070000
jmp 0x422a42
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x4212d8
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x422a46
jg 0x422a11
mov esi, eax
jmp 0x422a4f
cmp dword [ebp - 0xc], edi
setne al
mov byte [ebx + 0x2a], al
cmp dword [ebp - 4], edi
je 0x422a5d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x422a67
mov byte [ebx + 0x2a], 1
xor esi, esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x422a6d
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x426120]
push ebx
push edi
xor edi, edi
mov dword [ebp + 0x120], eax
mov dword [ebp - 0x74], edi
call fcn.00421a73
mov ebx, eax
cmp ebx, edi
jne 0x422b64
lea eax, [ebp - 0x70]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
je 0x422ac4
jg 0x422ab8
mov ebx, eax
jmp 0x422b64
and eax, 0xffff
or eax, 0x80070000
jmp 0x422ab1
push edi
push edi
push edi
push edi
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [esi + 0x24], edi
je 0x422b53
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
push reloc.WS2_32.dll_bind
mov word [esi + 0x1c], 0xa5b8
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x422b38
push 4
pop eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push edi
push str.Port
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x422b38
mov eax, dword [ebp - 0x7c]
cmp eax, edi
jbe 0x422b38
cmp eax, 0xffff
ja 0x422b38
mov word [esi + 0x1c], ax
call fcn.0042307f
mov ebx, eax
cmp ebx, edi
jne 0x422b64
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
cmp eax, edi
mov dword [esi + 0x10], eax
jne 0x422b5d
call fcn.00424251
jmp 0x422ab1
call sub.aspnet_isapi.dll_PerfCounterInitialize
xor ebx, ebx
cmp dword [ebp - 0x74], edi
je 0x422b72
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x120]
pop edi
mov eax, ebx
pop ebx
call fcn.0042513d
add ebp, 0x124
leave
ret
Function at 0x4231fc
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 1
xor ebx, ebx
push ebx
push ebx
push 6
push 1
push 2
mov edi, eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
mov dword [edi + 0x18], eax
jne 0x423247
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
test eax, eax
jg 0x423233
call esi
jmp 0x42323f
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x4232cb
push eax
call sub.aspnet_isapi.dll_AttachHandleToThreadPool
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4232cb
push 0x24
mov dword [edi + 0x10], 0x423493
call fcn.00424164
mov esi, eax
cmp esi, ebx
je 0x423273
mov eax, edi
call fcn.00422fab
mov esi, eax
jmp 0x423275
xor esi, esi
cmp esi, ebx
jne 0x423282
mov dword [ebp - 4], 0x8007000e
jmp 0x4232cb
mov eax, dword [esi]
push esi
call dword [eax + 4]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x20
push 0x20
push ebx
lea eax, [edi + 0x1c]
push eax
push dword [edi + 0x18]
push dword [ebp + 8]
call sub.MSWSOCK.dll_AcceptEx
test eax, eax
jne 0x4232c5
call fcn.00424251
cmp eax, 0x800703e5
mov dword [ebp - 4], eax
jne 0x4232bc
mov dword [ebp - 4], ebx
jmp 0x4232c5
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov dword [edi + 0x10], ebx
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 4]
push 0x4217e8
call fcn.00423763
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
push 0x24
mov dword [ebp - 4], ebx
mov dword [edi + 0x10], fcn.00423630
call fcn.00424164
mov esi, eax
cmp esi, ebx
je 0x4236ab
mov eax, edi
call fcn.00422fab
mov esi, eax
jmp 0x4236ad
xor esi, esi
cmp esi, ebx
jne 0x4236bd
mov dword [ebp - 4], 0x8007000e
jmp 0x42374c
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x60]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ebx, 0x4260dc
push ebx
mov dword [ebp - 0x10], eax
call fcn.00423dcf
lea eax, [edi + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
lea eax, [esi + 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x423746
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
mov dword [ebp + 0xc], eax
je 0x423746
mov ecx, dword [edi + 0x60]
push ebx
call fcn.00423e18
and dword [edi + 0x10], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x423743
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ecx, dword [ebp - 4]
push 0x42168c
call fcn.00423763
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4237f4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebx + 0x80]
cmp byte [eax], 0
mov dword [ebp - 0xc], 1
jne 0x423977
push esi
push edi
mov byte [eax], 1
mov eax, dword [ebp + 0x18]
xor edi, edi
cmp eax, edi
je 0x423826
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
jmp 0x423829
mov dword [ebp - 8], edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + eax]
lea esi, [esi + esi + 0x3e]
push esi
call fcn.00424141
cmp eax, edi
mov dword [ebp - 4], eax
je 0x42396d
push edi
push edi
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
xor eax, eax
push eax
push eax
sub esi, edi
push esi
mov esi, dword [ebp - 4]
lea ecx, [edi + esi]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add edi, eax
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0xc]
add edi, esi
mov esi, 0x421670
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
lea esi, [eax + edi + 0x10]
push 0xa
push esi
push dword [ebp - 8]
call dword [sym.imp.MSVCR71.dll__itoa]
add esp, 0xc
mov eax, esi
jmp 0x4238a5
inc eax
cmp byte [eax], 0
jne 0x4238a4
and dword [ebp - 4], 0
mov dword [eax], 0xa0d0a0d
sub eax, edi
mov dword [ebx + 0x70], edi
mov edi, dword [ebp - 8]
add eax, 4
test edi, edi
mov dword [ebx + 0x6c], eax
jle 0x4238e3
mov esi, dword [ebp + 0x18]
push esi
mov dword [ebx + 0x7c], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esi, 8
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x78], esi
mov dword [ebp - 0xc], 2
push 0x24
mov dword [ebx + 0x10], 0x42397b
call fcn.00424164
mov esi, eax
test esi, esi
je 0x423902
mov eax, ebx
call fcn.00422fab
mov esi, eax
jmp 0x423904
xor esi, esi
test esi, esi
je 0x42396d
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x60]
mov edi, 0x4260dc
push edi
call fcn.00423dcf
lea eax, [ebx + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
lea eax, [esi + 4]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
lea eax, [ebx + 0x6c]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x423967
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x423967
mov ecx, dword [ebx + 0x60]
push edi
call fcn.00423e18
and dword [ebx + 0x10], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 4]
call fcn.00424187
pop edi
pop esi
leave
ret 0x14
Function at 0x423aaf
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 0x30], 0x7f
jne 0x423aca
cmp byte [esi + 0x31], 0
jne 0x423aca
cmp byte [esi + 0x32], 0
jne 0x423aca
cmp byte [esi + 0x33], 1
je 0x423af7
push 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x423af3
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x423af3
mov eax, dword [ecx]
test eax, eax
je 0x423af3
mov esi, dword [esi + 0x30]
cmp dword [eax], esi
je 0x423af7
add ecx, 4
mov eax, dword [ecx]
test eax, eax
jne 0x423ae6
xor al, al
pop esi
ret
mov al, 1
pop esi
ret

Function at 0x4245b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x18], ebx
jne 0x4245dc
mov dword [0x426374], ebx
jmp 0x42460f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
cmp eax, ebx
jne 0x42460f
xor eax, eax
cmp dword [ebp - 4], eax
je 0x424602
test byte [ebp - 4], bl
je 0x4245fd
inc eax
shr dword [ebp - 4], 1
jne 0x4245f7
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [0x426374], ecx
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x424a95
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp edi, 0xffffffff
jne 0x424aa7
xor eax, eax
leave
ret
push ebx
push esi
xor esi, esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
inc ebx
push esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
je 0x424af4
cmp eax, 0xffffffff
je 0x424af8
push 2
push ebx
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
je 0x424af8
cmp eax, 0xffffffff
je 0x424af8
mov eax, ebx
jmp 0x424afa
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x424b54
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x4211e0
call fcn.00424e30
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x424b8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424b8f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x424ba7
cmp eax, 0x20b
je 0x424b94
mov dword [ebp - 0x1c], edi
jmp 0x424bbb
cmp dword [ecx + 0x84], 0xe
jbe 0x424b8f
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x424bb5
cmp dword [ecx + 0x74], 0xe
jbe 0x424b8f
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x426394], 0xffffffff
or dword [0x426398], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x426134]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x426130]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x426390], eax
call fcn.00424d72
call fcn.00424e1b
cmp dword [0x426030], edi
jne 0x424c1b
push 0x424e18
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00424e00
push 0x426020
push 0x42601c
call sub.MSVCR71.dll__initterm
push 0x424db6
call fcn.00424d2a
mov eax, dword [0x42612c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x426128]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x34], eax
cmp eax, edi
jge 0x424c6f
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x426018
push section..data
call sub.MSVCR71.dll__initterm
call dword [sym.imp.MSVCR71.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004226e4
add esp, 0x14
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x424cab
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x424ce0
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00424e6b
ret