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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4888d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4be1d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
lea esi, [esp + 0x18]
mov dword [eax + 8], ecx
call fcn.004412b0
mov esi, ebx
lea edi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00411470
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x440789
test al, 1
jne 0x440789
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x440789
lea edx, [esp + 0x14]
push 2
push edx
mov ecx, edx
push ecx
call eax
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4456a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d643
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push edi
mov eax, dword [0x4be1d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [esi + 4]
mov dword [esi], 0x4a6f54
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x24
mov dword [eax], 0x4a2250
call int.00468b6e
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4456fd
push eax
call fcn.0041cde0
mov edi, eax
jmp 0x4456ff
xor edi, edi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
push edi
lea ecx, [eax + 0xc]
mov dword [eax + 8], edi
call fcn.0041da30
mov eax, dword [ebp - 0x10]
push edi
add eax, 8
push edi
push eax
call fcn.0045b3e0
fldz
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x4a21a0
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov ecx, dword [eax]
mov dword [esi + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x30], ecx
mov edx, dword [eax + 0xc]
fst dword [esi + 0x3c]
fst dword [esi + 0x40]
add esp, 0xc
fld1
mov dword [esi + 0x34], edx
fst dword [esi + 0x44]
mov word [esi + 0x38], bx
fst dword [esi + 0x48]
mov byte [esi + 0x3a], 1
fxch st(1)
mov dword [esi + 0x50], 0xff00
fstp dword [esi + 0x4c]
mov byte [esi + 0x54], bl
mov dword [esi + 0x58], 0xff000000
mov byte [esi + 0x6c], bl
fst dword [esi + 0x5c]
mov eax, esi
fst dword [esi + 0x60]
fst dword [esi + 0x64]
fstp dword [esi + 0x68]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44ccd0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488fbb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4be1d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], 0x4a7228
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
push 0x18
mov dword [esi + 0x30], ebx
call int.00468b6e
add esp, 4
cmp eax, ebx
je 0x44cd72
mov dword [esi + 0x2c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x2c]
mov al, 1
mov byte [ecx + 0x14], al
mov edx, dword [esi + 0x2c]
mov byte [edx + 0x15], al
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov word [esi + 0x6c], 0x101
mov byte [esi + 0x6e], bl
mov dword [esi + 0x38], 0x4a7234
mov byte [esi + 0x70], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
call int.00468e55
push 0x4af68c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], 0x49a16c
call fcn.0046c2be
int3
Function at 0x462080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x4620a2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x4620d0
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4620d0
inc edi
cmp edi, edx
jb 0x4620c1
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x4621d7
cmp eax, 3
jbe 0x462107
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x462144
cmp al, 0xff
je 0x462144
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4620b5
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x4620eb
movzx eax, byte [esi + 0x49d778]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x49d770], 0
mov al, byte [ecx + 4]
je 0x462130
test al, al
je 0x462130
cmp al, 0xff
jne 0x4620eb
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x4620b5
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x4621a7
movzx edx, byte [esi + 0x49d778]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x46218e
cmp cl, 0xff
jne 0x4621a4
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x462162
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x4620b5
cmp eax, 3
jbe 0x4621ec
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4647e0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea ecx, [ebp - 4]
push ecx
lea esi, [eax + 0x48]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 8]
push edx
push esi
push 0x20000013
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov dword [esi], 0x194
call dword [0x4993e8]
mov esi, dword [esi]
cmp esi, 0xc8
je 0x46482f
cmp esi, 0x130
je 0x46482f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x483fb0
Capabilities:
Encode data using xor

Disassembly:
arpl word [edx - 0x6e], bx
invalid
dec esi
jg 0x483f52
movsd dword es:[edi], dword [esi]
and dword [eax + 0x57e8e6ca], ebp
sbb dword [edx], esp
lcall 0x80b4, 0x7ef738c4
pop ss
xor al, al
aad 0x69
scasb al, byte es:[edi]
or byte [ebx - 0x1b0a649d], 0x67
sar al, 1
mov esp, 0xe9bb20a9
sbb edx, dword [eax + 0x61404d2c]
jge 0x483f14
xchg edi, eax
xor eax, 0xdbb65889
pushfd
fst dword [ebx + 0x6113a4fe]
pop ebp
insd dword es:[edi], dx
insb byte es:[edi], dx
outsb dx, byte [esi]
popfd
dec eax
les esp, [ebx]
mov esp, 0x9fdc84ff
mov ebx, 0x33a54a3a
lcall 0x6158, 0x9a6559f0
fcomp qword [edi - 0x5ab5c545]
xor ebx, dword [edx - 0x659aa610]
pop eax
popal
loope 0x483fc8
pop eax
jns 0x48400a
arpl word [edx + edx - 0x1d05cef], si
or ah, ch
mov ah, 0x12
adc dword [ebx - 0x13f701d1], esp
stc
inc esp
jbe 0x483f94
pop es
sub ebx, ebp
push 3
add byte [ebx - 0x14], ah
js 0x483f4e
sahf
add byte [eax + 0x21], dl
pushfd
xchg ecx, eax
and esp, dword [edi - 0x55]
stosd dword es:[di], eax
and byte [eax], dl
mov al, byte [0xfc7d1e63]
adc byte [eax - 0x382e19d], ah
push es
packssdw mm7, qword [esi - 0x2bde5ac9]
cld
push edi
aas
mov bh, 0xf
inc esp
or eax, 0x682f607c
rcl dword [esi]
les eax, [eax]
jle 0x484064
push ds
push edx
fnstenv [edi - 0x49]
divps xmm6, xmmword [ebx + esi + 0xf]
add al, 0x16
daa
add esi, ebx
cdq
je 0x483f7c
iretd
into
and dword [edx - 0x7f7a13a2], esi
out 0x56, al
jge 0x483fa6
xor esi, dword [edx - 0x332acbfb]
aad 0xcc
pop esi
and bh, cl
imul ecx, eax, 0xfffffff9
mov edi, dword [ecx - 0x46a6baf8]
jle 0x483faf
mov edx, 0x7eeda4a5
loopne 0x483ffb
fidivr word [esi - 0x5ef142dc]
and al, ah
adc byte [eax + 0x3e], al
jg 0x483fc5
sub dword [ebx], 0x35ad434
xchg esi, eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jbe 0x484044
fild word [esi]
stosd dword es:[edi], eax
popal
sub byte [eax + 0x59fdc98c], al
dec ebx
mov bh, 0x66
lahf
into
push esp
mov dl, 0xe3
dec ebx
fcomp st(6)
sbb ah, byte [ebx + 0x507d1804]
cli
lcall 0xaa49, 0x85246f1d
stosb byte es:[edi], al
add byte [esi], ch
scasd eax, dword es:[edi]
das
cmp dword [esi - 0x4808684a], ebx
dec eax
nop
daa
sbb esi, dword [esi + 0x601543f3]
mov al, byte [0x312d6249]
int1
aam 0x26
mov dh, 0x97
div dword [edi + 0x1b279048]
mov dh, 0xf3
inc ebx
adc eax, 0x6249a060
sub eax, 0x26d4f131
mov fs, word [ebp + 0x46bdabfd]
jmp 0xd60ce610
Function at 0x402f90
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402fe9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402e2c
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402e2c
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402fd3
inc ebx
jmp 0x402fbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ff0
lea eax, [ebp - 8]
call fcn.00404bb4
ret

Function at 0x402ff8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404bb4
test esi, esi
jne 0x40302f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404ca4
jmp 0x403050
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e2c
mov dword [esp], eax
test esi, esi
je 0x403050
cmp dword [ebx], 0
je 0x403050
dec esi
jmp 0x403037
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403c78
Capabilities:
Query or enumerate registry value

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

Function at 0x404a30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4be04c], 0
je 0x404a91
cmp word [0x4be220], 0xd7b2
jne 0x404a59
cmp dword [0x4be228], 0
jbe 0x404a59
mov eax, 0x4be21c
call dword [0x4be238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ba074
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 0x404ab8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ba034], 0
jne 0x404aad
push 0
push 0x4ba06c
push 0x4ba074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406eec
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 0x406f52
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.00404e24
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406f3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f59
lea eax, [ebp - 0x10]
call fcn.00404bb4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405074
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e15
test al, 0x10
jne 0x409e19
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d1a8
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 0x40d1e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ca4
jmp 0x40d1ea
mov eax, ebx
mov edx, esi
call fcn.00404c08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d8ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d714
mov eax, dword [0x4bd028]
cmp byte [eax], 0
je 0x40d928
mov eax, dword [0x4bcca8]
call fcn.00403470
call fcn.00402d58
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.0040a224
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 0x40d970
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d95e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bcc34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4be668]
call fcn.0040633c
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 0x40e244
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 0x40e31a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c4c
lea eax, [ebp - 8]
call fcn.004050c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405074
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e304
mov eax, ebx
call fcn.00402bcc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e2fd
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.00405074
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e2e7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e32c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e2e7
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 0x40e304
mov eax, dword [ebp - 0x10]
call fcn.00402bfc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e321
lea eax, [ebp - 8]
call fcn.00404bb4
ret

Function at 0x40e978
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 0x40e9dc
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.00404e24
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409a5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9e3
lea eax, [ebp - 0xc]
call fcn.00404bb4
ret

Function at 0x40f1d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x4bcce4]
cmp dword [eax], 0
je 0x40f20a
push 0xa
push 0x40f260
mov eax, dword [0x4bcce4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x4bcce4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x40f256
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x4bd0c4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x40f256
mov ebx, dword [esp + 4]
push 0xa
push 0x40f260
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x40f256
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x40f221
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x40f940
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404bb4
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405074
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40f985
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404ca4
jmp 0x40f99e
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405200
push ebx
mov eax, dword [esi]
call fcn.00405074
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x424d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4be890
cmp dword [edi], 0
jne 0x424dec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4be88c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ba5d8
mov ecx, 2
call fcn.00402dec
mov edx, 0x424d48
lea eax, [esi + 5]
call fcn.00424d68
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424d68
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 0x424dc1
mov dword [0x4be88c], 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 0x426614
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004260d8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405074
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x426672
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bceb4]
mov dl, 1
mov eax, dword [0x425fd0]
call fcn.0040da9c
call fcn.004045ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42667c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405074
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4266d4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4bd210]
mov dl, 1
mov eax, dword [0x425fd0]
call fcn.0040da9c
call fcn.004045ac
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00426108
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8