joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc83
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a794]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b148
mov dword [ebp - 0x14], eax
cmp dword [0x454d28], esi
jne 0x40fd76
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fd03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fe56
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fe56
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fe56
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x454d28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x454d2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x454d30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x454d38], eax
test eax, eax
je 0x40fd73
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x454d34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fd9b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fd8e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fdb0
push 4
pop eax
jmp 0x40fe58
cmp dword [ebp - 0x14], esi
je 0x40fdb0
push dword [0x454d28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fd95
mov eax, dword [0x454d34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fe0e
cmp dword [0x454d38], edi
je 0x40fe0e
push eax
call ebx
push dword [0x454d38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fe0e
test eax, eax
je 0x40fe0e
call ecx
test eax, eax
je 0x40fe03
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40fe03
test byte [ebp - 8], 1
jne 0x40fe0e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fe3e
mov eax, dword [0x454d2c]
cmp eax, edi
je 0x40fe3b
push eax
call ebx
test eax, eax
je 0x40fe3b
call eax
mov esi, eax
test esi, esi
je 0x40fe3b
mov eax, dword [0x454d30]
cmp eax, edi
je 0x40fe3b
push eax
call ebx
test eax, eax
je 0x40fe3b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x454d28]
call ebx
test eax, eax
je 0x40fe56
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fe58
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404609
mov esp, ebp
pop ebp
ret
Function at 0x401a86
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48ee7e
repz ret
jmp fcn.00493927

Function at 0x491ab1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
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.0048c052
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491b64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491c0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491c0c
mov esi, dword [fcn.00488080]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491b64
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00488084]
cmp eax, ecx
je 0x491bbd
cmp dword [0x4acb1c], ecx
je 0x491bbd
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491bbd
test ebx, ebx
je 0x491bbd
call edi
test eax, eax
je 0x491bb4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491bb4
test byte [ebp - 8], 1
jne 0x491bbd
or dword [ebp + 0x10], 0x200000
jmp 0x491bf0
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491bf0
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491c0c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491c0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ee74
leave
ret

Function at 0x42b5c5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x42b5c5
lcall 0x5de5, 0x8b10c483
jmp loc.00fd19c8
Function at 0x405639
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x411090]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.004055e0
mov ebx, eax
cmp ebx, esi
je 0x4056a7
cmp dword [ebp - 0x218], esi
je 0x4056a0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40573f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4056cf
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00405639
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x405750
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x4056af
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x40571a
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.0040581d
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x40573d
push dword [ebp - 0x218]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e9c
leave
ret 4
cmp dword [ebp - 0x218], esi
je 0x405764
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x40573f
Function at 0x40610d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x411090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x408], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x40c], eax
cmp eax, esi
jne 0x406161
call fcn.00404b5c
mov esi, eax
jmp 0x40623a
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40617a
call fcn.00404b5c
jmp 0x40622c
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x406170
push edi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x4061ad
mov esi, 0x8007000e
jmp 0x40622e
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
cmp ecx, esi
ja 0x4061be
cmp eax, 0xffffffff
jbe 0x4061c8
push 0x80070216
call fcn.0040547d
cmp eax, 0x400
jbe 0x4061de
push eax
lea eax, [ebp - 0x408]
push eax
call fcn.00404b32
jmp 0x4061ea
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], esi
je 0x4061a3
push edi
push dword [ebp - 0x408]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x406170
mov edx, dword [ebp - 0x408]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x414]
call fcn.00405fa6
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x406253
lea eax, [ebp - 0x408]
call fcn.004050c0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e9c
leave
ret 0xc

Function at 0x406df0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x411090]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [esi + 4], 0x403c44
push ebx
push edi
xor edi, edi
mov dword [esi + 8], edi
push 0x403a98
mov dword [esi], 0x403c64
mov dword [esi + 4], 0x403ca0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0x413028
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [0x413028]
lea eax, [ebp - 0xcc]
push 0x403aec
push 0x64
push eax
call fcn.0040876b
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call ebx
push esi
push 0x403b18
lea eax, [ebp - 0xcc]
push 0x64
push eax
call fcn.0040876b
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call ebx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3c], edi
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.00407e9c
leave
ret
Function at 0x406ec0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x411090]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push esi
push 0x403b4c
lea eax, [ebp - 0x194]
push 0xc8
push eax
mov dword [esi], 0x403c64
mov dword [esi + 4], 0x403ca0
call fcn.0040876b
add esp, 0x10
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x34]
xor edi, edi
cmp eax, edi
je 0x406f1d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x34], edi
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x406f2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x28]
cmp eax, edi
je 0x406f3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x28], edi
cmp dword [esi + 0x3c], edi
je 0x406f59
push esi
call fcn.00407c41
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x406f59
push 1
call fcn.00406c3e
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x406f69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x20], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x406f79
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
cmp eax, edi
je 0x406f8d
push eax
call ebx
mov dword [esi + 0x14], edi
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x406f9a
push eax
call ebx
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
pop ebx
cmp eax, edi
je 0x406fac
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x1c], edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x406fbc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x2c], edi
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x406fcd
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi + 0x30], edi
push 0x413028
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push dword [0x413028]
lea eax, [ebp - 0x194]
push 0x403b84
push 0xc8
push eax
call fcn.0040876b
add esp, 0x10
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00407e9c
leave
ret

Function at 0x407e9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411090]
jne 0x407ea6
repz ret
jmp fcn.00409d44
Function at 0x40bd30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411090]
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.004095dd
and dword [ebp - 0x14], 0
cmp dword [0x412ae0], 0
mov dword [ebp - 0x18], eax
jne 0x40bde3
push 0x4021e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40be8b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021d4
push ebx
call edi
test eax, eax
je 0x40be8b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4021c4
push ebx
mov dword [0x412ae0], eax
call edi
push eax
call esi
push 0x4021b0
push ebx
mov dword [0x412ae4], eax
call edi
push eax
call esi
push 0x402194
push ebx
mov dword [0x412ae8], eax
call edi
push eax
call esi
mov dword [0x412af0], eax
test eax, eax
je 0x40bde3
push 0x40217c
push ebx
call edi
push eax
call esi
mov dword [0x412aec], eax
mov eax, dword [0x412aec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40be3c
cmp dword [0x412af0], ecx
je 0x40be3c
push eax
call esi
push dword [0x412af0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40be3c
test ebx, ebx
je 0x40be3c
call edi
test eax, eax
je 0x40be33
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40be33
test byte [ebp - 8], 1
jne 0x40be3c
or dword [ebp + 0x10], 0x200000
jmp 0x40be6f
mov eax, dword [0x412ae4]
cmp eax, dword [ebp - 0x18]
je 0x40be6f
push eax
call esi
test eax, eax
je 0x40be6f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40be6f
mov eax, dword [0x412ae8]
cmp eax, dword [ebp - 0x18]
je 0x40be6f
push eax
call esi
test eax, eax
je 0x40be6f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412ae0]
call esi
test eax, eax
je 0x40be8b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40be8d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e9c
leave
ret
Function at 0x402f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a020]
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 [0x45a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c048], 0
je 0x403d19
cmp word [0x45c21c], 0xd7b2
jne 0x403ce1
cmp dword [0x45c224], 0
jbe 0x403ce1
mov eax, 0x45c218
call dword [0x45c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a06c
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 [0x45a030], 0
jne 0x403d35
push 0
push 0x45a064
push 0x45a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
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 0x40a94c
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 0x40a985
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f24
jmp 0x40a98e
mov eax, ebx
mov edx, esi
call fcn.00403e88
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b040
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aeb8
mov eax, dword [0x45b0f8]
cmp byte [eax], 0
je 0x40b0bc
mov eax, dword [0x45af1c]
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.004081c0
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 0x40b104
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b0f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45aec4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c664]
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 0x40b958
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 0x40ba2e
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 0x40ba18
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ba11
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 0x40b9fb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ba40
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40b9fb
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 0x40ba18
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba35
lea eax, [ebp - 8]
call fcn.00403e34
ret

Function at 0x40beac
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 0x40bf10
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.00407d50
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf17
lea eax, [ebp - 0xc]
call fcn.00403e34
ret

Function at 0x41a038
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45c884
cmp dword [edi], 0
jne 0x41a0b4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45c880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45a3ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a010
lea eax, [esi + 5]
call fcn.0041a030
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a030
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 0x41a089
mov dword [0x45c880], 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 0x41b2e0
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 0x41b2e6
ret
Function at 0x41d79c
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 0x41d7ed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41d7d4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41d7c4
jmp 0x41d7ed
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 0x41d7d5
pop ebx
mov esp, ebp
pop ebp
ret