joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401160
Capabilities:
Enumerate processes
Get system information on windows
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x10
mov dword [esp + 0x14], eax
mov dword [0x41b458], eax
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xffff8000
test cx, ax
jne 0x401336
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push str.SOFTWAREMicrosoftLauncher
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401336
lea eax, [esp + 0x148]
mov dword [esp + 0x148], 0xc8
push eax
lea eax, [esp + 0x174]
push eax
push 0
push 2
push str.Proccess
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401336
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [esp + 0x14c], 9
push esi
push 2
sete byte [esp + 0x17]
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x18], 0x128
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x401336
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0xf], 0
je 0x4012d7
cmp dword [0x41b45c], 0
mov esi, dword [esp + 0x20]
mov dword [esp + 0x144], 0
jne 0x401297
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41b45c], eax
test eax, eax
je 0x4012d7
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x4012d7
lea eax, [esp + 0x144]
push eax
push esi
call dword [0x41b45c]
test eax, eax
jne 0x4012ca
mov dword [esp + 0x144], 1
push esi
call ebx
cmp dword [esp + 0x144], 0
je 0x40130b
lea ecx, [esp + 0x170]
lea eax, [esp + 0x3c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401302
test dl, dl
je 0x4012fe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401302
add eax, 2
add ecx, 2
test dl, dl
jne 0x4012e2
xor eax, eax
jmp 0x401307
sbb eax, eax
or eax, 1
test eax, eax
je 0x401324
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x401258
push edi
call ebx
jmp 0x401336
mov ecx, dword [esp + 0x20]
call fcn.00401860
push edi
mov esi, eax
call ebx
test esi, esi
je 0x401351
push str.DlgInitParamValue
push 0x401370
push 0
push 0x81
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x23c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401f9b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401860
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
push 0x88
push dword [0x41b458]
mov dword [ebp - 0x214], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4019a4
push esi
push dword [0x41b458]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x41b458]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40198e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
mov esi, eax
call fcn.00401fb7
add esp, 4
lea ecx, [ebx - 4]
mov edi, eax
push ecx
lea ecx, [esi + 4]
push ecx
push edi
call fcn.00403d00
add esp, 0xc
push dword [esi]
call fcn.004055a7
add esp, 4
xor esi, esi
test ebx, ebx
je 0x4018ff
call fcn.00405586
xor byte [edi + esi], al
inc esi
cmp esi, ebx
jb 0x4018f2
push 0xa
push 0x87
push dword [0x41b458]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4019a4
push esi
push dword [0x41b458]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x41b458]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40198e
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [0x41b458]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push esi
push ecx
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
push dword [ebp - 0x214]
call fcn.00401b00
add esp, 0x14
mov esi, eax
push edi
call fcn.00401fc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f9b
mov esp, ebp
pop ebp
ret
mov eax, str.Cant_load_GUI_resource
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401f9b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, str.Cant_find_GUI_resource
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401f9b
mov esp, ebp
pop ebp
ret
Function at 0x4028f1
Capabilities:
Parse pe header

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

Function at 0x411150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41117d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41117d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7c5750]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d12
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x7c5750]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7c5750], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x405250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7bccb8], 0x44
push eax
xor eax, eax
push 0x7bccb8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40528b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405315
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055c4
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405349
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7c5728], eax
jmp 0x4054dd
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405367
test eax, eax
je 0x405488
test byte [ebp + 0xc], 2
je 0x405488
mov esi, 0x7b84b8
push edi
push esi
call fcn.004059f0
test ebx, ebx
je 0x405384
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40538a
push edi
call fcn.0040552a
cmp byte [edi], 0
jne 0x405398
cmp byte [0x7b84b8], 0x5c
jne 0x4053a3
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40547e
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040550e
cmp byte [eax], 0
je 0x4053e9
cmp byte [ebp - 0x18], 0
je 0x4053e9
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053ff
mov al, byte [esi + 1]
test al, al
je 0x40545d
cmp al, 0x2e
jne 0x4053ff
cmp byte [esi + 2], 0
je 0x40545d
push esi
push ebx
call fcn.004059f0
test byte [ebp - 0x148], 0x10
je 0x405424
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40545d
push dword [ebp + 0xc]
push edi
call fcn.00405315
jmp 0x40545d
push edi
call fcn.004056a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405455
test byte [ebp + 0xc], 4
je 0x40544d
push edi
push 0xfffffffffffffff1
call fcn.00404d8e
push 0
push edi
call fcn.0040573e
jmp 0x40545d
inc dword [0x7c5728]
jmp 0x40545d
push edi
push 0xfffffffffffffff2
call fcn.00404d8e
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405488
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054dd
cmp dword [ebp - 8], esi
jne 0x40549d
inc dword [0x7c5728]
jmp 0x4054dd
push edi
call fcn.00405ceb
test eax, eax
je 0x4054dd
push edi
call fcn.004054e3
push edi
call fcn.004056a8
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054d5
test byte [ebp + 0xc], 4
je 0x405495
push edi
push 0xfffffffffffffff1
call fcn.00404d8e
push esi
push edi
call fcn.0040573e
jmp 0x4054dd
push edi
push 0xffffffffffffffe5
call fcn.00404d8e
pop edi
pop esi
leave
ret 8
Function at 0x4055c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7ba4b8
push esi
call fcn.004059f0
push esi
call fcn.00405577
mov edi, eax
test edi, edi
jne 0x4055e5
xor eax, eax
jmp 0x405637
push edi
call fcn.00405c52
test byte [0x7c56b8], 0x80
je 0x4055fe
mov al, byte [edi]
test al, al
je 0x4055e1
cmp al, 0x5c
je 0x4055e1
sub edi, esi
jmp 0x405616
call fcn.00405ceb
test eax, eax
je 0x405610
test byte [eax], 0x10
je 0x4055e1
push esi
call fcn.0040552a
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405602
call fcn.004054e3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056a8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056c4
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056c7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40573a
test edi, edi
jne 0x405701
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405734
Function at 0x40573e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d12
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405762
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40589b
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7bce40], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7bce40
je 0x4057a6
push 1
push 0
push esi
call fcn.004056c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058a1
cmp eax, edi
jg 0x4058a1
mov esi, 0x7bc8b8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058a1
cmp eax, edi
jg 0x4058a1
push esi
push ebp
push str._s_s_r_n
push 0x7bc4b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7c56b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a12
push 4
push 0xc0000000
push esi
call fcn.004056c7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x40589b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405894
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405894
cmp edi, dword [esp + 0x18]
jne 0x405894
push str._Rename__r_n
push esi
call fcn.0040563c
test eax, eax
jne 0x4058a8
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059f0
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7bc4b8
push eax
call fcn.00405688
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7c5730]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.0040563c
test eax, eax
je 0x40585f
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058cf
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058c4
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405861
Function at 0x4058d7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405948
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405937
cmp dword [ebp + 0x14], 1
je 0x405939
cmp dword [ebp + 0x14], 2
je 0x405939
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7bd244], 0
push esi
jne 0x405db5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d8f
mov dword [ecx*4 + 0x7bd240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7bd240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc8
pop edi
not eax
pop esi
ret 0xc
Function at 0x402edc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403334
Capabilities:
Query or enumerate registry value

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

Function at 0x4040b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x453048], 0
je 0x404111
cmp word [0x45321c], 0xd7b2
jne 0x4040d9
cmp dword [0x453224], 0
jbe 0x4040d9
mov eax, 0x453218
call dword [0x453234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x451070
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 0x404138
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x451034], 0
jne 0x40412d
push 0
push 0x451068
push 0x451070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e58
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 0x405ebe
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.004044a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ef8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ea8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ec5
lea eax, [ebp - 0x10]
call fcn.00404234
ret

Function at 0x40b03c
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 0x40b075
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404324
jmp 0x40b07e
mov eax, ebx
mov edx, esi
call fcn.00404288
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b740
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5a8
mov eax, dword [0x452010]
cmp byte [eax], 0
je 0x40b7bc
mov eax, dword [0x451e44]
call fcn.00402d48
call fcn.00402bc4
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.0040882c
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 0x40b804
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b7f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x451df8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x453664]
call fcn.004052c4
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 0x40c060
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 0x40c136
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042cc
lea eax, [ebp - 8]
call fcn.00404744
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c120
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c119
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.004046f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c103
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c148
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c103
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 0x40c120
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c13d
lea eax, [ebp - 8]
call fcn.00404234
ret

Function at 0x40c610
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 0x40c674
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.004044a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004083a8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c67b
lea eax, [ebp - 0xc]
call fcn.00404234
ret