joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48344f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x483487
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00481506
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004814de
jmp 0x483493
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x484b3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x484b7f
call fcn.0048a8ba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x484b7f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x484b76
xor eax, eax
jmp 0x484b87
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00484b8d
pop edi
pop esi
pop ebx
ret 4

Function at 0x48adea
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48ae18
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48ae36
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048ad50
jmp 0x48ae36
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48ae36
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048ad50
test edi, edi
mov eax, edi
jne 0x48ae20
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x9a84b3
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.009a8532
jae 0x9a84bf
xor ecx, ecx
call fcn.009a8532
jae 0x9a84e9
xor eax, eax
call fcn.009a8532
jae 0x9a84fa
mov al, 0x10
call fcn.009a8532
adc al, al
jae 0x9a84db
jne 0x9a8527
stosb byte es:[edi], al
jmp 0x9a84c0
call fcn.009a853e
dec ecx
loop 0x9a8506
mov eax, ebp
call fcn.009a853c
jmp 0x9a8528
lodsb al, byte [esi]
shr eax, 1
je 0x9a854e
adc ecx, 2
mov ebp, eax
jmp 0x9a8528
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.009a853c
cmp eax, 0x7d00
jae 0x9a8526
cmp eax, 0x500
jae 0x9a8527
cmp eax, 0x7f
ja 0x9a8528
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a84c0
pop ebp
ret 8

Function at 0x401550
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4015c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401550
mov dword [esp], 0x40169c
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020fe
sub eax, 0x40169c
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401665
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.00401463
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014c4
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b800]
sar eax, cl
mov ecx, 0x40300c
shl ebx, cl
mov dword [esp + 4], eax
add ebx, ecx
mov dword [esp], ebx
call fcn.00401e01
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x503f12
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00503f91
jae 0x503f1e
xor ecx, ecx
call fcn.00503f91
jae 0x503f48
xor eax, eax
call fcn.00503f91
jae 0x503f59
mov al, 0x10
call fcn.00503f91
adc al, al
jae 0x503f3a
jne 0x503f86
stosb byte es:[edi], al
jmp 0x503f1f
call fcn.00503f9d
dec ecx
loop 0x503f65
mov eax, ebp
call fcn.00503f9b
jmp 0x503f87
lodsb al, byte [esi]
shr eax, 1
je 0x503fad
adc ecx, 2
mov ebp, eax
jmp 0x503f87
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00503f9b
cmp eax, 0x7d00
jae 0x503f85
cmp eax, 0x500
jae 0x503f86
cmp eax, 0x7f
ja 0x503f87
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x503f1f
pop ebp
ret 8
Function at 0x10001050
Capabilities:
Download url
Receive data

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push 0
push 0
push esi
push edi
push 0
call sub.urlmon.dll_URLDownloadToFileA
cmp eax, 0x800c0008
jg 0x1000108e
je 0x10001085
cmp eax, 0x800c0005
je 0x10001085
cmp eax, 0x800c0006
jne 0x10001061
push 0x1388
call ebx
jmp 0x10001061
test eax, eax
jne 0x10001061
pop edi
pop esi
pop ebx
ret

Function at 0x100010a0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x334
mov eax, dword [0x10010170]
xor eax, esp
mov dword [esp + 0x330], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10001208
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10001201
push 0x103
lea ecx, [esp + 0x131]
push 0
push ecx
call fcn.10002550
push 0x103
lea edx, [esp + 0x241]
push 0
push edx
call fcn.10002550
mov al, 0x33
mov byte [esp + 0x144], al
mov byte [esp + 0x248], al
mov al, 0x36
mov byte [esp + 0x145], al
mov byte [esp + 0x249], al
mov al, 0x30
mov byte [esp + 0x146], al
mov byte [esp + 0x24a], al
mov al, 0x65
mov cl, 0x2e
add esp, 0x18
mov byte [esp + 0x12f], 0x54
mov byte [esp + 0x233], 0x73
mov byte [esp + 0x130], 0x72
mov byte [esp + 0x234], 0x44
mov byte [esp + 0x131], 0x61
mov byte [esp + 0x235], cl
mov byte [esp + 0x236], al
mov byte [esp + 0x237], 0x78
mov byte [esp + 0x238], al
mov byte [esp + 0x239], 0
mov byte [esp + 0x132], 0x59
mov byte [esp + 0x133], cl
mov byte [esp + 0x134], al
mov byte [esp + 0x135], 0x58
mov byte [esp + 0x136], al
mov byte [esp + 0x137], 0
lea ecx, [ecx]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push ecx
call fcn.100027b0
add esp, 8
test eax, eax
je 0x10001220
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.100027b0
add esp, 8
test eax, eax
je 0x10001220
lea ecx, [esp + 4]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100011c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.10002802
add esp, 0x334
ret
mov ecx, dword [esp + 0x334]
pop esi
xor ecx, esp
mov eax, 1
call fcn.10002802
add esp, 0x334
ret
Function at 0x10002100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1e4
mov eax, dword [0x10010170]
xor eax, esp
mov dword [esp + 0x1e0], eax
push ebx
push esi
push edi
push 0
push 0x3e8
push 1
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, 9
mov esi, str.613880B3_8AF3_4350_BF41_83FB6619F485
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x40]
push eax
movsw word es:[edi], word [esi]
push 1
push 0x1f0001
mov dword [esp + 0x24], 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x1000219c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.10002802
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x40]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x10002184
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10002275
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x1c], 0x113
jne 0x10002242
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x20], eax
jne 0x10002258
call fcn.100010a0
test eax, eax
je 0x10002238
mov ecx, dword [0x1000d2d8]
mov edx, dword [0x1000d2dc]
mov al, byte [0x1000d2e0]
mov dword [esp + 0x34], ecx
mov ecx, 0x1e
mov esi, 0x1000d260
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
push 0x40030
lea ecx, [esp + 0x38]
mov dword [esp + 0x3c], edx
push ecx
lea edx, [esp + 0x70]
push edx
mov byte [esp + 0x48], al
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebx
jmp 0x10002258
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x10002258
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x100021d4
mov edi, dword [esp + 0x14]
push 1
push 0
call dword [sym.imp.USER32.dll_KillTimer]
push 0x103
lea eax, [esp + 0xe5]
push 0
push eax
mov byte [esp + 0xec], 0
call fcn.10002550
add esp, 0xc
push 0x104
lea ecx, [esp + 0xe4]
push ecx
push str.AppData
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea edx, [esp + 0xe0]
push edx
call fcn.10001b70
add esp, 4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1ec]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.10002802
mov esp, ebp
pop ebp
ret

Function at 0x10002802
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10010170]
jne 0x1000280c
repz ret
jmp fcn.10004f10
Function at 0x1000b457
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10004862
and dword [ebp - 4], 0
cmp dword [0x10011b00], 0
mov ebx, eax
jne 0x1000b508
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000b5b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000ec5c
push edi
call esi
test eax, eax
je 0x1000b5b9
push eax
call fcn.100047f0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10011b00], eax
call esi
push eax
call fcn.100047f0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10011b04], eax
call esi
push eax
call fcn.100047f0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10011b08], eax
call esi
push eax
call fcn.100047f0
pop ecx
mov dword [0x10011b10], eax
test eax, eax
je 0x1000b508
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100047f0
pop ecx
mov dword [0x10011b0c], eax
mov eax, dword [0x10011b0c]
cmp eax, ebx
je 0x1000b560
cmp dword [0x10011b10], ebx
je 0x1000b560
push eax
call fcn.1000486b
push dword [0x10011b10]
mov esi, eax
call fcn.1000486b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000b560
test edi, edi
je 0x1000b560
call esi
test eax, eax
je 0x1000b557
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000b557
test byte [ebp - 0xc], 1
jne 0x1000b560
or dword [ebp + 0x10], 0x200000
jmp 0x1000b599
mov eax, dword [0x10011b04]
cmp eax, ebx
je 0x1000b599
push eax
call fcn.1000486b
pop ecx
test eax, eax
je 0x1000b599
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000b599
mov eax, dword [0x10011b08]
cmp eax, ebx
je 0x1000b599
push eax
call fcn.1000486b
pop ecx
test eax, eax
je 0x1000b599
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10011b00]
call fcn.1000486b
pop ecx
test eax, eax
je 0x1000b5b9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000b5bb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028a8
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 0x4028e5
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 0x402905
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404290
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402a6c
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.00404020
test esi, esi
jne 0x402aa2
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.00404110
jmp 0x402ac0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402980
mov edi, eax
test esi, esi
je 0x402ac0
cmp dword [ebx], 0
je 0x402ac0
dec esi
jmp 0x402aa9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403148
Capabilities:
Query or enumerate registry value

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

Function at 0x403ea4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x403f05
cmp word [0x45921c], 0xd7b2
jne 0x403ecd
cmp dword [0x459224], 0
jbe 0x403ecd
mov eax, 0x459218
call dword [0x459234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45706c
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 0x403f2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x457030], 0
jne 0x403f21
push 0
push 0x457064
push 0x45706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4052b0
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 0x4054e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405333
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405333
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4054fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4053bc
xor eax, eax
push ebp
push 0x4053b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004050f8
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 0x40539a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40551c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40539a
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 0x4053bc
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 0x4054d6
cmp byte [ebp - 0xd], 0
jne 0x405403
cmp byte [ebp - 0x12], 0
je 0x4054d6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40541c
dec ebx
cmp byte [ebx], 0x2e
je 0x40542b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40541b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4054d6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405468
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 0x4054d6
cmp byte [ebp - 0xd], 0
je 0x4054d6
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 0x4054d6
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 0x405ba8
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 0x405c0e
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.00404290
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d0c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bf8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c15
lea eax, [ebp - 0x10]
call fcn.00404020
ret

Function at 0x40ada4
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 0x40addd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404110
jmp 0x40ade6
mov eax, ebx
mov edx, esi
call fcn.00404074
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b498
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b310
mov eax, dword [0x458104]
cmp byte [eax], 0
je 0x40b514
mov eax, dword [0x457f18]
call fcn.00402b78
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.004084dc
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 0x40b55c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b54a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x457ec4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x459664]
call fcn.004050bc
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 0x40bdb0
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 0x40be86
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040b8
lea eax, [ebp - 8]
call fcn.00404530
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044e0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40be70
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40be69
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.004044e0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40be53
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40be98
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40be53
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 0x40be70
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be8d
lea eax, [ebp - 8]
call fcn.00404020
ret

Function at 0x40c390
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 0x40c3f4
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.00404290
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407fe4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3fb
lea eax, [ebp - 0xc]
call fcn.00404020
ret

Function at 0x41a5d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x459884
cmp dword [edi], 0
jne 0x41a654
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x459880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45746c
mov ecx, 2
call fcn.00402940
mov edx, 0x41a5b0
lea eax, [esi + 5]
call fcn.0041a5d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a5d0
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 0x41a629
mov dword [0x459880], 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 0x41bbd0
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 0x41bbd6
ret