joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a270
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x48a30d
push ebx
push esi
call fcn.0048a239
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00488174
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x48a2ba
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48a30c
push edi
push eax
call fcn.00485457
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x48a2da
call fcn.0048541d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48a30b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00488174
add esp, 0x20
test eax, eax
jne 0x48a2f9
push edi
call fcn.0048541d
jmp 0x48a301
push ebx
call fcn.0048541d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x48a310
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48a321
pop esi
ret
push ebx
push edi
push esi
call fcn.0048a239
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00485457
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48a349
push ebx
push esi
push edi
call fcn.0046fb90
add esp, 0xc
push 0
call fcn.0048541d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x48d780
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0048d6fc
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x48d8ef
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x48d8ef
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x48d8a4
jg 0x48d7dc
test eax, eax
je 0x48d89a
push 1
push 0x1000
call fcn.00486fb8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x48d7ff
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x48d891
push 0x8000
push ebx
call fcn.00478dfb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x48d828
jg 0x48d823
cmp ecx, 0x1000
jb 0x48d828
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00484c5c
add esp, 0x10
cmp eax, 0xffffffff
je 0x48d86d
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x48d823
jl 0x48d854
test ecx, ecx
jne 0x48d815
push dword [ebp - 0xc]
push ebx
call fcn.00478dfb
push esi
call fcn.0048541d
add esp, 0xc
xor ebx, ebx
jmp 0x48d8fd
cmp byte [edi + 0x24], 0
je 0x48d884
cmp dword [edi + 0x20], 5
jne 0x48d884
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x48d88f
mov ebx, dword [edi + 0x18]
jmp 0x48d891
xor ebx, ebx
push esi
call fcn.0048541d
pop ecx
jmp 0x48d8fd
test ecx, ecx
jg 0x48d866
jl 0x48d8a4
test eax, eax
jae 0x48d866
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00483f53
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x48d8c4
cmp byte [edi + 0x1c], 0
je 0x48d866
jmp 0x48d8f5
push ebx
call fcn.00477963
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x48d866
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x48d8fd
cmp byte [edi + 0x1c], 0
je 0x48d8fa
mov ebx, dword [edi + 0x18]
jmp 0x48d8fd
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00483f53
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
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 0x401d60
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
xor byte [esi + section..syhua], 0xe3
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xa8
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x8d
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x3b
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xb4
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x75
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0x17
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x5e
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0xe
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x81
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xeb
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x61
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xc8
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xd5
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x76
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xbc
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x83
add esp, 0x40
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x46
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x1e
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xcd
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x26
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xdf
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x14
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0x72
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0x6a
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0x3e
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x49
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xf3
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x9e
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xc4
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0x48
push str.ujdishXABh78373377
call fcn.004010e0
dec byte [esi + section..syhua]
push str.ujdishXABh78373377
call fcn.004010e0
add byte [esi + section..syhua], 0xb
add esp, 0x40
push str.ujdishXABh78373377
call fcn.004010e0
xor byte [esi + section..syhua], 0xd3
push str.ujdishXABh78373377
call fcn.004010e0
inc esi
add esp, 8
cmp esi, 0x2b800
jb 0x401d63
pop esi
ret
Function at 0x41cb2d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41cbca
push ebx
push esi
call fcn.0041caf6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b77b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cb77
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cbc9
push edi
push eax
call fcn.00414cc0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cb97
call fcn.0041421f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41cbc8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b77b
add esp, 0x20
test eax, eax
jne 0x41cbb6
push edi
call fcn.0041421f
jmp 0x41cbbe
push ebx
call fcn.0041421f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x423aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x423acd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x423acd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4283e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4283f8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x42849c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x428497
mov ecx, dword [ebp - 8]
push ecx
call fcn.00428990
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x428456
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x428456
xor eax, eax
jmp 0x42849c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x4283ef
mov esp, ebp
pop ebp
ret
Function at 0x4029f4
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.00403ff8
test esi, esi
jne 0x402a2a
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.004040e8
jmp 0x402a48
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402a48
cmp dword [ebx], 0
je 0x402a48
dec esi
jmp 0x402a31
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403138
Capabilities:
Query or enumerate registry value

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

Function at 0x403e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x476048], 0
je 0x403edd
cmp word [0x47621c], 0xd7b2
jne 0x403ea5
cmp dword [0x476224], 0
jbe 0x403ea5
mov eax, 0x476218
call dword [0x476234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x474070
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 0x403f04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x474034], 0
jne 0x403ef9
push 0
push 0x474068
push 0x474070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4053d0
Capabilities:
Get geographical location

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 0x4054f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405347
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405347
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405510
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4053d0
xor eax, eax
push ebp
push 0x4053c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040510c
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 0x4053ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405530
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4053ae
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 0x4053d0
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 0x4054ea
cmp byte [ebp - 0xd], 0
jne 0x405417
cmp byte [ebp - 0x12], 0
je 0x4054ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405430
dec ebx
cmp byte [ebx], 0x2e
je 0x40543f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40542f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40547c
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 0x4054ea
cmp byte [ebp - 0xd], 0
je 0x4054ea
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 0x4054ea
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 0x405bbc
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 0x405c22
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.00404268
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cfc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c0c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c29
lea eax, [ebp - 0x10]
call fcn.00403ff8
ret

Function at 0x40ad08
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 0x40ad41
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040e8
jmp 0x40ad4a
mov eax, ebx
mov edx, esi
call fcn.0040404c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b3fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b274
mov eax, dword [0x475184]
cmp byte [eax], 0
je 0x40b478
mov eax, dword [0x474fa4]
call fcn.00402b4c
call fcn.00402834
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.00408440
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 0x40b4c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b4ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474f48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x476664]
call fcn.004050d0
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 0x40bd14
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 0x40bdea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404090
lea eax, [ebp - 8]
call fcn.00404508
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bdd4
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bdcd
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.004044b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bdb7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bdfc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bdb7
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 0x40bdd4
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bdf1
lea eax, [ebp - 8]
call fcn.00403ff8
ret

Function at 0x40c268
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 0x40c2cc
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.00404268
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f9c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2d3
lea eax, [ebp - 0xc]
call fcn.00403ff8
ret

Function at 0x41a4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x476884
cmp dword [edi], 0
jne 0x41a54c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x476880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x474470
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a4a8
lea eax, [esi + 5]
call fcn.0041a4c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a4c8
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 0x41a521
mov dword [0x476880], 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 0x41b780
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 0x41b786
ret
Function at 0x41dbc8
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 0x41dc19
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dc00
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dbf0
jmp 0x41dc19
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 0x41dc01
pop ebx
mov esp, ebp
pop ebp
ret