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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004764c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004ffee6
lea ecx, [esi + 0x40]
mov dword [ebp - 4], 0
mov dword [esi], 0x1004ecc0
call dword [0x1004b194]
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call dword [0x1004b194]
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call dword [0x1004b194]
push 0x1004eca0
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
mov dword [esi + 0xc], 0x6e
mov dword [esi + 0x10], 0x6e
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x30], 0x6e
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x501450
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100476c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00501110
push 0x1004ecec
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [esi], 0x1004ecd8
mov dword [esi + 0xc], 0x70
mov dword [esi + 0x10], 0x70
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x30], 0x70
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5014d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100476ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004ffee6
lea ecx, [esi + 0x34]
mov dword [ebp - 4], 0
mov dword [esi], 0x1004ed0c
call dword [0x1004b194]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.00501110
push 0x1004ec80
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
mov dword [esi + 0xc], 0x6f
mov dword [esi + 0x10], 0x6f
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x30], 0x6f
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x501670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.005014d0
push 0x1004ed38
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 0
mov dword [esi], 0x1004ed24
mov dword [esi + 0xc], 0x71
mov dword [esi + 0x10], 0x71
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x30], 0x71
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x501b20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100477d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004ffee6
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
mov dword [esi], 0x1004ed88
call dword [0x1004b194]
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call dword [0x1004b194]
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call dword [0x1004b194]
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov edi, 0x72
push 0x1004ed5c
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 5
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov word [esi + 4], di
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x5020d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100478bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004ffee6
xor edi, edi
lea ecx, [esi + 0x38]
mov dword [ebp - 4], edi
mov dword [esi], 0x1004ee18
call fcn.004fee70
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov dword [esi + 0x14c], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x154], edi
mov edi, 0xe6
push 0x1004edf4
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x30], di
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x502600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004797f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004ffee6
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
mov dword [esi], 0x1004ee94
call dword [0x1004b194]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov edi, 0xcc
push 0x1004ee6c
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 2
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 8], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x502b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047a13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004ffee6
xor eax, eax
mov dword [esi], 0x1004ef08
mov dword [ebp - 4], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
push 0x1004eee4
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0xf0
mov dword [esi + 0x10], 0xf0
call dword [0x1004b1c8]
mov ecx, dword [ebp - 0xc]
mov word [esi + 0x30], 0xf0
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5098d4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1004844e
call fcn.005160d0
sub esp, 0x3c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 4], eax
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov byte [ebp - 4], 4
call dword [0x1004b0e4]
push 0x1004f258
lea ecx, [ebp - 0x48]
mov dword [esi], eax
call dword [0x1004b154]
mov edi, 0x1004f244
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call dword [0x1004b154]
push 0x3c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 6
call fcn.004f8865
mov ecx, eax
call fcn.004f7feb
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x5c], eax
mov byte [ebp - 4], 5
call dword [0x1004b150]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call dword [0x1004b150]
push 0x1004f234
lea ecx, [ebp - 0x2c]
call dword [0x1004b154]
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call dword [0x1004b154]
push 0x1e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 8
call fcn.004f8865
mov ecx, eax
call fcn.004f7feb
lea ecx, [ebp - 0x48]
mov dword [esi + 0x58], eax
mov byte [ebp - 4], 7
call dword [0x1004b150]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call dword [0x1004b150]
mov ebx, 0x1004f224
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x1004b154]
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call dword [0x1004b154]
push 0x2710
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xa
call fcn.004f8865
mov ecx, eax
call fcn.004f7feb
lea ecx, [ebp - 0x48]
mov dword [esi + 0x60], eax
mov byte [ebp - 4], 9
call dword [0x1004b150]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call dword [0x1004b150]
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x1004b154]
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call dword [0x1004b154]
push 0x7530
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0xc
call fcn.004f8865
mov ecx, eax
call fcn.004f7feb
lea ecx, [ebp - 0x48]
mov dword [esi + 0x64], eax
mov byte [ebp - 4], 0xb
call dword [0x1004b150]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call dword [0x1004b150]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x50d1da
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x10048b24
call fcn.005160d0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004f7e2e
lea edi, [esi + 8]
xor ebx, ebx
push esi
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.005167da
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.0050b506
mov dword [esi], 0x1004f9d4
mov dword [edi], 0x1004f9c4
mov dword [esi + 0x10], 0x1004f9a4
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.004d9ab0
push dword [ebp + 0xc]
lea ecx, [esi + 0x1f0]
mov byte [ebp - 4], 6
call fcn.005168d6
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0x20c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
or dword [esi + 0x1e8], 0xffffffff
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x1fc], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x204], bl
mov eax, dword [edi + 0x198]
mov dword [esi + 0x208], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x50e49e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10048bf5
call fcn.005160d0
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004fa0a3
push dword [esi + 0x74]
and dword [ebp - 4], 0
push dword [esi + 0x70]
lea ecx, [ebp - 0x28]
call fcn.004f9afc
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0xe0]
lea ecx, [esi + 0x18]
call fcn.005126fc
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.004f9c21
lea ecx, [edi + 0x1c]
mov dword [ebp + 8], ecx
call fcn.004f9c21
and word [edi + 0x30], 0
lea ecx, [edi + 0x34]
call fcn.0050e31c
push dword [ebp + 8]
lea ecx, [esi + 0xa8]
push ebx
call fcn.00511a39
push ebx
lea ecx, [esi + 0x80]
call fcn.004f9f19
lea ecx, [esi + 0x20]
call fcn.00510654
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
lea eax, [esi + 0xf8]
sub dword [eax], ecx
push ebx
lea ecx, [esi + 0x114]
sbb dword [eax + 4], edx
lea eax, [ebp - 0x14]
push eax
call fcn.005063e2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004f9c13
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x512159
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
mov eax, 0x1004906f
call fcn.005160d0
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x18]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1004fae8
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
call fcn.005119c1
and dword [ebp - 4], 0
lea ecx, [esi + 0x24]
call fcn.005119e6
add edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
adc ebx, dword [ebp + 0x14]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
pop edi
mov byte [esi + 0x30], 0
mov byte [esi + 0x31], 0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x5155d2
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x10049365
call fcn.005160d0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00514d2e
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.00514d2e
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00514d2e
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.00514d2e
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.00514d2e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401443
pop dword [ebp - 0x28]
mov eax, 0x401443
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x8d85846d
sub dword [ebp - 0x38], 0x3f333f22
mov dword [ebp - 0x34], 0x1e6ff617
sub dword [ebp - 0x34], 0xec3ca9d2
mov dword [ebp - 0x30], 0x71a1d5c3
sub dword [ebp - 0x30], 0x25559195
mov dword [ebp - 0x2c], 0xdd0a9cf
sub dword [ebp - 0x2c], 0xdd0a9cf
lea eax, [ebp - 0x38]
push eax
mov eax, 0xc427384f
sub eax, 0xc3e6b74b
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xdc14e29c
add dword [ebp - 0x38], 0x985d86ba
mov dword [ebp - 0x34], 0x4c75120
sub dword [ebp - 0x34], 0xc35aefab
mov dword [ebp - 0x30], 0xc412f385
add dword [ebp - 0x30], 0x9f5c78e7
mov dword [ebp - 0x2c], 0x84163036
sub dword [ebp - 0x2c], 0x84163036
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x36c22
push 0
call eax
mov ecx, 0x18f12b1
add ecx, 0xfe712f2e
xor edx, edx
add edx, eax
mov ebx, 0xbeb0f353
add ebx, 0x4195f0ad
add ebx, dword [ebp - 0x28]
mov esi, 0x91b05392
sub esi, 0xf9a6f6a4
xor dword [ebp - 0x14], ebx
mov edi, dword [ebx]
add dword [ebp - 0x20], 0x930057e3
xor edi, esi
mov dword [ebp - 0x20], 0xbeef9a4b
mov dword [edx], edi
add edx, 0x7bb1ebfd
add edx, 0x844e1407
add ebx, 0x77cc8d42
sub ebx, 0x77cc8d3e
loop 0x40155d
add eax, 0xea680a9a
sub eax, 0xea67104b
xor ebx, ebx
add ebx, eax
add eax, 0x633f58f3
sub eax, 0x633f58ee
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x402fac
Capabilities:
Query or enumerate registry value

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

Function at 0x403d10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b04c], 0
je 0x403d71
cmp word [0x45b220], 0xd7b2
jne 0x403d39
cmp dword [0x45b228], 0
jbe 0x403d39
mov eax, 0x45b21c
call dword [0x45b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45906c
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 0x403d98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x403d8d
push 0
push 0x459064
push 0x45906c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c98
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 0x405cfe
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.004040fc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b70
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ce8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d05
lea eax, [ebp - 0x10]
call fcn.00403e8c
ret

Function at 0x40ae1c
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 0x40ae55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f7c
jmp 0x40ae5e
mov eax, ebx
mov edx, esi
call fcn.00403ee0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b510
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b388
mov eax, dword [0x45a0d8]
cmp byte [eax], 0
je 0x40b58c
mov eax, dword [0x459ed8]
call fcn.004029dc
call fcn.00402874
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.0040865c
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 0x40b5d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x459e84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b668]
call fcn.004051ac
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 0x40be7c
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 0x40bf52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403f24
lea eax, [ebp - 8]
call fcn.0040439c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040434c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf3c
mov eax, ebx
call fcn.0040270c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf35
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.0040434c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bf1f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf64
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bf1f
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 0x40bf3c
mov eax, dword [ebp - 0x10]
call fcn.0040272c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf59
lea eax, [ebp - 8]
call fcn.00403e8c
ret

Function at 0x40c45c
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 0x40c4c0
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.004040fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004080f4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4c7
lea eax, [ebp - 0xc]
call fcn.00403e8c
ret

Function at 0x41db44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45b888
cmp dword [edi], 0
jne 0x41dbc0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45b884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4593fc
mov ecx, 2
call fcn.00402908
mov edx, 0x41db1c
lea eax, [esi + 5]
call fcn.0041db3c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041db3c
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 0x41db95
mov dword [0x45b884], 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 0x41f0fc
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 0x41f102
ret
Function at 0x421550
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 0x4215a1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421588
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421578
jmp 0x4215a1
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 0x421589
pop ebx
mov esp, ebp
pop ebp
ret