joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009b630
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.100bf3a0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.101d6540
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x1009b6d5
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100b0a60
push 0x1023ac18
push esi
push 0x1023ac1c
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.100afe00
add esp, 0x2c
call fcn.101eedab
cmp dword [eax], 2
je 0x1009b6b2
call fcn.101eedab
cmp dword [eax], 6
je 0x1009b6b2
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x1009b6bc
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.100b0a60
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x1023abc0
call fcn.1009c180
mov esi, eax
add esp, 4
test esi, esi
jne 0x1009b6f7
push edi
call fcn.101df788
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.1009b860
push edi
push ebx
push 0x6a
push esi
call fcn.1009b890
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x100bffa0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.101d4a10
push esi
mov esi, dword [esp + 0x34]
mov eax, esi
push edi
xor edi, edi
sub eax, edi
je 0x100bffe8
sub eax, 2
je 0x100bffe8
sub eax, 0x15
je 0x100bffe8
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.100b0a60
add esp, 0x14
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
call fcn.100bfb30
cmp eax, 1
jne 0x100bffe0
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 8], ecx
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test esi, esi
jne 0x100c0025
or ecx, 0x400
mov dword [esp + 8], ecx
cmp dword [esp + 0x34], 1
jne 0x100c0033
or ecx, 1
mov dword [esp + 8], ecx
push dword [esp + 0x40]
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x38]
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x100c0081
push 0x2c6
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.100b0a60
push esi
call fcn.100c0710
push eax
push 1
call fcn.100afe00
add esp, 0x20
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret
Function at 0x100ecb80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.101d4a10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
xor edi, edi
call fcn.100adc80
mov ebx, eax
push ebx
push esi
call fcn.100adb60
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x100ecc09
push 0xf0000040
push 1
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100ecbe3
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.100adbc0
push esi
call fcn.100add40
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100ecc09
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 1
push esi
call fcn.100adc80
mov ebx, eax
push ebx
push esi
call fcn.100adb60
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x100ecc78
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x100ecc5e
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.100adbc0
push esi
call fcn.100add40
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x100ecc01
push esi
call fcn.100add40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10125ae0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101d4a10
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0x10
lea eax, [edx + 0xf]
lea ecx, [esi + 0xf]
cmp esi, eax
ja 0x10125b24
cmp ecx, edx
jb 0x10125b24
push edi
mov ecx, esi
sub edx, esi
mov edi, 0x10
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub edi, 1
jne 0x10125b13
pop edi
jmp 0x10125b31
movups xmm1, xmmword [esi]
movups xmm0, xmmword [edx]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
push 0x10
push esi
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 4]
call fcn.100f04b0
add esp, 0x14
pop esi
test eax, eax
je 0x10125b5b
cmp dword [esp], 0x10
jne 0x10125b5b
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x10125d50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x10125db3
mov edx, dword [esp + 0x10]
test edx, edx
je 0x10125db3
push ebx
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
cmp edx, eax
mov ebx, eax
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x10125d86
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x10125d77
mov eax, dword [edi + 0xc]
cmp edx, eax
jbe 0x10125db1
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor ecx, ecx
test edx, edx
je 0x10125db1
nop dword [eax]
mov eax, dword [edi + 0xc]
add eax, ecx
mov al, byte [eax + esi]
xor byte [edi + ecx + 0x30], al
inc ecx
cmp ecx, edx
jb 0x10125da0
pop edi
pop ebx
pop esi
ret
Function at 0x10127a30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.101d4a10
mov eax, dword [0x102a9e90]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x10127a9d
cmp edi, eax
je 0x10127a91
test ebp, ebp
je 0x10127b10
test ebx, ebx
js 0x10127b10
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x10127aa3
test eax, eax
je 0x10127b10
mov edi, eax
push edi
call fcn.100ba100
add esp, 4
test al, 2
jne 0x10127b10
test ebp, ebp
je 0x10127c1b
push edi
mov dword [esp + 0x14], 1
call fcn.100ba020
add esp, 4
cmp eax, 0x90
jg 0x10127b10
cmp eax, ebx
jge 0x10127b2b
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.10099220
add esp, 0xc
test eax, eax
je 0x10127b10
push ebx
push ebp
push dword [esi + 4]
call fcn.100993c0
add esp, 0xc
test eax, eax
je 0x10127b10
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.10099180
add esp, 0xc
test eax, eax
jne 0x10127b47
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101d463b
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x10127b10
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.101d5e60
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x10127b6a
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.101d63e0
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10127b70
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.10099220
add esp, 0xc
test eax, eax
je 0x10127c28
push edi
call fcn.100ba020
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.100993c0
add esp, 0x10
test eax, eax
je 0x10127c28
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x10127bc0
push ebp
push edi
push dword [esi + 0xc]
call fcn.10099220
add esp, 0xc
test eax, eax
je 0x10127c28
push edi
call fcn.100ba020
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.100993c0
add esp, 0x10
test eax, eax
je 0x10127c28
push dword [esi + 8]
push dword [esi + 4]
call fcn.10099550
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x10127c2a
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x10127bff
jmp 0x10127b6e
xor ebp, ebp
test ebx, ebx
je 0x10127c40
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.10003120
add esp, 8
mov eax, ebp
jmp 0x10127b12
Function at 0x10176060
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x10176074
mov dword [esp + 0x18], fcn.10174840
jmp fcn.1016dbe0
mov dword [esp + 0x18], fcn.10173ae0
jmp fcn.1016d910
Function at 0x101c7f90
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.101d4a10
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x101c801a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x101c801e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3c8]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.100b98e0
push eax
call fcn.100b9b00
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x101c8027
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x101c7fd2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x101c80a4
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x101c8065
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x10213790
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10213395

Function at 0x1021379b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10213516

Function at 0x1021a44b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10219c2f

Function at 0x1021a456
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10219e6a

Function at 0x10222baa
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1022299e
Function at 0x402a14
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040a8
test esi, esi
jne 0x402a4a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404198
jmp 0x402a68
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402a68
cmp dword [ebx], 0
je 0x402a68
dec esi
jmp 0x402a51
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4031c0
Capabilities:
Query or enumerate registry value

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

Function at 0x403f2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48604c], 0
je 0x403f8d
cmp word [0x486220], 0xd7b2
jne 0x403f55
cmp dword [0x486228], 0
jbe 0x403f55
mov eax, 0x48621c
call dword [0x486238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fb4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x484034], 0
jne 0x403fa9
push 0
push 0x484068
push 0x484070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f60
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 0x405fc6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404318
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d78
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405fb0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fcd
lea eax, [ebp - 0x10]
call fcn.004040a8
ret

Function at 0x40b614
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_1
test eax, eax
jle 0x40b64d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404198
jmp 0x40b656
mov eax, ebx
mov edx, esi
call fcn.004040fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b660
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_1
test eax, eax
jle 0x40b681
mov al, byte [esp]
jmp 0x40b683
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bd08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb80
mov eax, dword [0x485b58]
cmp byte [eax], 0
je 0x40bd84
mov eax, dword [0x485838]
call fcn.00402b8c
call fcn.00402854
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.00408a98
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40bdcc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4857cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x486668]
call fcn.00405444
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40c668
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 0x40c73e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404140
lea eax, [ebp - 8]
call fcn.004045b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404568
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c728
mov eax, ebx
call fcn.004026ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c721
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.00404568
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c70b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c750
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c70b
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 0x40c728
mov eax, dword [ebp - 0x10]
call fcn.0040270c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c745
lea eax, [ebp - 8]
call fcn.004040a8
ret

Function at 0x40ccd0
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 0x40cd34
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404318
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084e0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd3b
lea eax, [ebp - 0xc]
call fcn.004040a8
ret

Function at 0x41e6bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x486888
cmp dword [edi], 0
jne 0x41e738
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x486884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x484400
mov ecx, 2
call fcn.004028e8
mov edx, 0x41e694
lea eax, [esi + 5]
call fcn.0041e6b4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e6b4
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 0x41e70d
mov dword [0x486884], 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 0x41fbcc
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 0x41fbd2
ret
Function at 0x422080
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 0x4220d1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4220b8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4220a8
jmp 0x4220d1
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 0x4220b9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e788
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 0x42e6d4
call sub.user32.dll_EnumWindows
ret

Function at 0x42e8a8
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 0x42e925
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042e308
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42e8cd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042df08
cmp dword [ebp - 4], 0
je 0x42e90f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404568
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 0x42e92c
lea eax, [ebp - 4]
call fcn.004040a8
ret

Function at 0x431628
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 [0x486b58], 0
je 0x431777
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x485aac]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x431777
mov eax, dword [0x486b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x486b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x431746
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x486b58]
call fcn.004177fc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43173e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43173e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43173e
mov eax, dword [ebp - 0x14]
call fcn.0043a2c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43173e
push ebp
call fcn.004315e4
pop ecx
test al, al
jne 0x43173e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4316fa
mov eax, dword [ebp - 0x14]
call fcn.00438df0
dec eax
jle 0x43173e
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.00403554
cmp byte [ebp - 1], 0
je 0x43173e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43173e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x486b5c]
call fcn.00430db0
inc edi
dec ebx
jne 0x43168d
mov eax, dword [0x486b5c]
cmp dword [eax + 8], 0
jle 0x43175e
mov eax, dword [0x486b5c]
call fcn.00430e40
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431777
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043144c
pop ecx
test al, al
jne 0x431777
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