joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b9b80
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 0x4b9bd1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4b9bb8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4b9ba8
jmp 0x4b9bd1
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 0x4b9bb9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cc108
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e00
xor eax, eax
push ebp
push 0x4cc253
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4cc15c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x4cc26c
mov eax, 0x80000000
call fcn.004cc024
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cc166
mov edx, dword [ebp - 0xc]
mov eax, 0x4cc28c
call fcn.00404f54
test eax, eax
jle 0x4cc1cf
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x4cc28c
call fcn.00404f54
inc eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404c10
mov ecx, eax
mov eax, dword [ebp - 0xc]
pop edx
call fcn.00404e70
mov edx, dword [ebp - 0xc]
mov eax, 0x4cc28c
call fcn.00404f54
test eax, eax
jle 0x4cc1cf
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x4cc28c
call fcn.00404f54
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404e70
mov eax, dword [ebp - 0xc]
call fcn.00409968
test al, al
je 0x4cc20b
push 1
push 0x4cc290
mov eax, dword [ebp - 4]
call fcn.00404e10
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404e10
push eax
push 0x4cc294
mov eax, dword [0x511ffc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x4cc235
push 1
push 0x4cc290
mov eax, dword [ebp - 4]
call fcn.00404e10
push eax
push 0x4cc29c
push 0x4cc294
mov eax, dword [0x511ffc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc25a
lea eax, [ebp - 0xc]
call fcn.00404950
lea eax, [ebp - 4]
call fcn.00404950
ret
Function at 0x4d1c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4d1cd9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x51416c], 0
je 0x4d1c4d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1ce3
cmp byte [0x51416d], 0
jne 0x4d1c63
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1ce3
mov byte [0x51416d], 0
mov eax, dword [0x514174]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4d1cec
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4d1ca2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1ce3
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push 0x514170
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4d1d00
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1ce3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d5168
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404e00
xor eax, eax
push ebp
push 0x4d526b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4d524b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x512358]
cmp dword [eax], 2
jne 0x4d51e8
push 0x4d527c
mov eax, dword [ebp - 8]
call fcn.00404e10
push eax
mov edx, 0x4d5288
xor ecx, ecx
mov eax, 0x80000001
call fcn.004b5124
push 0x4d527c
mov eax, dword [ebp - 8]
call fcn.00404e10
push eax
mov edx, 0x4d52d0
xor ecx, ecx
mov eax, 0x80000001
call fcn.004b5124
jmp 0x4d5207
push 0x4d527c
mov eax, dword [ebp - 8]
call fcn.00404e10
push eax
mov edx, 0x4d5314
xor ecx, ecx
mov eax, 0x80000003
call fcn.004b5124
cmp byte [ebp - 9], 0
je 0x4d5241
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6fc]
mov edx, dword [ebp - 8]
call fcn.0044b56c
mov eax, 0x4d5370
call fcn.00443ee0
mov eax, dword [0x511bbc]
mov edx, dword [ebp - 8]
call fcn.004049a4
mov eax, dword [0x5120f4]
mov eax, dword [eax]
call fcn.004e8df4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d5255
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5272
lea eax, [ebp - 8]
call fcn.00404950
ret

Function at 0x4e0298
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e035f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0x1400
mov eax, dword [ebp - 0x10]
call fcn.00402b80
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4e0342
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e02f9
mov eax, dword [ebp - 4]
call fcn.00404950
call fcn.0040438c
jmp 0x4e0349
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 1
push ebp
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x190]
mov eax, dword [ebp - 0xc]
add eax, 0x194
call fcn.004e01e4
pop ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004049a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0349
mov eax, dword [ebp - 8]
call fcn.00402bb0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0366
lea eax, [ebp - 0x1c]
call fcn.00404950
ret

Function at 0x4e036c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x110]
push eax
push 0x4e03c4
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4e03be
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov edx, dword [ebp - 4]
mov eax, 8
call fcn.00409538
mov esp, ebp
pop ebp
ret
Function at 0x4e8df4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e8f0f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e8eec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 6
mov eax, dword [0x511be4]
mov eax, dword [eax]
call fcn.00451dc4
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [0x511e10]
cmp byte [eax], 0
je 0x4e8e70
mov eax, dword [0x5121dc]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404bc0
jmp 0x4e8eb3
mov eax, dword [0x511bbc]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00404bc0
mov edx, dword [0x511bbc]
mov edx, dword [edx]
mov eax, dword [0x512174]
mov eax, dword [eax]
mov eax, dword [eax + 0x6fc]
call fcn.0044b56c
mov eax, dword [0x512174]
mov eax, dword [eax]
mov eax, dword [eax + 0x708]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x511bbc]
mov eax, dword [eax]
call fcn.00404c10
mov edx, dword [0x511bbc]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x4e8ee2
mov eax, dword [0x511bbc]
mov edx, 0x4e8f28
call fcn.00404c18
mov eax, dword [0x511bbc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e8ef6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8f16
lea eax, [ebp - 0x118]
call fcn.00404950
ret

Function at 0x4f794c
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f798c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f799a
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bd14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
test dl, dl
je 0x50bd26
add esp, 0xfffffff0
call fcn.00403db4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x33d], 1
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048c588
call fcn.0050a848
mov eax, dword [ebp - 4]
push eax
push 0x50bfc4
call fcn.0046337c
mov edx, dword [ebp - 4]
mov dword [edx + 0x330], eax
mov dl, 1
mov eax, dword [0x5099b0]
call fcn.00403a4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x308], eax
mov dl, 1
mov eax, dword [0x5098a8]
call fcn.00403a4c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x308]
mov dword [edx + 0x10], eax
mov dl, 1
mov eax, dword [0x4196d0]
call fcn.00403a4c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x308]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov eax, dword [eax + 4]
mov edx, 0x50be5c
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x16]
xor ecx, ecx
mov edx, 0xa
call fcn.0040340c
push 0xa
lea eax, [ebp - 0x16]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
cmp byte [ebp - 0x16], 0x31
jne 0x50bdf0
mov eax, dword [ebp - 4]
mov byte [eax + 0x428], 1
jmp 0x50bdfa
mov eax, dword [ebp - 4]
mov byte [eax + 0x428], 0
mov edx, dword [0x50be6c]
mov eax, dword [ebp - 4]
call fcn.0050c4d4
mov edx, dword [0x50be70]
mov eax, dword [ebp - 4]
call fcn.0050c574
mov eax, dword [ebp - 4]
mov byte [eax + 0x33c], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x334], 0
mov eax, dword [ebp - 4]
call fcn.0050c678
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x50be4a
call fcn.00403e0c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x50cafc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0050c678
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050cb38
mov eax, dword [ebp - 0xc]
push eax
call sub.ole32.dll_CoTaskMemFree
mov esp, ebp
pop ebp
ret
Function at 0x4028f8
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 0x402935
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 0x402955
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404254
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403104
Capabilities:
Query or enumerate registry value

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

Function at 0x403e68
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f04c], 0
je 0x403ec9
cmp word [0x47f220], 0xd7b2
jne 0x403e91
cmp dword [0x47f228], 0
jbe 0x403e91
mov eax, 0x47f21c
call dword [0x47f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d06c
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 0x403ef0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d030], 0
jne 0x403ee5
push 0
push 0x47d064
push 0x47d06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4054f8
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 0x405728
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40557b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405728
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40557b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405744
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405604
xor eax, eax
push ebp
push 0x4055fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405340
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 0x4055e2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405764
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4055e2
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 0x405604
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 0x40571e
cmp byte [ebp - 0xd], 0
jne 0x40564b
cmp byte [ebp - 0x12], 0
je 0x40571e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405664
dec ebx
cmp byte [ebx], 0x2e
je 0x405673
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405663
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40571e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4056b0
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 0x40571e
cmp byte [ebp - 0xd], 0
je 0x40571e
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 0x40571e
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 0x405df0
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 0x405e56
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.00404254
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cc8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e40
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e5d
lea eax, [ebp - 0x10]
call fcn.00403fe4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004044a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408901
test al, 0x10
jne 0x408905
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b4ac
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 0x40b4e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040d4
jmp 0x40b4ee
mov eax, ebx
mov edx, esi
call fcn.00404038
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bba0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba18
mov eax, dword [0x47e6f8]
cmp byte [eax], 0
je fcn.0040bc1c
mov eax, dword [0x47e4d0]
call fcn.00402af8
call fcn.0040284c
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.00408c9c
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 0x40bc64
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc52
Function at 0x40c500
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 0x40c5d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040407c
lea eax, [ebp - 8]
call fcn.004044f4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044a4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5c0
mov eax, ebx
call fcn.004026e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5b9
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.004044a4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c5a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5e8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c5a3
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 0x40c5c0
mov eax, dword [ebp - 0x10]
call fcn.00402704
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5dd
lea eax, [ebp - 8]
call fcn.00403fe4
ret

Function at 0x40cc5c
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 0x40ccc0
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.00404254
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408548
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccc7
lea eax, [ebp - 0xc]
call fcn.00403fe4
ret

Function at 0x41efc4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47f888
cmp dword [edi], 0
jne 0x41f040
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47f884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47d3fc
mov ecx, 2
call fcn.00402a00
mov edx, 0x41ef9c
lea eax, [esi + 5]
call fcn.0041efbc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041efbc
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 0x41f015
mov dword [0x47f884], 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 0x42054c
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 0x420552
ret
Function at 0x422eb4
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 0x422f05
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422eec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422edc
jmp 0x422f05
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 0x422eed
pop ebx
mov esp, ebp
pop ebp
ret