joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4385d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474378
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x438609
inc eax
mov dword [esi + 0x10], eax
jmp 0x43871c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43861d
mov eax, 0xffffffc7
jmp 0x43871e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43862e
cmp dword [esi + 8], eax
jne 0x43861d
cmp dword [esi + 8], eax
jne 0x438647
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x438647
mov eax, 0xffffffc7
jmp 0x43871e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43865b
push eax
mov ecx, ebx
call fcn.00437e00
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00405720
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43868c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00405740
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00437570
test eax, eax
mov dword [esp + 0x38], eax
je 0x4386bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x479d18
call fcn.00405920
mov eax, dword [esp + 0x38]
jmp 0x43871e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00438430
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x438703
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00438450
mov esi, eax
test esi, esi
jne 0x438733
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00438430
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4386d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x479d18
call fcn.00405920
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x479d18
call fcn.00405920
mov eax, esi
jmp 0x43871e

Function at 0x43b840
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43b8a0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43b8a0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43b8a0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43b8a0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43b8e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x441a00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4749a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046ce28
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004413a0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046cd56
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00469611
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00469611
push 1
push 0
push 0
mov ecx, esi
call fcn.004695b9
push 1
push 0
push 1
mov ecx, esi
call fcn.004695b9
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ce9a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x441b80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4749c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046ce28
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004413a0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046cd56
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x441c44
cmp dword [esp + 0x40], 1
jne 0x441c42
cmp ecx, eax
jge 0x441c44
mov eax, ecx
cmp eax, 0xc8
jge 0x441c50
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00441a00
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046ce9a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4423c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474a33
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.00467a31
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.0046d0d0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046e62f
test eax, eax
je 0x4424dc
mov ecx, dword [esp + 0x3c]
call fcn.0046d0fd
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 0x4424a0
push edi
mov ecx, esi
call fcn.0046a761
mov ecx, esi
call fcn.00442640
cmp dword [esp + 0x38], 1
jne 0x4424d5
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.0046a89c
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 0x444f10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444f43
push esi
call fcn.00448000
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444f3c
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 0x444fc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444fb2
mov eax, dword [esi + 8]
test eax, eax
je 0x444f67
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 0x444fae
cmp eax, 2
je 0x444fb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444f5a
cmp eax, 3
je 0x444f8d
cmp eax, 1
jne 0x444f5a
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 0x444f5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444f5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444ff0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444fd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444ff0
add esp, 4
pop esi
ret

Function at 0x450390
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 0x4503f6
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 0x4503f6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4503d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x450b80
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x450bb8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x451830
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00451980
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x451850
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 0x451831
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00451980
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x451850
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 0x451880
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 0x4518d7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4518ed
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.00451910
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 0x451910
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 0x4519a0
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 0x4519e9
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 0x451e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474fb0
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.00451a10
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00451a90
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00451a90
lea ecx, [esi + 0xc]
call fcn.0046640e
lea ecx, [esi + 0x10]
call fcn.0046640e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004542c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004542c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004542c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00466483
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00466483
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x452b08
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4751d8
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 0x452b18
call fcn.00453030
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x452bfb
cmp byte [edi], 0
je 0x452bfb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x452b3d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00451830
test eax, eax
jne 0x452b5d
push 0x4954f4
lea ecx, [esi + 0x38]
call fcn.004665c0
jmp 0x452bfb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00451880
test eax, eax
jne 0x452b8c
mov ecx, esi
call fcn.00451980
push edi
add esi, 0x38
push 0x4954d0
push esi
call fcn.0046437f
add esp, 0xc
jmp 0x452bfb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004538b0
test eax, eax
je 0x452bf4
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.00452cd0
test eax, eax
jne 0x452c10
push edi
lea eax, [esi + 0x38]
push 0x4954ac
push eax
call fcn.0046437f
add esp, 0xc
mov ecx, esi
call fcn.00453030
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 0x452cb8
mov ecx, dword [0x495764]
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.0046437f
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.00451930
test eax, eax
jne 0x452c7a
push 0x495490
lea ecx, [esi + 0x38]
call fcn.004665c0
jmp 0x452c8a
push 0xfa
mov ecx, esi
call fcn.004538b0
test eax, eax
jne 0x452ca7
mov ecx, esi
call fcn.00453030
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00466483
jmp 0x452bfb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00466483
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x468827
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46885f
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.004668de
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004668b6
jmp 0x46886b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469f19
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 0x469f5b
call fcn.0046fcf9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469f5b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469f52
xor eax, eax
jmp 0x469f63
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469f69
pop edi
pop esi
pop ebx
ret 4

Function at 0x470229
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 0x470257
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x470275
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047018f
jmp 0x470275
mov eax, dword [esi + 0x14]
test eax, eax
je 0x470275
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047018f
test edi, edi
mov eax, edi
jne 0x47025f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x600381
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add ecx, edx
push 0xd2235ab4
mov dword [ebp - 0x10], ecx
shr ch, cl
bswap cx
ror cl, cl
bswap ecx
mov ecx, dword [ebp + 0xc]
cmc
call fcn.00640401
lea esp, [esp + 0x24]
je 0x5811f0
movsx cx, cl
not cl
add edx, eax
shld ecx, eax, cl
mov ecx, dword [esi + 0x7c]
clc
stc
jmp 0x64280e
pushfd
xor ah, 0xa2
movsx ax, dl
xchg dword [esp], ebp
and al, 0x25
adc bp, 0xc7f8
aas
mov ebp, esp
lahf
sub ax, dx
and al, 0x9b
not ah
sub esp, 0x10
rol ah, cl
or al, 0x2d
rcr ah, cl
btc ax, di
push esi
sar ah, 4
sar al, 4
push edi
bts ax, dx
pushal
btc eax, 0x1d
bswap eax
mov dword [esp + 0x1c], ebx
or ax, 0x9943
ror eax, cl
movzx ax, cl
xor ah, 0x2b
mov dword [esp + 0x18], edx
jmp 0x64ec00
jmp 0x5c863b
mov eax, dword [ebp + 8]
bt dx, 0xe
mov byte [esp], al
test eax, eax
pushfd
push 0xe03c2f5f
lea esp, [esp + 0x20]
je 0x5811f0
adc dh, 0xc4
jmp 0x65111b
adc dl, 0xc6
mov esi, dword [eax + 0x3c]
sal dh, cl
stc
adc dx, bp
add esi, eax
sar dl, cl
bswap dx
neg dx
rcl dh, cl
mov edx, dword [esi + 0x78]
bt si, 7
pushal
test di, 0xeb9b
test dl, 0xb0
test edx, edx
mov byte [esp], cl
push esi
mov word [esp], 0xd659
jmp 0x5fddc6

Function at 0x6016a3
Capabilities:
Authenticate hmac

Disassembly:
lea esp, [esp + 0x48]
je 0x5fea74
bswap dx
movsx dx, dl
setnp dl
pushal
lea edx, [ebx + 4]
call fcn.00640801
jae 0x5fe468
push ebx
add al, 0xe8
adc dword [esp + eax], esp
add byte [ebx + 0x76], dh
popal
sbb eax, 0x76f195f2
xor ah, bh
fiadd word [edx + 0x4b51c8d2]
fisttp word [edx - 0x6a76e9a1]
outsd dx, dword [esi]
fisubr dword [ebx]
and al, 0x1d
aaa
pop edx
sub dword [edx - 0x330bf5d5], 0x36
in al, 0xd2
inc ecx
in eax, 0xe3
fidiv dword [eax]
les esi, [ebp + 0x53e5c30]
sbb dh, byte [ecx]
sbb al, dl
pop esp
test dword [esi - 0x79], 0xb00daf4e
pop edx
outsd dx, dword [esi]
sbb dword [eax - 0x75], esp
and eax, 0x26c3d4d9
or al, 0xb2
push 0xbc52f8db
or eax, 0x2b66a70c
push edi
scasb al, byte es:[edi]
inc edx
cdq
push ebp
mov edx, 0x84682946
mov dh, 0x5d
popal
sbb dword [eax + 0x31], 0xffffffb3
jo 0x5fe407
dec esp
test byte [eax], dl
loopne 0x5fe3e9
mov dword [0xfdb04cf6], eax
xchg ebx, eax
and dword [ebx + 0x7c], ebp
fstp xword [esp + eax*4 - 0x44]
retf
lea esp, [esp + 4]
jne 0x5fea74
pushal
rcl cx, cl
adc ecx, ecx
mov ecx, dword [ebx]
pushal
push dword [esp + 0xc]
stc
push dword [esp + 4]
or ecx, ecx
mov byte [esp], 0x69
jmp 0x5fe3d3

Function at 0x647bcc
Capabilities:
Encode data using base64

Disassembly:
movzx ax, dl
pushfd
lea eax, [ebp - 8]
jmp 0x655fa2
bswap ax
xchg dword [esp + 0x28], eax
mov word [esp + 4], cx
push dword [ebp - 4]
pop dword [esp + 0x24]
bswap ax
mov dword [esp + 0x20], ebx
push 0xde41ea8d
lea esp, [esp + 0x24]
jne 0x6493e3
movsx ax, al
mov al, 0x2f
push 0xb
pushfd
pop eax
movsx ax, cl
lea eax, [0x6401a2]
call fcn.0064024c
Function at 0x402d10
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d4d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d6d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404ef8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402fb4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40300d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402e50
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402e50
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ff7
inc ebx
jmp 0x402fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403014
lea eax, [ebp - 8]
call fcn.00404c88
ret

Function at 0x40301c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c88
test esi, esi
jne 0x403053
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404d78
jmp 0x403074
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e50
mov dword [esp], eax
test esi, esi
je 0x403074
cmp dword [ebx], 0
je 0x403074
dec esi
jmp 0x40305b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403640
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4cd024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c78
xor eax, eax
push ebp
push 0x403c71
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 0x403cb4
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 0x403c78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4cd024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4cd024], ax
mov esp, ebp
pop ebp
ret