joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b8f4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x447b98
call fcn.0042d804
xor esi, esi
cmp dword [0x45e2f0], esi
jne 0x43b938
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43b923
mov dword [0x45e2f0], edi
jmp 0x43b938
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x43b938
mov dword [0x45e2f0], 2
mov eax, dword [0x45e2f0]
cmp eax, 2
je 0x43ba19
cmp eax, esi
je 0x43ba19
cmp eax, 1
jne 0x43b97d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x43b966
mov eax, dword [0x45e08c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x43b984
xor eax, eax
jmp 0x43ba2b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0042ffb0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x43b9ba
cmp edi, esi
jne 0x43b9d5
lea eax, [ebx + ebx]
push eax
call fcn.0042e6f1
pop ecx
mov edi, eax
cmp edi, esi
je 0x43b97d
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43ba08
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x43b9f2
push esi
push esi
jmp 0x43b9f8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x43ba14
push edi
call fcn.0042d95e
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x43ba2b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0042d83f
ret
Function at 0x43ca75
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x43ca8e
or eax, 0xffffffff
jmp 0x43caef
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43caeb
push 0x3d
push esi
call fcn.0043d75b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43caeb
cmp esi, eax
je 0x43caeb
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x45de28]
sete cl
cmp eax, dword [0x45de2c]
mov dword [ebp - 8], ecx
jne 0x43cad1
mov edi, eax
call fcn.0043ca14
mov dword [0x45de28], eax
cmp eax, ebx
jne 0x43cb2a
cmp dword [ebp + 0xc], ebx
je 0x43caf3
cmp dword [0x45de30], ebx
je 0x43caf3
call fcn.004394cd
test eax, eax
je 0x43cb2a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43cafc
xor eax, eax
jmp 0x43caee
push 4
call fcn.0042e6f1
cmp eax, ebx
pop ecx
mov dword [0x45de28], eax
je 0x43caeb
mov dword [eax], ebx
cmp dword [0x45de30], ebx
jne 0x43cb2a
push 4
call fcn.0042e6f1
cmp eax, ebx
pop ecx
mov dword [0x45de30], eax
je 0x43caeb
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x45de28]
call fcn.0043c9c7
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43cb8b
cmp dword [esi], ebx
je 0x43cb8b
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042d95e
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43cb6e
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43cbcc
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43cb65
mov eax, edi
shl eax, 2
push eax
push dword [0x45de28]
call fcn.004333f4
cmp eax, ebx
pop ecx
pop ecx
je 0x43cbcc
jmp 0x43cbc7
cmp dword [ebp - 8], ebx
jne 0x43cc37
cmp edi, ebx
jge 0x43cb9a
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x45de28]
call fcn.004333f4
cmp eax, ebx
pop ecx
pop ecx
je 0x43caeb
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x45de28], eax
cmp dword [ebp + 0xc], ebx
je 0x43cc21
push dword [ebp - 4]
call fcn.0042d620
inc eax
inc eax
push eax
call fcn.0042e6f1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43cc21
push dword [ebp - 4]
push esi
call fcn.0042dbd0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43cc1a
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042d95e
pop ecx
cmp dword [ebp - 8], ebx
je 0x43cc2f
push dword [ebp - 4]
call fcn.0042d95e
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43caee
push dword [ebp - 4]
call fcn.0042d95e
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43caf8
Function at 0x43d5ef
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042ffb0
mov eax, dword [0x456d70]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00437461
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x43d722
push 2
push esi
push dword [ebp + 8]
call fcn.00437461
add esp, 0xc
cmp eax, ebx
je 0x43d722
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43d6c2
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042d760
push 0x8000
push dword [ebp + 8]
call fcn.0043daf9
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x43d678
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004368a7
add esp, 0xc
cmp eax, 0xffffffff
je 0x43d698
sub edi, eax
test edi, edi
jg 0x43d670
jmp 0x43d6b0
call fcn.00432622
cmp dword [eax], 5
jne 0x43d6ad
call fcn.00432619
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0043daf9
pop ecx
pop ecx
jmp 0x43d70a
jge 0x43d70a
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00437461
push dword [ebp + 8]
call fcn.0043bd0b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x43d70a
call fcn.00432619
mov dword [eax], 0xd
call fcn.00432622
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00437461
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43d724
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042d7f1
leave
ret
Function at 0x43e256
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x447c58
call fcn.0042d804
mov eax, dword [0x456d70]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x43e2fa
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0042ffb0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x43e2e7
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x43e2fa
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x43e315
cmp byte [edi + 1], 0x3a
jne 0x43e315
movzx eax, byte [edi]
push eax
call fcn.0043b3a9
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x43e325
push edi
call fcn.0042d95e
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.0042d7f1
call fcn.0042d83f
ret

Function at 0x43e49d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x43e4cb
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x43e4d0
cmp eax, 1
je 0x43e4d0
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43e4d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x456d70]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x43e54c
push ebx
call fcn.0043e49d
test eax, eax
pop ecx
jne 0x43e51b
call fcn.00432622
mov dword [eax], 0xf
call fcn.00432619
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0042d7f1
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x43e55e
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x43e50e
inc eax
cmp eax, 0x104
ja 0x43e50e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x43e596
cmp eax, dword [ebp + 0x10]
jg 0x43e579
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042e6f1
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x43e5ab
call fcn.00432619
mov dword [eax], 0xc
jmp 0x43e50e
cmp eax, dword [ebp + 0x10]
jle 0x43e5ab
call fcn.00432619
mov dword [eax], 0x22
jmp 0x43e50e
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0042dbd0
pop ecx
pop ecx
jmp 0x43e510
Function at 0x402a18
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a55
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402a75
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f14
add esp, 0x210
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5d9008], 0x8088405
inc edx
mov dword [ebx + 0x5d9008], edx
fld qword [ebx + 0x5d906c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403c84
Capabilities:
Query or enumerate registry value

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

Function at 0x404b08
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60904c], 0
je 0x404b69
cmp word [0x609220], 0xd7b2
jne 0x404b31
cmp dword [0x609228], 0
jbe 0x404b31
mov eax, 0x60921c
call dword [0x609238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5d90a8
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 0x404b90
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5d9034], 0
jne 0x404b85
push 0
push 0x5d90a0
push 0x5d90a8
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406780
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 0x4069b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406803
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406803
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4069cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40688c
xor eax, eax
push ebp
push 0x406885
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004065c8
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 0x40686a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4069ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40686a
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 0x40688c
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 0x4069a6
cmp byte [ebp - 0xd], 0
jne 0x4068d3
cmp byte [ebp - 0x12], 0
je 0x4069a6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4068ec
dec ebx
cmp byte [ebx], 0x2e
je 0x4068fb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4068eb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4069a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406938
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 0x4069a6
cmp byte [ebp - 0xd], 0
je 0x4069a6
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 0x4069a6
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 0x4070c4
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 0x40712a
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.00404f14
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403354
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407114
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407131
lea eax, [ebp - 0x10]
call fcn.00404ca4
ret

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

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

Function at 0x40d030
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 0x40d069
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d94
jmp 0x40d072
mov eax, ebx
mov edx, esi
call fcn.00404cf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d870
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d6e8
mov eax, dword [0x6089ac]
cmp byte [eax], 0
je 0x40d8ec
mov eax, dword [0x608624]
call fcn.00403078
call fcn.004029a4
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.0040a350
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 0x40d934
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d922
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x6085a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x609668]
call fcn.0040658c
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 0x40e200
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 0x40e2d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404d3c
lea eax, [ebp - 8]
call fcn.004051b4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405164
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e2c0
mov eax, ebx
call fcn.0040283c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e2b9
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.00405164
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e2a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e2e8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e2a3
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 0x40e2c0
mov eax, dword [ebp - 0x10]
call fcn.0040285c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e2dd
lea eax, [ebp - 8]
call fcn.00404ca4
ret

Function at 0x40e898
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 0x40e8fc
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.00404f14
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409a8c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e903
lea eax, [ebp - 0xc]
call fcn.00404ca4
ret

Function at 0x4288d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x609960
cmp dword [edi], 0
jne 0x42894c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x60995c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5d9678
mov ecx, 2
call fcn.00402ab0
mov edx, 0x4288a8
lea eax, [esi + 5]
call fcn.004288c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004288c8
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 0x428921
mov dword [0x60995c], 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 0x429fd8
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 0x429fde
ret
Function at 0x42c5a0
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 0x42c5f1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42c5d8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42c5c8
jmp 0x42c5f1
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 0x42c5d9
pop ebx
mov esp, ebp
pop ebp
ret