joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418425
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41845a
cmp edi, dword [esi + 0xc]
jge 0x41845a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41845a
cmp edi, dword [eax + 8]
jge 0x41845a
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41845c
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x418560
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x418594
jmp fcn.0040f824
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x418605
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4186fe
cmp eax, dword [edi + 0xc]
jge 0x4186fe
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x418656
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4186e7
cmp dword [ebp + 0xc], ebx
je 0x4186e7
jmp 0x418680
push 0x10
call fcn.004182f1
cmp eax, ebx
je 0x41866c
mov ecx, eax
call fcn.00418557
mov esi, eax
jmp 0x41866e
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x418697
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4186a7
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4186b9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040f824
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00405940
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4186f9
cmp ecx, dword [esi + 8]
jge 0x4186f9
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4186ff
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4187bd
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 0x4187eb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418809
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00418727
jmp 0x418809
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418809
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00418727
test edi, edi
mov eax, edi
jne 0x4187f3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4247dc]
test ecx, ecx
je 0x4188bc
jmp 0x4187bc
ret 8
Function at 0x1005e15
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
mov eax, dword [section..data]
mov edi, section..data
cmp eax, edi
je 0x1005e52
test byte [eax + 0x1c], 8
je 0x1005e52
push dword [ebp - 8]
push 0x1001250
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005b19
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x1005f33
xor eax, eax
inc eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
jle 0x1005f2a
add ebx, 4
xor edi, edi
xor esi, esi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
movzx eax, byte [esi + 0x1001264]
push eax
push dword [esi + 0x1001260]
push dword [ebx]
call fcn.01005d04
cmp al, 1
je 0x1005ebc
add esi, 0xc
inc edi
cmp esi, 0x84
jb 0x1005e8d
jmp 0x1005f13
mov eax, edi
imul eax, eax, 0xc
mov esi, dword [eax + 0x1001268]
cmp esi, 0x10
jne 0x1005ee2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 0x1001260]
push dword [ebp - 8]
call fcn.01005d86
jmp 0x1005f10
cmp esi, 0x20
jne 0x1005f10
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpICW]
push 0x1001308
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x1005f00
push 0x60
pop esi
jmp 0x1005f10
push 0x1001300
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x1005f10
xor esi, esi
or dword [ebp - 4], esi
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add ebx, 4
cmp eax, dword [ebp - 0x14]
jl 0x1005e89
mov edi, section..data
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [ebp - 4], 2
mov esi, 0x80070057
je 0x1005f69
mov eax, dword [section..data]
cmp eax, edi
je 0x1005f64
test byte [eax + 0x1c], 8
je 0x1005f64
push 0x1001250
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005ac7
mov eax, dword [section..data]
mov dword [ebp - 0x18], esi
jmp 0x1005f6e
mov eax, dword [section..data]
test byte [ebp - 4], 8
je 0x1005f93
cmp eax, edi
je 0x1005f90
test byte [eax + 0x1c], 8
je 0x1005f90
push 0x1001250
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01005ac7
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret 0xc
Function at 0x1006852
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10073a0
call fcn.01006a04
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10083c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100660d
cmp eax, esi
jne 0x1006600
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006610
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10065e7
xor esi, esi
inc esi
mov eax, dword [0x10083c4]
cmp eax, esi
jne 0x1006623
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006652
mov eax, dword [0x10083c4]
test eax, eax
jne 0x100664c
mov dword [0x10083c4], esi
push 0x1001124
push 0x1001118
call fcn.01006549
pop ecx
pop ecx
test eax, eax
je 0x1006652
jmp 0x1006776
mov dword [0x1008084], esi
mov eax, dword [0x10083c4]
cmp eax, esi
jne 0x1006676
push 0x1001114
push 0x100110c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10083c4], 2
cmp dword [ebp - 0x20], ebx
jne 0x1006683
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10083cc], ebx
je 0x10066a4
push 0x10083cc
call fcn.01006979
pop ecx
test eax, eax
je 0x10066a4
push ebx
push 2
push ebx
call dword [0x10083cc]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1006776
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100670e
cmp cx, bx
je 0x10066c9
cmp dword [ebp - 0x1c], ebx
jne 0x100670e
movzx ecx, word [eax]
cmp cx, bx
je 0x10066de
cmp cx, 0x20
ja 0x10066de
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10066c9
test byte [ebp - 0x40], 1
je 0x10066ea
movzx ecx, word [ebp - 0x3c]
jmp 0x10066ed
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1008080], eax
cmp dword [0x1008074], ebx
jne 0x1006753
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100671f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10066b3
cmp dword [0x1008084], ebx
jne 0x1006761
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1008080]
jmp 0x1006782
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01006a49
ret
call fcn.01006b51
jmp 0x10065aa
Function at 0x79ebd3c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x79ebd3d2
pushal
call 0x79ebd3d8
pop ebp
sub ebp, 0x10
sub ebp, 0x135d3c8
mov al, byte [esp + 0x28]
cmp al, 1
je 0x79ebd3fc
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x79ebd405
mov eax, 0x135d3c8
add eax, ebp
add eax, 0x63
mov ecx, 0x59f
mov edx, 0x22ce805c
xor byte [eax], dl
inc eax
dec ecx
adc byte [eax + 0x49], al
jne 0x79ebd41c
jmp 0x79ebd42f
xlatb
xchg ecx, eax
xlatb
aad 0x60
pop esp
pop esp
pop esp
fstp qword [ebp + 0x5c5c5ca4]
pop edi
xchg ecx, eax
in al, 0x56
pop esp
pop esp
pop esp
out 0x74, al
pop esp
pop esp
pop esp
stosd dword es:[edi], eax
mov esi, 0xddd7945f
push eax
pop esp
pop esp
pop esp
pop edi
cdq
or al, 0xd1
cmp byte [eax - 0x60], bh
aad 0x58
js 0x79ebd492
sbb byte [ecx - 0x4acba38a], 0x51
push edi
pop ebp
pop ebp
jo 0x79ebd4e2
xor al, 0x10
mov al, byte es:[0x5c59b4b2]
pop esp
pop esp
mov ch, 0x6c
pop esp
pop esp
pop esp
sar dword [eax], 1
js 0x79ebd41d
aad 0x70
js 0x79ebd452
xor byte [eax + 0x5c], bh
xlatb
fst dword [esp + ebx*2 + 0x5c]
pop esp
xlatb
leave
push eax
pop esp
pop esp
pop esp
xlatb
ror dword [esp + ebx*2 + 0x5c], 1
dec esp
pop esp
pop esp
pop esp
popfd
mov ch, 0x5e
insd dword es:[edi], dx
pop esi
fistp word [esi - 0x26aceaa8]
test al, 0xa3
mov dword [0x509e01a3], eax
pop esp
xlatb
sar byte [eax + 0x58], 1
pop esp
pop esp
pop esp
xor al, 0x80
cdq
jbe 0x79ebd511
xor al, 0xb5
push ecx
push edi
pop ebp
pop ebp
jo 0x79ebd535
or eax, 0x5c5c59b4
pop esp
mov ch, 0x63
pop esi
pop esp
pop esp
or edi, edx
mov al, 0xa3
sub dword [eax - 0x5d], edx
sub dword [esp + esi*4 + 0x2e], edx
pop esp
pop esp
pop esp
xlatb
loope 0x79ebd52d
pop esp
pop esp
pop esp
outsd dx, dword [esi]
xchg ebp, eax
invalid
add ah, al
invalid
pop esp
cmp bl, ch
cmpsd dword [esi], dword es:[edi]
mov dword [0x49d85379], eax
pop esp
pop esp
pop esp
sbb eax, 0xa3a390b5
mov dword [0x5d651075], eax
fistp word [ebp + 0x58b4df59]
mov ch, 0xe1
mov dword [0x875a3a3], eax
pop esi
pop esi
fistp word [ebp + 0x58b6df5a]
fbstp tbyte [ecx + ebx*2 - 0x5c5c084b]
mov dword [0x5c509e01], eax
or edi, edx
mov al, 0xa
or ecx, dword [ecx]
xlatb
sub dword [eax - 0x29], edx
and dword [eax - 0x12], edx
invalid
Function at 0x40334c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4033c4
xor eax, eax
push ebp
push 0x4033bd
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 0x403400
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x45b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404170
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59404c], 0
je 0x4041d1
cmp word [0x594220], 0xd7b2
jne 0x404199
cmp dword [0x594228], 0
jbe 0x404199
mov eax, 0x59421c
call dword [0x594238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b06c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4041f8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x45b030], 0
jne 0x4041ed
push 0
push 0x45b064
push 0x45b06c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x40432c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4042f4
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40627c
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 0x4062e2
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004045e8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f10
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4062cc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062e9
lea eax, [ebp - 0x10]
call fcn.00404378
ret

Function at 0x408ac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404838
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408ad9
test al, 0x10
jne 0x408add
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408ae4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404838
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x408b06
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b57c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40b5b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404468
jmp 0x40b5be
mov eax, ebx
mov edx, esi
call fcn.004043cc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5c8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40b5e9
mov al, byte [esp]
jmp 0x40b5eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc80
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bae8
mov eax, dword [0x593bc8]
cmp byte [eax], 0
je 0x40bcfc
mov eax, dword [0x5939cc]
call fcn.00402d7c
call fcn.00402c14
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d24
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bd44
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40bd32
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x593978]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x594668]
call fcn.004056e8
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret
Function at 0x40c5f4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c6ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404410
lea eax, [ebp - 8]
call fcn.00404888
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404838
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6b4
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c6ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404838
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c697
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6dc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c697
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6b4
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6d1
lea eax, [ebp - 8]
call fcn.00404378
ret

Function at 0x40cc74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ccd8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004045e8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00408720
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccdf
lea eax, [ebp - 0xc]
call fcn.00404378
ret

Function at 0x41d814
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041d66c
dec esi
jne 0x41d836
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41e978
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x594890
cmp dword [edi], 0
jne 0x41e9f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x59488c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45b408
mov ecx, 2
call fcn.00402ca8
mov edx, 0x41e950
lea eax, [esi + 5]
call fcn.0041e970
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e970
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41e9c9
mov dword [0x59488c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42044c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420452
ret

Function at 0x4228d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x422921
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422908
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4228f8
jmp 0x422921
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x422909
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b3e0
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42b32c
call sub.user32.dll_EnumWindows
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42b57d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042af60
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42b525
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042ab60
cmp dword [ebp - 4], 0
je 0x42b567
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404838
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42b584
lea eax, [ebp - 4]
call fcn.00404378
ret

Function at 0x430494
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x594b60], 0
je 0x4305e3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x593b60]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4305e3
mov eax, dword [0x594b64]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x594b60]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4305b2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x594b60]
call fcn.00417a40
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4305aa
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4305aa
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4305aa
mov eax, dword [ebp - 0x14]
call fcn.00439064
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4305aa
push ebp
call fcn.00430450
pop ecx
test al, al
jne 0x4305aa
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x430566
mov eax, dword [ebp - 0x14]
call fcn.00437b5c
dec eax
jle 0x4305aa
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004036e8
cmp byte [ebp - 1], 0
je 0x4305aa
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4305aa
mov edx, dword [ebp - 0x14]
mov eax, dword [0x594b64]
call fcn.0042fc1c
inc edi
dec ebx
jne 0x4304f9
mov eax, dword [0x594b64]
cmp dword [eax + 8], 0
jle 0x4305ca
mov eax, dword [0x594b64]
call fcn.0042fcac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4305e3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004302b8
pop ecx
test al, al
jne 0x4305e3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret