joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4818ec
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4818f4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x481ae6
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x481afc
mov eax, esi
call fcn.0047f67c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404760
lea ecx, [ebp - 0x10]
mov edx, 0x481b10
mov eax, esi
call fcn.0047f67c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404760
lea ecx, [ebp - 0x14]
mov edx, 0x481b28
mov eax, esi
call fcn.0047f67c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404760
lea ecx, [ebp - 0x18]
mov edx, 0x481b44
mov eax, esi
call fcn.0047f67c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404760
lea ecx, [ebp - 0x1c]
mov edx, 0x481b60
mov eax, esi
call fcn.0047f67c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404760
lea ecx, [ebp - 0x24]
mov edx, 0x481b78
mov eax, esi
call fcn.0047f67c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408c00
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409148
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x481b90
mov eax, esi
call fcn.0047f67c
mov eax, dword [ebp - 0x28]
call fcn.0047e794
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x481ba0
mov eax, esi
call fcn.0047f67c
mov eax, dword [ebp - 0x2c]
call fcn.0047e794
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x481bb8
mov eax, esi
call fcn.0047f67c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409148
inc eax
je 0x481a89
lea ecx, [ebp - 0x34]
mov edx, 0x481bb8
mov eax, esi
call fcn.0047f67c
mov eax, dword [ebp - 0x34]
call fcn.0040910c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040acf0
fstp qword [ebp - 0x3c]
wait
call fcn.0040b088
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x481aa4
lea ecx, [ebp - 0x40]
mov edx, 0x481bb8
mov eax, esi
call fcn.0047f67c
mov eax, dword [ebp - 0x40]
call fcn.0047e794
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x481bc8
mov eax, esi
call fcn.0047f67c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481aed
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404730
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404730
ret
Function at 0x48dd84
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x48ddde
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048dd74
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047d400
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047d000
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48dde5
lea eax, [ebp - 4]
call fcn.0040470c
ret

Function at 0x492498
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bbc
xor eax, eax
push ebp
push 0x492567
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049cc
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.0040470c
mov edi, ebx
dec edi
test edi, edi
jl 0x492536
inc edi
xor esi, esi
lea eax, [ebp - 4]
call fcn.00404c24
lea edx, [eax + esi]
lea eax, [ebp - 0xd]
mov ecx, 1
call fcn.00407684
mov eax, esi
mov ecx, 0xd
cdq
idiv ecx
imul eax, eax, 0xd
mov edx, esi
sub edx, eax
mov bl, byte [edx + 0x4af8f8]
xor bl, byte [ebp - 0xd]
and bl, 0xff
lea ecx, [ebp - 0x14]
xor eax, eax
mov al, bl
mov edx, 2
call fcn.004090e4
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.004049d4
inc esi
dec edi
jne 0x4924e1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49256e
lea eax, [ebp - 0x14]
call fcn.0040470c
lea eax, [ebp - 0xc]
call fcn.0040470c
lea eax, [ebp - 4]
call fcn.0040470c
ret
Function at 0x492598
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bbc
xor eax, eax
push ebp
push 0x492686
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004049cc
mov ebx, eax
sar ebx, 1
jns 0x4925d0
adc ebx, 0
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x492578]
call fcn.00405b5c
add esp, 4
mov eax, dword [ebp - 8]
mov byte [eax + ebx], 0
mov esi, ebx
dec esi
test esi, esi
jl 0x492649
inc esi
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov edx, ebx
add edx, edx
inc edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404c2c
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, 0x49269c
call fcn.00404a18
mov eax, dword [ebp - 0x10]
call fcn.0040910c
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, ebx
mov ecx, 0xd
cdq
idiv ecx
mov al, byte [edx + 0x4af8f8]
mov edx, dword [ebp - 8]
xor byte [edx + ebx], al
inc ebx
dec esi
jne 0x4925fb
mov ebx, dword [ebp - 8]
mov eax, edi
mov edx, ebx
call fcn.00404904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49268d
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404730
lea eax, [ebp - 8]
mov edx, dword [0x492578]
call fcn.00405b68
lea eax, [ebp - 4]
call fcn.0040470c
ret
Function at 0x445a4f
Capabilities:
Terminate process

Disassembly:
jmp fcn.0046da10
jmp 0x460920
cmp ecx, dword [0x4f6130]
jne 0x46092a
repz ret
jmp 0x44467c

Function at 0x447684
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
jmp 0x4476c9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46fed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push es
mov ax, 0x101f
mov es, eax
xor eax, eax
mov esi, eax
mov ecx, 0x8000
xor al, byte es:[esi]
inc esi
loop 0x46fee5
pop es
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x46fef9
mov byte [ebp - 1], 0x55
mov al, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop esi
pop ecx
pop ebp
ret

Function at 0x401550
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4015c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401550
mov dword [esp], 0x40169c
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020fe
sub eax, 0x40169c
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401665
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.00401463
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014c4
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b800]
sar eax, cl
mov ecx, 0x40300c
shl ebx, cl
mov dword [esp + 4], eax
add ebx, ecx
mov dword [esp], ebx
call fcn.00401e01
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5e072b9f
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x43992e06
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402a50
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.004044ec
test esi, esi
jne 0x402a86
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.004045dc
jmp 0x402aa4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402964
mov edi, eax
test esi, esi
je 0x402aa4
cmp dword [ebx], 0
je 0x402aa4
dec esi
jmp 0x402a8d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4035d8
Capabilities:
Query or enumerate registry value

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

Function at 0x404350
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4cf04c], 0
je 0x4043b1
cmp word [0x4cf220], 0xd7b2
jne 0x404379
cmp dword [0x4cf228], 0
jbe 0x404379
mov eax, 0x4cf21c
call dword [0x4cf238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ca058
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 0x4043d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ca020], 0
jne 0x4043cd
push 0
push 0x4ca078
push 0x4ca058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e68
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406098
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405eeb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406098
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405eeb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f74
xor eax, eax
push ebp
push 0x405f6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405cb0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f52
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f52
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f74
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40608e
cmp byte [ebp - 0xd], 0
jne 0x405fbb
cmp byte [ebp - 0x12], 0
je 0x40608e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405fd4
dec ebx
cmp byte [ebx], 0x2e
je 0x405fe3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405fd3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40608e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406020
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40608e
cmp byte [ebp - 0xd], 0
je 0x40608e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40608e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408dec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040499c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e05
test al, 0x10
jne 0x408e09
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408ef4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040499c
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40bb84
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 0x40bbbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045dc
jmp 0x40bbc6
mov eax, ebx
mov edx, esi
call fcn.00404540
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbd0
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 0x40bbf1
mov al, byte [esp]
jmp 0x40bbf3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c278
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0f0
mov eax, dword [0x4cdeec]
cmp byte [eax], 0
je 0x40c2e0
mov eax, dword [0x4cdc74]
call fcn.00402eb4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004091b4
push eax
lea eax, [esp + 0x50]
push eax
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 0x40c328
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c316
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4cdc18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4cf718]
call fcn.00405c74
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 0x40d0e4
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 0x40d148
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.00404754
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d14f
lea eax, [ebp - 0xc]
call fcn.004044ec
ret
Function at 0x420364
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4cfa68
cmp dword [edi], 0
jne 0x4203e0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4cfa64]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ca5b0
mov ecx, 2
call fcn.00402924
mov edx, 0x42033c
lea eax, [esi + 5]
call fcn.0042035c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042035c
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 0x4203b5
mov dword [0x4cfa64], 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 0x4204fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x420580
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x420571
xor eax, eax
push ebp
push 0x42056a
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 0x4205a8
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 0x420571
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp dword [ebp - 8], 0
setne byte [0x4ca5a8]
mov esp, ebp
pop ebp
ret

Function at 0x4219c8
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 0x4219ce
ret

Function at 0x423f14
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 0x423f65
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423f4c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423f3c
jmp 0x423f65
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 0x423f4d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fa00
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x42faa2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x42fa75
mov edx, ebx
mov eax, dword [0x4213ec]
call fcn.004257a8
test al, al
je 0x42fa65
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004256b8
call fcn.00403fd8
jmp 0x42faa9
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x42fa30
mov ecx, dword [0x4cdc08]
mov dl, 1
mov eax, dword [0x40797c]
call fcn.0040c3f4
call fcn.00403f2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42faa9
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42fab0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x42fb08
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fb0f
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x42fb18
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x42fb6d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fb74
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret