joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x410], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x408], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x404], eax
mov esi, dword [ebp + 0x14]
mov eax, 0
dec eax
lea esi, [esi]
inc eax
mov dword [ebp + eax*4 - 0x400], eax
cmp eax, 0xff
jb 0x40110c
mov eax, 0
mov ecx, 0
mov eax, 0
mov ebx, 0
dec ebx
inc ebx
mov eax, ebx
mov edx, 0
div esi
add edx, edi
movzx eax, byte [edx]
mov edx, dword [ebp + ebx*4 - 0x400]
add edx, ecx
add eax, edx
and eax, 0xff
mov ecx, eax
mov al, byte [ebp + ebx*4 - 0x400]
mov byte [ebp - 0x40c], al
mov eax, dword [ebp + ecx*4 - 0x400]
mov dword [ebp + ebx*4 - 0x400], eax
movzx eax, byte [ebp - 0x40c]
mov dword [ebp + ecx*4 - 0x400], eax
cmp ebx, 0xff
jb 0x401130
mov eax, 0
mov edi, 0
mov ebx, 0
mov eax, dword [ebp - 0x404]
dec eax
mov ecx, 0
cmp eax, ecx
jb 0x40122c
dec ecx
mov esi, esi
inc ecx
mov edx, edi
inc edx
and edx, 0xff
mov edi, edx
mov edx, dword [ebp + edi*4 - 0x400]
add edx, ebx
and edx, 0xff
mov ebx, edx
mov dl, byte [ebp + edi*4 - 0x400]
mov byte [ebp - 0x40c], dl
mov edx, dword [ebp + ebx*4 - 0x400]
mov dword [ebp + edi*4 - 0x400], edx
movzx edx, byte [ebp - 0x40c]
mov dword [ebp + ebx*4 - 0x400], edx
mov esi, dword [ebp + edi*4 - 0x400]
mov edx, dword [ebp + ebx*4 - 0x400]
add esi, edx
and esi, 0xff
mov edx, esi
mov esi, ecx
add esi, dword [ebp - 0x408]
movzx esi, byte [esi]
mov edx, dword [ebp + edx*4 - 0x400]
xor edx, esi
mov esi, ecx
add esi, dword [ebp - 0x408]
mov byte [esi], dl
cmp eax, ecx
ja 0x4011a8
mov ebx, dword [ebp - 0x418]
mov esi, dword [ebp - 0x414]
mov edi, dword [ebp - 0x410]
leave
ret 0x10

Function at 0x4013f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
call fcn.004013e0
mov eax, dword [eax]
add eax, 0x1c
mov edi, eax
mov eax, 0xffffffff
mov edx, ebx
dec edx
mov bx, dx
mov cx, 0
cmp bx, cx
jb 0x401458
dec cx
mov esi, esi
inc cx
movzx edx, cx
add edx, dword [ebp - 4]
movzx edx, byte [edx]
xor edx, eax
and edx, 0xff
mov esi, edx
mov edx, eax
shr edx, 8
and edx, 0xffffff
mov esi, dword [edi + esi*4]
xor esi, edx
mov eax, esi
cmp bx, cx
ja 0x40142c
not eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
leave
ret 8
Function at 0x401470
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
call fcn.004013e0
mov eax, dword [eax]
add eax, 0x1c
mov dword [ebp - 0x110], ebx
mov eax, dword [ebp - 0x110]
movzx edx, word [eax]
cmp edx, 0x5a4d
jne 0x4015cd
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0x110]
mov edx, dword [eax]
cmp edx, 0x4550
jne 0x4015cd
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x78]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x108], eax
mov edx, dword [eax + 0x18]
dec edx
mov dword [ebp - 0x104], edx
mov ebx, 0
cmp dword [ebp - 0x104], ebx
jb 0x4015cd
dec ebx
mov esi, esi
inc ebx
mov eax, dword [ebp - 0x108]
mov edx, dword [eax + 0x20]
add edx, dword [ebp - 0x110]
mov eax, ebx
shl eax, 2
add edx, eax
mov eax, dword [edx]
add eax, dword [ebp - 0x110]
mov esi, eax
push esi
call fcn.00401360
push eax
push esi
call fcn.004013f0
cmp eax, dword [ebp - 0x114]
jne 0x4015c1
mov eax, dword [ebp - 0x108]
mov edx, dword [eax + 0x24]
add edx, dword [ebp - 0x110]
mov eax, ebx
shl eax, 1
add edx, eax
movzx eax, word [edx]
shl eax, 2
mov edx, dword [ebp - 0x108]
mov ecx, dword [edx + 0x1c]
add ecx, dword [ebp - 0x110]
add eax, ecx
mov eax, dword [eax]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x10c]
mov eax, dword [edx + 0x7c]
add eax, dword [ebp - 0x108]
mov edi, eax
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x108]
jbe 0x4015cd
cmp eax, edi
jae 0x4015cd
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x11c], eax
jmp 0x4015cd
cmp dword [ebp - 0x104], ebx
ja 0x401520
mov eax, dword [ebp - 0x118]
mov ebx, dword [ebp - 0x128]
mov esi, dword [ebp - 0x124]
mov edi, dword [ebp - 0x120]
leave
ret 8

Function at 0x401630
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
add eax, 0x18
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x401d50
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov ecx, eax
mov byte [esp], 0
cmp edx, 0x40
jbe 0x401da5
mov ebx, ecx
movzx eax, word [ebx]
cmp eax, 0x5a4d
jne 0x401da5
mov esi, dword [ebx + 0x3c]
add esi, 0xf8
mov eax, esi
sar eax, 0x1f
mov edi, 0
cmp eax, edi
jl 0x401d93
jg 0x401da5
cmp esi, edx
jae 0x401da5
mov eax, dword [ebx + 0x3c]
add eax, ecx
mov eax, dword [eax]
cmp eax, 0x4550
jne 0x401da5
mov byte [esp], 1
mov al, byte [esp]
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x402960
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov edx, ecx
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x4029fe
mov eax, dword [edx + 0x3c]
add eax, ecx
mov ecx, eax
mov eax, dword [ecx]
cmp eax, 0x4550
jne 0x4029fe
mov dx, word [ecx + 6]
movzx eax, dx
test eax, eax
jle 0x4029fe
and edx, 0xffff
dec edx
mov ebx, edx
mov esi, 0
cmp ebx, esi
jb 0x4029fe
dec esi
lea esi, [esi]
inc esi
mov eax, 0x28
mul esi
mov edx, ecx
add edx, 0xf8
add eax, edx
mov edi, eax
mov edx, dword [edi + 0xc]
cmp dword [ebp - 4], edx
jbe 0x4029fa
mov eax, dword [edi + 8]
add eax, edx
cmp eax, dword [ebp - 4]
jbe 0x4029fa
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 4]
sub edx, eax
mov eax, edx
mov edx, dword [edi + 0x14]
add eax, edx
mov dword [ebp - 8], eax
jmp 0x4029fe
cmp ebx, esi
ja 0x4029c0
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
leave
ret 8
Function at 0x401360
Capabilities:
Create pipe
Create process on windows
Query environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c0c
call fcn.00409c00
mov eax, dword [0x45ad2c]
mov ecx, dword [0x45a7b8]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
je 0x401494
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x45ad2c], 0x959
jne 0x40147e
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
push 0
push str.usafudoziki
push 0
push 0
push 0
call esi
push 0
lea ecx, [ebp - 0x1c08]
push ecx
push 0
call edi
mov edx, dword [ebp - 4]
push edx
call fcn.004010e0
add dword [ebp - 4], 8
dec dword [ebp - 8]
jne 0x40139e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40402b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b770]
jne 0x404035
repz ret
jmp fcn.004078bc

Function at 0x40965b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44b770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405d98
and dword [ebp - 0x14], 0
cmp dword [0x451e30], 0
mov dword [ebp - 0x18], eax
jne 0x40970e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4097b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4097b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x451e30], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x451e34], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x451e38], eax
call edi
push eax
call esi
mov dword [0x451e40], eax
test eax, eax
je 0x40970e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x451e3c], eax
mov eax, dword [0x451e3c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409767
cmp dword [0x451e40], ecx
je 0x409767
push eax
call esi
push dword [0x451e40]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409767
test ebx, ebx
je 0x409767
call edi
test eax, eax
je 0x40975e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40975e
test byte [ebp - 8], 1
jne 0x409767
or dword [ebp + 0x10], 0x200000
jmp 0x40979a
mov eax, dword [0x451e34]
cmp eax, dword [ebp - 0x18]
je 0x40979a
push eax
call esi
test eax, eax
je 0x40979a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40979a
mov eax, dword [0x451e38]
cmp eax, dword [ebp - 0x18]
je 0x40979a
push eax
call esi
test eax, eax
je 0x40979a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x451e30]
call esi
test eax, eax
je 0x4097b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4097b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040402b
leave
ret

Function at 0x484cee
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x484a08
add edi, 0xa34b157d
add esi, edi
sub esi, esi
call fcn.00484d31
inc esi
xor dword [eax], ebx
inc esi
or edi, edi
or esi, esi
add eax, 2
and edi, esi
mov edi, edi
add esi, esi
cmp eax, edx
jl fcn.00484cee
add esi, 0xfe82f647
add edi, 0xec6385f5
mov esi, 0xff1c94ed
ret
Function at 0x402f74
Capabilities:
Query or enumerate registry value

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

Function at 0x403cb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x475048], 0
je 0x403d19
cmp word [0x47521c], 0xd7b2
jne 0x403ce1
cmp dword [0x475224], 0
jbe 0x403ce1
mov eax, 0x475218
call dword [0x475234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47306c
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 0x403d40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x473030], 0
jne 0x403d35
push 0
push 0x473064
push 0x47306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405094
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 0x4052c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405117
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405117
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4051a0
xor eax, eax
push ebp
push 0x405199
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404edc
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 0x40517e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405300
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40517e
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 0x4051a0
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 0x4052ba
cmp byte [ebp - 0xd], 0
jne 0x4051e7
cmp byte [ebp - 0x12], 0
je 0x4052ba
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405200
dec ebx
cmp byte [ebx], 0x2e
je 0x40520f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4051ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4052ba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40524c
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 0x4052ba
cmp byte [ebp - 0xd], 0
je 0x4052ba
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 0x4052ba
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 0x40598c
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 0x4059f2
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.004040a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4059dc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4059f9
lea eax, [ebp - 0x10]
call fcn.00403e34
ret

Function at 0x40a928
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 0x40a961
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f24
jmp 0x40a96a
mov eax, ebx
mov edx, esi
call fcn.00403e88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b01c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ae94
mov eax, dword [0x4741ec]
cmp byte [eax], 0
je 0x40b098
mov eax, dword [0x474010]
call fcn.004029a4
call fcn.00402824
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.0040819c
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 0x40b0e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b0ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x473fb8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475664]
call fcn.00404ea0
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 0x40b934
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 0x40ba0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ecc
lea eax, [ebp - 8]
call fcn.00404344
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004042f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40b9f4
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40b9ed
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.004042f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40b9d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ba1c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40b9d7
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 0x40b9f4
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba11
lea eax, [ebp - 8]
call fcn.00403e34
ret

Function at 0x40be88
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 0x40beec
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.004040a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407d2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bef3
lea eax, [ebp - 0xc]
call fcn.00403e34
ret

Function at 0x41a03c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x475884
cmp dword [edi], 0
jne 0x41a0b8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x475880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4733ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a014
lea eax, [esi + 5]
call fcn.0041a034
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a034
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 0x41a08d
mov dword [0x475880], 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 0x41b2e4
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 0x41b2ea
ret
Function at 0x41d72c
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 0x41d77d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d764
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d754
jmp 0x41d77d
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 0x41d765
pop ebx
mov esp, ebp
pop ebp
ret