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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46e038
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 0x433939
inc eax
mov dword [esi + 0x10], eax
jmp 0x433a4c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43394d
mov eax, 0xffffffc7
jmp 0x433a4e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43395e
cmp dword [esi + 8], eax
jne 0x43394d
cmp dword [esi + 8], eax
jne 0x433977
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433977
mov eax, 0xffffffc7
jmp 0x433a4e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43398b
push eax
mov ecx, ebx
call fcn.00433130
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.004066f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4339bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00406710
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004328a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4339ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472228
call fcn.004068f0
mov eax, dword [esp + 0x38]
jmp 0x433a4e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433760
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x433a33
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433780
mov esi, eax
test esi, esi
jne 0x433a63
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433760
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x433a05
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x472228
call fcn.004068f0
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], 0x472228
call fcn.004068f0
mov eax, esi
jmp 0x433a4e

Function at 0x436b90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x436bf0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x436bf0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x436bf0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x436bf0
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 0x436c30
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 0x43cd50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e668
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.00467510
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c6f0
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.0046743e
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.00463cfc
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.00463cfc
push 1
push 0
push 0
mov ecx, esi
call fcn.00463ca4
push 1
push 0
push 1
mov ecx, esi
call fcn.00463ca4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467582
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ced0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e688
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.00467510
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c6f0
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.0046743e
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 0x43cf94
cmp dword [esp + 0x40], 1
jne 0x43cf92
cmp ecx, eax
jge 0x43cf94
mov eax, ecx
cmp eax, 0xc8
jge 0x43cfa0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043cd50
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.00467582
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d720
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e6f3
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.0046211d
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.004677b8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468cd4
test eax, eax
je 0x43d83c
mov ecx, dword [esp + 0x3c]
call fcn.004677e5
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 0x43d800
push edi
mov ecx, esi
call fcn.00464e43
mov ecx, esi
call fcn.0043d9a0
cmp dword [esp + 0x38], 1
jne 0x43d835
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.00464f7e
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 0x440260
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440293
push esi
call fcn.00443360
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44028c
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 0x440319
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440302
mov eax, dword [esi + 8]
test eax, eax
je 0x4402b7
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 0x4402fe
cmp eax, 2
je 0x440302
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4402aa
cmp eax, 3
je 0x4402dd
cmp eax, 1
jne 0x4402aa
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 0x4402aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4402aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440340
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440328
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440340
add esp, 4
pop esi
ret

Function at 0x44b680
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 0x44b6e6
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 0x44b6e6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44b6c7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x44c220
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

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

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c370
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c240
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 0x44c270
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 0x44c2c7
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44c2dd
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.0044c300
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 0x44c300
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 0x44c390
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 0x44c3d9
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 0x44c850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46ec20
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.0044c400
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c480
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c480
lea ecx, [esi + 0xc]
call fcn.00460af6
lea ecx, [esi + 0x10]
call fcn.00460af6
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044ecc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044ecc0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044ecc0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00460b6b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00460b6b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d4f8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46ee48
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 0x44d508
call fcn.0044da20
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44d5eb
cmp byte [edi], 0
je 0x44d5eb
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d52d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c220
test eax, eax
jne 0x44d54d
push 0x48c458
lea ecx, [esi + 0x38]
call fcn.00460ca8
jmp 0x44d5eb
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c270
test eax, eax
jne 0x44d57c
mov ecx, esi
call fcn.0044c370
push edi
add esi, 0x38
push 0x48c434
push esi
call fcn.0045eb07
add esp, 0xc
jmp 0x44d5eb
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e2b0
test eax, eax
je 0x44d5e4
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.0044d6c0
test eax, eax
jne 0x44d600
push edi
lea eax, [esi + 0x38]
push 0x48c410
push eax
call fcn.0045eb07
add esp, 0xc
mov ecx, esi
call fcn.0044da20
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 0x44d6a8
mov ecx, dword [0x48c738]
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.0045eb07
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.0044c320
test eax, eax
jne 0x44d66a
push 0x48c3f4
lea ecx, [esi + 0x38]
call fcn.00460ca8
jmp 0x44d67a
push 0xfa
mov ecx, esi
call fcn.0044e2b0
test eax, eax
jne 0x44d697
mov ecx, esi
call fcn.0044da20
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460b6b
jmp 0x44d5eb
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460b6b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x462f12
Capabilities:
Get graphical window text

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

Function at 0x464600
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 0x464642
call fcn.0046a179
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464642
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464639
xor eax, eax
jmp 0x46464a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464650
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a6a9
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 0x46a6d7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a6f5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a60f
jmp 0x46a6f5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a6f5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a60f
test edi, edi
mov eax, edi
jne 0x46a6df
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10010000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x14], 3
jbe 0x10010014
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp 0x10010018
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 0x14]
add ecx, eax
push ebx
mov ebx, dword [ecx + 8]
add ebx, eax
cmp dword [0x1001201c], 0
mov dword [0x10012018], eax
lea edx, [edx + ecx + 0x18]
mov dword [esp + 4], ebx
jne 0x1001014f
mov ecx, dword [edx + 8]
push ebp
push esi
mov esi, dword [edx + 0xc]
push edi
mov edi, dword [ebx]
add esi, eax
add edi, eax
lea eax, [esp + 0x18]
push eax
push 0x40
push ecx
push esi
mov dword [0x1001201c], 1
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
call fcn.1001018c
mov ecx, dword [ebx + 0x14]
mov eax, dword [0x10012018]
add esp, 8
test ecx, ecx
je 0x100100e9
lea edx, [ecx + eax]
mov ecx, dword [ebx + 0x18]
add ecx, edx
mov edi, eax
sub edi, dword [ebx + 4]
mov dword [esp + 0x14], ecx
cmp edx, ecx
jae 0x100100e9
cmp dword [edx], 0
je 0x100100e9
mov ebp, dword [edx + 4]
sub ebp, 8
xor esi, esi
test ebp, 0xfffffffe
jbe 0x100100e2
lea ebx, [ebx]
movzx ecx, word [edx + esi*2 + 8]
mov ebp, ecx
and ebp, 0xf000
cmp ebp, 0x3000
jne 0x100100d1
and ecx, 0xfff
add ecx, dword [edx]
add ecx, eax
add dword [ecx], edi
mov ecx, dword [edx + 4]
sub ecx, 8
inc esi
shr ecx, 1
cmp esi, ecx
jb 0x100100b0
mov ecx, dword [esp + 0x14]
add edx, dword [edx + 4]
cmp edx, ecx
jb 0x10010095
mov ebp, dword [ebx + 0xc]
test ebp, ebp
je 0x1001014c
add ebp, eax
je 0x1001014c
cmp dword [ebp], 0
je 0x1001014c
mov ecx, dword [ebp + 0xc]
add ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov eax, dword [0x10012018]
test ebx, ebx
je 0x10010143
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp]
add esi, eax
add edi, eax
je 0x10010143
lea ecx, [ecx]
mov ecx, dword [edi]
test ecx, ecx
je 0x10010143
js 0x1001013b
lea eax, [ecx + eax + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
mov eax, dword [0x10012018]
add esi, 4
add edi, 4
jne 0x10010120
add ebp, 0x14
mov ebx, dword [esp + 0x10]
jne 0x100100f4
pop edi
pop esi
pop ebp
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [ebx + 8]
push edx
add ecx, eax
call ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x1001018c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.1001020f
jae 0x1001019a
xor ecx, ecx
call fcn.1001020f
jae 0x100101c9
xor eax, eax
call fcn.1001020f
jae 0x100101d9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.1001020f
adc al, al
jae 0x100101bb
jne 0x10010205
stosb byte es:[edi], al
jmp 0x1001019d
call fcn.1001021b
sub ecx, ebx
jne 0x100101e2
call fcn.10010219
jmp 0x10010201
lodsb al, byte [esi]
shr eax, 1
je 0x1001022b
adc ecx, ecx
jmp 0x100101fe
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.10010219
cmp eax, 0x7d00
jae 0x100101fe
cmp ah, 5
jae 0x100101ff
cmp eax, 0x7f
ja 0x10010200
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1001019d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x417268
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x41d904], 0x10
mov esi, 0x41a3bc
mov edi, 0x41c87c
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x418b88
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x418bce
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00418aec
mov eax, dword [ebp - 4]
call fcn.004046fc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418bd5
lea eax, [ebp - 4]
call fcn.0040423c
ret

Function at 0x418c98
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00407b88
add esp, 0x104
pop ebx
ret

Function at 0x418f4c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0
push 0
push 0x1c
push 0
call sub.SHFolder.dll_SHGetFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x101
call fcn.004044ac
add esp, 0x104
pop ebx
ret

Function at 0x40895c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.0040898a
sub eax, 0x3dd46b42
add esi, 0xf4906fce
xor dword [edi], ecx
add eax, esi
and eax, eax
add edi, 1
sub eax, esi
mov eax, 0x64c71e28
cmp edi, ebx
jne fcn.0040895c
ret