joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405bf4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b3b0
call fcn.00405f80
mov edi, 0x94
mov eax, edi
call fcn.004058a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e8d0], ecx
mov eax, dword [esi + 4]
mov dword [0x40e8dc], eax
mov edx, dword [esi + 8]
mov dword [0x40e8e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e8d4], esi
cmp ecx, 2
je 0x405c54
or esi, 0x8000
mov dword [0x40e8d4], esi
shl eax, 8
add eax, edx
mov dword [0x40e8d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405c8f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405c8f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405ca7
cmp eax, 0x20b
je 0x405c94
mov dword [ebp - 0x1c], esi
jmp 0x405cbb
cmp dword [ecx + 0x84], 0xe
jbe 0x405c8f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405cb5
cmp dword [ecx + 0x74], 0xe
jbe 0x405c8f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406849
pop ecx
test eax, eax
jne 0x405ce7
cmp dword [0x40e920], 1
jne 0x405cd4
call fcn.004078a7
push 0x1c
call fcn.00407730
push 0xff
call fcn.00405670
pop ecx
pop ecx
call fcn.004066c9
mov dword [ebp - 4], esi
call fcn.00407414
test eax, eax
jge 0x405d00
push 0x1b
call fcn.00405bcf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ee64], eax
call fcn.00407d83
mov dword [0x40e918], eax
call fcn.00407ce1
test eax, eax
jge 0x405d26
push 8
call fcn.00405bcf
pop ecx
call fcn.00407aae
test eax, eax
jge 0x405d37
push 9
call fcn.00405bcf
pop ecx
push 1
call fcn.004056a0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405d4d
push eax
call fcn.00405bcf
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00407a51
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405d6e
movzx eax, word [ebp - 0x40]
jmp 0x405d71
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004012a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405d8f
push edi
call fcn.004057cb
call fcn.004057ed
jmp 0x405dc1
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405fbb
ret
Function at 0x407730
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e220]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e4e0]
je 0x407765
inc eax
cmp eax, 0x13
jb 0x407756
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e4e0]
jne 0x40788b
mov eax, dword [0x40e920]
cmp eax, 1
je 0x407863
cmp eax, edx
jne 0x407795
cmp dword [0x40e4b4], 1
je 0x407863
cmp ecx, 0xfc
je 0x40788b
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4077cb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407fa0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004075e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4077ff
mov eax, edi
push eax
call fcn.004075e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b3f4
push edi
call fcn.004080a0
add esp, 0x10
push edi
call fcn.004075e0
push dword [esi + 0x40e4e4]
mov ebx, eax
call fcn.004075e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004058a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407fa0
push edi
push ebx
call fcn.00407fb0
push 0x40b3f0
push ebx
call fcn.00407fb0
push dword [esi + 0x40e4e4]
push ebx
call fcn.00407fb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407ea5
add esp, 0x2c
jmp 0x40788b
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e4e4]
push dword [esi]
call fcn.004075e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040565e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x407ea5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ea54], ebx
push esi
push edi
jne 0x407f25
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407f60
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ba64
push edi
call esi
test eax, eax
mov dword [0x40ea54], eax
je 0x407f60
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ea58], eax
call esi
cmp dword [0x40e8d0], 2
mov dword [0x40ea5c], eax
jne 0x407f25
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ea64], eax
je 0x407f25
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ea60], eax
mov eax, dword [0x40ea60]
test eax, eax
je 0x407f6a
call eax
test eax, eax
je 0x407f51
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ea64]
test eax, eax
je 0x407f51
test byte [ebp - 8], 1
jne 0x407f6a
cmp dword [0x40e8dc], 4
jb 0x407f64
or byte [ebp + 0x12], 0x20
jmp 0x407f89
xor eax, eax
jmp 0x407f99
or byte [ebp + 0x12], 4
jmp 0x407f89
mov eax, dword [0x40ea58]
test eax, eax
je 0x407f89
call eax
mov ebx, eax
test ebx, ebx
je 0x407f89
mov eax, dword [0x40ea5c]
test eax, eax
je 0x407f89
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ea54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4082b2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4082e0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4082e7
cmp ebx, dword [eax + 4]
jae 0x4082e7
xor eax, eax
jmp 0x4084d7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4082f8
xor eax, eax
inc eax
jmp 0x4084d6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40830e
cmp ecx, edx
jae 0x408453
cmp dword [eax + 4], 0
je 0x408317
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4082ff
cmp dword [ebp + 8], 0
je 0x408339
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x408453
cmp eax, esi
jae 0x408453
mov eax, dword [0x40ea68]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40835e
cmp dword [esi*4 + 0x40ea70], edi
je 0x408457
inc esi
cmp esi, eax
jl 0x40834c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4084d3
cmp dword [ebp - 8], 0x1000000
jne 0x4084d3
test byte [ebp - 0xc], 0xcc
je 0x4083dc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4084d3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4084d3
cmp word [eax + 0x18], 0x10b
jne 0x4084d3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4084d3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4083dc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4083dc
test byte [ecx + 0x27], 0x80
jne 0x408453
push 1
push 0x40eab0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4082f0
mov ecx, dword [0x40ea68]
test ecx, ecx
mov edx, ecx
jle 0x408410
lea eax, [ecx*4 + 0x40ea6c]
cmp dword [eax], edi
je 0x408410
dec edx
sub eax, 4
test edx, edx
jg 0x408404
test edx, edx
jne 0x408441
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40841d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408435
lea eax, [edx*4 + 0x40ea70]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408423
cmp ecx, 0x10
jge 0x408441
inc ecx
mov dword [0x40ea68], ecx
push 0
push 0x40eab0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4082f0
xor eax, eax
jmp 0x4084d6
test esi, esi
jle 0x4082f0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40eab0
call ebx
test eax, eax
jne 0x4082f0
cmp dword [esi*4 + 0x40ea70], edi
je 0x4084ad
mov eax, dword [0x40ea68]
lea esi, [eax - 1]
test esi, esi
jl 0x40849b
cmp dword [esi*4 + 0x40ea70], edi
je 0x408497
dec esi
jns 0x40848b
test esi, esi
jge 0x4084ab
cmp eax, 0x10
jge 0x4084a6
inc eax
mov dword [0x40ea68], eax
lea esi, [eax - 1]
jmp 0x4084ad
je 0x4084c5
xor ecx, ecx
test esi, esi
jl 0x4084c5
lea eax, [ecx*4 + 0x40ea70]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4084b3
push 0
push 0x40eab0
call ebx
jmp 0x4082f0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40947c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004058a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409517
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40e8d0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409517
cmp eax, 1
je 0x409538
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409517
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4094e4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409513
xor eax, eax
inc eax
jmp 0x409557
cmp edi, eax
jae 0x40951b
xor eax, eax
jmp 0x409557
cmp eax, esi
jae 0x409522
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40e8d0]
jmp 0x40953b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444a88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x459668]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push eax
call edi
push eax
call fcn.00412def
push eax
lea ecx, [esp + 0x30]
call fcn.004162ca
lea ecx, [esp + 0xc]
mov dword [esp + 0x4c], 0
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call fcn.00412def
mov ecx, eax
call fcn.00415fb9
cmp dword [esi + 0x130], 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
jne 0x401d91
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x12c]
call fcn.00416237
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea edi, [esi + 0x13c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.004164fe
test edi, edi
je 0x401d4b
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x130]
push edi
push eax
call fcn.00416583
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0xc]
push 0xcc0020
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x144], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x130]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
sub ecx, dword [esp + 0xc]
lea edx, [esi + 0x12c]
test edx, edx
je 0x401dae
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0041631e
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x44
ret 4

Function at 0x402f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402f89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402fc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402fc0
lea ebx, [ebx]
cmp esi, eax
jae 0x402fc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402fb0
cmp esi, eax
jb 0x402fca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x413ef2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413f2b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00413e8b
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00412ce8
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x415a09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x415a4c
call fcn.004180e9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415a4c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x415a67
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004155c3
test ebx, ebx
mov esi, eax
je 0x415a65
test edi, edi
je 0x415a65
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41a711
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44397e
call fcn.0042f57a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004180e9
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41a75c
call fcn.004180e9
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41a76d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41a77a
or eax, 0xffffffff
jmp 0x41a8d6
mov ecx, esi
call fcn.0041a263
mov dword [ebp - 0x14], eax
call fcn.00412e97
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41a7f8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41a7f8
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41a7f8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004119f3
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41a7f8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41a7f8
mov ecx, ebx
call fcn.00416fb6
test eax, eax
je 0x41a7f8
push 0
mov ecx, ebx
call fcn.00416fd1
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004148ef
push dword [ebp - 0x14]
call fcn.00412def
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041a519
xor edi, edi
cmp eax, edi
je 0x41a855
test byte [esi + 0x3c], 0x10
je 0x41a83f
push 4
pop edi
mov ecx, esi
call fcn.00416e73
test ax, 0x100
je 0x41a835
push 5
pop edi
push edi
mov ecx, esi
call fcn.00412992
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41a855
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041717f
or dword [ebp - 4], 0xffffffff
jmp 0x41a880
cmp dword [ebp - 0x28], edi
je 0x41a88e
push 1
mov ecx, ebx
call fcn.00416fd1
cmp dword [ebp - 0x2c], edi
je 0x41a89e
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41a8b7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41a8b7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041a29d
cmp dword [esi + 0x58], edi
je 0x41a8d3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0042f61f
ret
Function at 0x41bfee
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x459668]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41c02b
push 0x449788
push 4
push eax
call fcn.0042eda6
push eax
call fcn.00402fe0
add esp, 0x10
jmp 0x41c03d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c0a8
push edi
call fcn.0042f962
mov edi, dword [eax]
call fcn.0042f962
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0042f908
add esp, 0x18
mov ebx, eax
call fcn.0042f962
cmp dword [eax], 0
je 0x41c088
call fcn.0042f962
push dword [eax]
call fcn.004106d2
pop ecx
jmp 0x41c08f
call fcn.0042f962
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41c0a8
cmp ebx, esi
jae 0x41c0a8
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41c0aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e4db
leave
ret
Function at 0x41d439
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41d47f
call fcn.004180e9
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41d47f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41d4c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41d4ab
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41d4ab
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41d4bf
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42e4db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459668]
jne 0x42e4e5
repz ret
jmp fcn.0043402f
Function at 0x432db7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x459800]
je 0x432dd2
inc edi
cmp edi, 0x17
jb 0x432dc3
cmp edi, 0x17
jae 0x432f52
push ebp
push 3
call fcn.0043b860
cmp eax, 1
pop ecx
je 0x432f1e
push 3
call fcn.0043b860
test eax, eax
pop ecx
jne 0x432e06
cmp dword [0x459648], 1
je 0x432f1e
cmp ebx, 0xfc
je 0x432f51
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45cc30
push ebp
call fcn.0043b7fb
add esp, 0xc
test eax, eax
je 0x432e3c
push esi
push esi
push esi
push esi
push esi
call fcn.0043413d
add esp, 0x14
push 0x104
mov esi, 0x45cc49
push esi
push 0
mov byte [0x45cd4d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432e80
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043b7fb
add esp, 0xc
test eax, eax
je 0x432e80
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043413d
add esp, 0x14
push esi
call fcn.0043b770
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x432ec5
push esi
call fcn.0043b770
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45cf44
push 0x44d9ac
sub ecx, eax
push ecx
push eax
call fcn.0043b6b5
add esp, 0x14
test eax, eax
je 0x432ec5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043413d
add esp, 0x14
jmp 0x432ec7
xor esi, esi
push 0x44b9d8
push ebx
push ebp
call fcn.0043b644
add esp, 0xc
test eax, eax
je 0x432ee7
push esi
push esi
push esi
push esi
push esi
call fcn.0043413d
add esp, 0x14
push dword [edi*8 + 0x459804]
push ebx
push ebp
call fcn.0043b644
add esp, 0xc
test eax, eax
je 0x432f09
push esi
push esi
push esi
push esi
push esi
call fcn.0043413d
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043b487
add esp, 0xc
jmp 0x432f51
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x432f51
cmp ebp, 0xffffffff
je 0x432f51
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x459804]
push dword [esi]
call fcn.0043b770
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret