joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a1e0
Capabilities:
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41da01
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x42a598]
cmp eax, dword [ecx + 4]
jle 0x40a395
push 0x42a598
call fcn.0040b8c4
add esp, 4
cmp dword [0x42a598], 0xffffffff
jne 0x40a395
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.USER32.dll_CharLowerW]
push 0x41
call esi
movzx edx, ax
mov ecx, 0x4268e4
lea eax, [ebp - 0x60]
push eax
call fcn.00401030
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x74], xmm0
mov ax, word [eax + 0x10]
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x40a32e
push 0x41
call esi
movzx ecx, ax
xorps xmm0, xmm0
mov dword [ebp - 0x44], ecx
xor esi, esi
movups xmmword [ebp - 0x60], xmm0
nop dword [eax]
test esi, esi
jne 0x40a2c3
mov al, byte [esi + str.__l1Rv]
xor al, cl
mov byte [ebp + esi - 0x60], al
inc esi
jmp 0x40a2b0
lea edx, [esi - 1]
call fcn.00402c50
imul ecx, eax, 0x19660d
mov al, byte [esi + str.__l1Rv]
add ecx, 0x3c6ef35f
xor al, cl
mov ecx, dword [ebp - 0x44]
mov byte [ebp + esi - 0x60], al
inc esi
cmp esi, 0x10
jb 0x40a2b0
movups xmm0, xmmword [ebp - 0x60]
lea eax, [ebp - 0x60]
push eax
push edi
movups xmmword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test esi, esi
je 0x40a33c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40a33c
movzx eax, word [ebp - 0x18]
jmp 0x40a382
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x40]
cmp eax, 0xc
ja case.0x40a356.1
movzx eax, byte [eax + 0x40a400]
jmp dword [eax*4 + 0x40a3e8]
mov eax, 0x8664
jmp 0x40a382
mov eax, 0x1c0
jmp 0x40a382
mov eax, 0xaa64
jmp 0x40a382
mov eax, 0x200
jmp 0x40a382
mov eax, 0x14c
jmp 0x40a382
xor eax, eax
push 0x42a598
mov word [0x42a59c], ax
call fcn.0040b873
add esp, 4
movzx ecx, word [0x42a59c]
cmp ecx, 0x14c
je 0x40a3c5
cmp ecx, 0x8664
je 0x40a3be
xor edx, edx
mov eax, 0x70
cmp ecx, 0xaa64
cmovne eax, edx
jmp 0x40a3ca
mov eax, 0x6f
jmp 0x40a3ca
mov eax, 0x6e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b474
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40a640
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d3ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a7c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40a7c1
push dword [ebx + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
call fcn.00409b10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jae 0x40a6eb
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x2e
jmp 0x40a6fd
push 0x2e
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040aeb0
mov esi, 8
call fcn.0040b3c4
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
movzx ecx, al
or ecx, 0x400
cmp edx, edi
jae 0x40a737
lea eax, [edx + 1]
cmp edi, 7
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
mov word [eax + edx*2], cx
xor ecx, ecx
mov word [eax + edx*2 + 2], cx
jmp 0x40a748
push ecx
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040aeb0
sub esi, 1
jne 0x40a702
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push esi
cmova eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
push dword [ebx + 8]
call esi
test eax, eax
jne 0x40a773
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40a787
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 4
cmova eax, dword [ebp - 0x2c]
push 0
push eax
call esi
xor esi, esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x40a7bd
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a7b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a7e1
push ecx
push edx
call fcn.0040b482
add esp, 8
mov eax, esi
jmp 0x40a7c3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b474
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040ecac
int3

Function at 0x40b490
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x40b4c5
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x40b4c2
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x40b4ce
add edx, 0x28
cmp edx, esi
jne 0x40b4b0
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40b4cb
Function at 0x40c212
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c251
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c251
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c251
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c251
cmp dword [ecx + 0x74], 0xe
jbe 0x40c251
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x414709
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4206b0
push 0x4206a8
push str.FlsAlloc
push 0x1f
call fcn.00414644
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41473d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e22c]
call esi
jmp 0x414743
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414787
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4206c0
push 0x4206b8
push str.FlsGetValue
push 0x21
call fcn.00414644
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4147be
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e22c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4147c6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4206c8
push 0x4206c0
push str.FlsSetValue
push 0x22
call fcn.00414644
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414800
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e22c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414d38
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x414d83
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414ed3
test al, al
jne 0x414d7d
sub edx, 2
cmp edx, edi
jne 0x414d63
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x414da5
lea eax, [edi + 2]
cmp edx, eax
je 0x414da5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00414c84
add esp, 0x10
jmp 0x414e9f
push esi
lea ecx, [ebp - 0x255]
call fcn.00414ed3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414de8
push dword [ebp - 0x25c]
jmp 0x414d95
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x414e25
cmp word [ebp - 0x226], 0
je 0x414e46
cmp word [ebp - 0x226], ax
jne 0x414e25
cmp word [ebp - 0x224], 0
je 0x414e46
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00414c84
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x414e92
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414dff
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x414e7a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x414e9f
push 0x414ab4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00419100
add esp, 0x10
jmp 0x414e6f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b474
leave
ret
Function at 0x41ce90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cebd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cebd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402aac
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.004048a0
test esi, esi
jne 0x402ae2
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.00404990
jmp 0x402b00
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029c0
mov edi, eax
test esi, esi
je 0x402b00
cmp dword [ebx], 0
je 0x402b00
dec esi
jmp 0x402ae9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4039c0
Capabilities:
Query or enumerate registry value

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

Function at 0x404724
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48b04c], 0
je 0x404785
cmp word [0x48b220], 0xd7b2
jne 0x40474d
cmp dword [0x48b228], 0
jbe 0x40474d
mov eax, 0x48b21c
call dword [0x48b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x489074
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 0x4047ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x489034], 0
jne 0x4047a1
push 0
push 0x48906c
push 0x489074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ddc
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 0x40600c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e5f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40600c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e5f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ee8
xor eax, eax
push ebp
push 0x405ee1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c24
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 0x405ec6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406048
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ec6
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 0x405ee8
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 0x406002
cmp byte [ebp - 0xd], 0
jne 0x405f2f
cmp byte [ebp - 0x12], 0
je 0x406002
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f48
dec ebx
cmp byte [ebx], 0x2e
je 0x405f57
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f47
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406002
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f94
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 0x406002
cmp byte [ebp - 0xd], 0
je 0x406002
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 0x406002
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 0x4066d4
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 0x40673a
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.00404b10
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033b8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406724
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406741
lea eax, [ebp - 0x10]
call fcn.004048a0
ret

Function at 0x40bb68
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 0x40bba1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404990
jmp 0x40bbaa
mov eax, ebx
mov edx, esi
call fcn.004048f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c25c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0d4
mov eax, dword [0x48ac98]
cmp byte [eax], 0
je 0x40c2d8
mov eax, dword [0x48aa58]
call fcn.00402f1c
call fcn.004028ec
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.00409394
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 0x40c320
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c30e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48a9f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48b668]
call fcn.00405be8
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 0x40cbc8
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 0x40cc9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404938
lea eax, [ebp - 8]
call fcn.00404db0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404d60
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc88
mov eax, ebx
call fcn.00402784
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc81
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.00404d60
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc6b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ccb0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc6b
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 0x40cc88
mov eax, dword [ebp - 0x10]
call fcn.004027a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cca5
lea eax, [ebp - 8]
call fcn.004048a0
ret

Function at 0x40d220
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 0x40d284
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.00404b10
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d28b
lea eax, [ebp - 0xc]
call fcn.004048a0
ret

Function at 0x41f358
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48b888
cmp dword [edi], 0
jne 0x41f3d4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x48b884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x489404
mov ecx, 2
call fcn.00402980
mov edx, 0x41f330
lea eax, [esi + 5]
call fcn.0041f350
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f350
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 0x41f3a9
mov dword [0x48b884], 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 0x420a80
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 0x420a86
ret
Function at 0x42321c
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 0x42326d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423254
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423244
jmp 0x42326d
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 0x423255
pop ebx
mov esp, ebp
pop ebp
ret