joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4704a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046371d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00468db8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046a317
test eax, eax
je 0x43ed7c
mov ecx, dword [esp + 0x3c]
call fcn.00468de5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ed40
push edi
mov ecx, esi
call fcn.00466443
mov ecx, esi
call fcn.0043eee0
cmp dword [esp + 0x38], 1
jne 0x43ed75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046657e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4417a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4417d3
push esi
call fcn.004448a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4417cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441859
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441842
mov eax, dword [esi + 8]
test eax, eax
je 0x4417f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44183e
cmp eax, 2
je 0x441842
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4417ea
cmp eax, 3
je 0x44181d
cmp eax, 1
jne 0x4417ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4417ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4417ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441880
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441868
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441880
add esp, 4
pop esi
ret

Function at 0x44cbd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44cc36
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44cc36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44cc17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44d780
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044d8d0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44d7a0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44d781
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044d8d0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44d7a0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44d7d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44d827
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44d83d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044d860
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44d860
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44d8f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44d939
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44ddb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4709d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044d960
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044d9e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044d9e0
lea ecx, [esi + 0xc]
call fcn.004620f6
lea ecx, [esi + 0x10]
call fcn.004620f6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00450220
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00450220
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00450220
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046216b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046216b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44ea58
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470bf8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44ea68
call fcn.0044ef80
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44eb4b
cmp byte [edi], 0
je 0x44eb4b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44ea8d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044d780
test eax, eax
jne 0x44eaad
push 0x4a4468
lea ecx, [esi + 0x38]
call fcn.004622a8
jmp 0x44eb4b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044d7d0
test eax, eax
jne 0x44eadc
mov ecx, esi
call fcn.0044d8d0
push edi
add esi, 0x38
push 0x4a4444
push esi
call fcn.00460107
add esp, 0xc
jmp 0x44eb4b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044f810
test eax, eax
je 0x44eb44
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044ec20
test eax, eax
jne 0x44eb60
push edi
lea eax, [esi + 0x38]
push 0x4a4420
push eax
call fcn.00460107
add esp, 0xc
mov ecx, esi
call fcn.0044ef80
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44ec08
mov ecx, dword [0x4a4748]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00460107
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044d880
test eax, eax
jne 0x44ebca
push 0x4a4404
lea ecx, [esi + 0x38]
call fcn.004622a8
jmp 0x44ebda
push 0xfa
mov ecx, esi
call fcn.0044f810
test eax, eax
jne 0x44ebf7
mov ecx, esi
call fcn.0044ef80
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046216b
jmp 0x44eb4b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046216b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x464512
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46454a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004625c6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046259e
jmp 0x464556
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x465c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x465c42
call fcn.0046b7bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465c42
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x465c39
xor eax, eax
jmp 0x465c4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465c50
pop edi
pop esi
pop ebx
ret 4

Function at 0x46bcec
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46bd1a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46bd38
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046bc52
jmp 0x46bd38
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46bd38
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046bc52
test edi, edi
mov eax, edi
jne 0x46bd22
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40be20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f72b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4e777c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40bf58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40be86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463f4e
xor eax, eax
jmp 0x40bfcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046408b
push esi
lea ecx, [esp + 0xc]
call fcn.0046431a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40bfad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040bdb0
test eax, eax
jne 0x40bfad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040bdb0
test eax, eax
jne 0x40bfad
lea eax, [esp + 0x14]
push 0x4e0da4
push eax
call fcn.00454d60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf8c
lea ecx, [esp + 0x14]
push 0x4e0da0
push ecx
call fcn.00454ce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bf8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bf8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046403b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40be9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463f4e
xor eax, eax
jmp 0x40bfcf
mov byte [esi], 0
push 0x4e0d9c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00463f4e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4662f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46632d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004643a9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464381
jmp 0x466339
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4679e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467a29
call fcn.0046d59f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467a29
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467a20
xor eax, eax
jmp 0x467a31
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467a37
pop edi
pop esi
pop ebx
ret 4

Function at 0x46dacf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dafd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46db1b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046da35
jmp 0x46db1b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46db1b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046da35
test edi, edi
mov eax, edi
jne 0x46db05
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x43c8e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
jmp 0x43c8fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43c901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43c8f0
mov eax, 1
add ebx, ebx
jne 0x43c913
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43c908
jne 0x43c924
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c908
xor ecx, ecx
sub eax, 3
jb 0x43c938
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43c9aa
mov ebp, eax
add ebx, ebx
jne 0x43c943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43c950
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43c974
inc ecx
add ebx, ebx
jne 0x43c960
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43c955
jne 0x43c971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43c955
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43c994
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43c985
jmp 0x43c8f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43c994
add edi, ecx
jmp 0x43c8f6
pop esi
mov edi, esi
mov ecx, 0x6d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43c9b2
cmp byte [edi], 0x11
jne 0x43c9b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43c9b7
lea edi, [esi + 0x3a000]
mov eax, dword [edi]
or eax, eax
je 0x43ca2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x55350]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x55418]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43c9e4
mov ecx, edi
jns 0x43ca13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5541c]
or eax, eax
je 0x43ca29
mov dword [ebx], eax
add ebx, 4
jmp 0x43ca01
call dword [esi + 0x5542c]
mov ebp, dword [esi + 0x55420]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43ca63
sub esp, 0xffffff80
jmp 0x40a7b1
Function at 0x4019b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019c7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019f8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4019f4
cmp esi, eax
jae 0x4019f8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4019e4
cmp esi, eax
jb 0x4019fe
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401a30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45b6b6
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, dword [esp + 0x130]
xor ebx, ebx
mov dword [esp + 0x128], ebx
push esi
mov dword [esp + 0x18], ebx
call fcn.004013e0
mov dword [esp + 0x128], ebx
lea eax, [esp + 0x9c]
mov edi, 1
push eax
mov dword [esp + 0x18], edi
call fcn.0041b135
add esp, 4
mov dword [esp + 0x128], edi
push str.DDBClient.ini
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.0041ab58
mov ebp, eax
mov byte [esp + 0x128], 2
mov eax, dword [esi]
sub eax, 0x10
mov ecx, edi
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0xff
or eax, ecx
jge 0x401adb
mov ecx, 0xff
mov eax, esi
call fcn.004016f0
mov edi, dword [esi]
mov ecx, ebp
call fcn.0041a962
mov edx, dword [esp + 0x134]
push eax
push 0xff
push edi
push 0x469d00
push edx
push str.CLIENT_BASE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [esp + 0x128], 1
lea ecx, [esp + 0x18]
call fcn.0041a812
mov byte [esp + 0x128], bl
lea ecx, [esp + 0x9c]
call fcn.0041a812
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x401b34
xor eax, eax
jmp 0x401b42
push ecx
push eax
call fcn.004467c9
add esp, 8
cmp eax, ebx
jl 0x401b70
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x401b70
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
push 0x80070057
call fcn.00401a10
int3
Function at 0x405ba0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
je 0x405c09
push ebx
push ebp
push edi
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x2c]
push ecx
call fcn.00407380
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [sym.imp.WS2_32.dll_htonl]
mov ebx, 0xfe
inc dword [esi + 0xc]
push 8
call fcn.00446372
mov edi, eax
mov dword [edi], esi
mov edx, dword [esi + 0xc]
add esp, 4
push edx
call ebp
push 0
push 0
push edi
push 0x405d40
push 0
push 0
mov dword [edi + 4], eax
call fcn.0044af39
add esp, 0x18
sub ebx, 1
jne 0x405bd1
pop edi
pop ebp
pop ebx
ret

Function at 0x405c10
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x45c35a
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x474cb0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push edi
mov eax, dword [0x474cb0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x7f
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.00447390
add esp, 0xc
push 0x7f
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x405c78
xor eax, eax
jmp 0x405d18
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x405c71
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp eax, ebx
je 0x405c71
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.00407110
mov dword [esp + 0xa4], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, dword [esp + 0x10]
mov ebp, eax
lea eax, [esp + 0x14]
push eax
call fcn.0040ec10
add esp, 4
mov byte [esp + 0xa4], 1
lea edi, [esi + 8]
call fcn.004058c0
mov byte [esp + 0xa4], 0
lea ecx, [esp + 0x14]
push ecx
call fcn.004014e0
push ebp
call dword [sym.imp.WS2_32.dll_ntohl]
and eax, 0xffffff00
mov dword [esi + 0xc], eax
mov dword [esi + 0x28], ebp
mov dword [esp + 0xa4], 0xffffffff
lea edx, [esp + 0x10]
push edx
call fcn.004014e0
mov eax, 1
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004462cb
add esp, 0x98
ret