joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417a25
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0xc]
mov dword [ebp - 0x1c], ebx
push eax
mov dword [ebx], vtable.std::_Associated_state_bool_.0
mov dword [ebx + 4], 1
call dword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void__]
lea eax, [ebx + 0x14]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea eax, [ebx + 0x44]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
mov byte [ebx + 0x6c], 0
mov dword [ebx + 0x70], 0
mov word [ebx + 0x74], 0
mov byte [ebx + 0x76], 0
mov dword [ebx + 0x78], 0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.std::_Packaged_state_bool____cdecl___void__.0
sub ebx, 0xffffff80
mov dword [ebp - 0x18], ebx
mov dword [ebx + 0x24], 0
push 0x38
mov byte [ebp - 4], 1
call fcn.00415527
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x20], edi
push dword [ebp - 0x10]
lea esi, [edi + 4]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [edi], vtable.std::_Func_impl_no_alloc_class_std::_Fake_no_copy_callable_adapter_class__void___cdecl_functional::memory::scan_for_cheats_class_sachecker::menu___class_process__::_6::_lambda_1____bool___.0
mov dword [ebp - 0x24], esi
call fcn.00409980
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
mov byte [ebp - 4], 3
push ecx
lea ecx, [esi + 0x18]
call fcn.00409980
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x30], ecx
mov dword [ebx + 0x24], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40f030
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x42100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x220
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x228], 0x224
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x40f0e9
mov esi, dword [ebp + 8]
nop word [eax + eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40f09a
mov eax, dword [esi]
lea ecx, [ebp - 0x208]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40f0c0
test dl, dl
je 0x40f0bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40f0c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x40f0a0
xor eax, eax
jmp 0x40f0c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40f0d3
test edi, edi
jne 0x40f0e7
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x40f090
jmp 0x40f0e9
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415439
mov esp, ebp
pop ebp
ret 4
Function at 0x413120
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, 0x1fffffff
mov esi, 1
push edi
mov edi, ecx
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x10], edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x413151
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov ebx, dword [edi + 4]
or eax, 1
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.004126b0
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov edi, dword [edi + 4]
mov edi, dword [edi]
cmp edi, ebx
je 0x413271
mov esi, edi
nop word [eax + eax]
cmp dword [esi + 0x1c], 0x10
lea ebx, [esi + 8]
mov edi, dword [edi]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ecx
jb 0x4131a7
mov ebx, dword [esi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [esi + 0x18], ecx
jbe 0x4131ca
mov edi, dword [ebp - 4]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4131b6
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
and ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
cmp dword [eax], ecx
jne 0x4131e9
mov dword [eax], esi
mov dword [eax + 4], esi
jmp 0x413266
mov ebx, dword [eax + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00410ca0
test al, al
je 0x413221
mov ebx, dword [ebx]
cmp ebx, esi
je 0x413219
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x413266
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x413249
nop dword [eax + eax]
mov ebx, dword [ebx + 4]
lea ecx, [esi + 8]
lea edx, [ebx + 8]
call fcn.00410ca0
test al, al
jne 0x41327a
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x413230
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov esi, edi
cmp edi, dword [ebp - 8]
jne 0x413190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x413266
Function at 0x413ce0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x42100c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0x124
xor esi, esi
lea eax, [esp + 0x18]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x128
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x413d99
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax + eax]
cmp dword [0x421054], 0x10
lea ecx, [esp + 0x34]
mov eax, str.gta_sa.exe
cmovae eax, dword [str.gta_sa.exe]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x413d77
test dl, dl
je 0x413d73
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x413d77
add ecx, 2
add eax, 2
test dl, dl
jne 0x413d57
xor eax, eax
jmp 0x413d7c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x413d88
test esi, esi
jne 0x413d96
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x413d40
jmp 0x413d99
or esi, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00415439
mov esp, ebp
pop ebp
ret
Function at 0x414e24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00414e00
pop esi
leave
ret 8

Function at 0x416029
Capabilities:
Parse pe header

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

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403b60
test esi, esi
jne 0x402b93
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00403c50
jmp 0x402bb4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.004029f8
mov dword [esp], eax
test esi, esi
je 0x402bb4
cmp dword [ebx], 0
je 0x402bb4
dec esi
jmp 0x402b9b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403078
Capabilities:
Query or enumerate registry value

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

Function at 0x4039dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403a3d
cmp word [0x40a218], 0xd7b2
jne 0x403a05
cmp dword [0x40a220], 0
jbe 0x403a05
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
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 0x403a64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403a59
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4048d8
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 0x40493e
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.00403da8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c6c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404928
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404945
lea eax, [ebp - 0x10]
call fcn.00403b60
ret

Function at 0x406bb8
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 0x406bf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c50
jmp 0x406bfa
mov eax, ebx
mov edx, esi
call fcn.00403bb4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4072bc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407124
mov eax, dword [0x4093a4]
cmp byte [eax], 0
je 0x407338
mov eax, dword [0x409300]
call fcn.00402c08
call fcn.00402968
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.0040608c
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 0x407380
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40736e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.004042a8
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 0x407d5c
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 0x407dc0
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.00403da8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405e90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407dc7
lea eax, [ebp - 0xc]
call fcn.00403b60
ret

Function at 0x4088e8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fc4
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4089e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.00404fc0
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.00404fe0
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4089b5
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403da8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00405fd4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00405d28
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.00403f20
jne 0x4089a6
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.00405000
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x40894c
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4089ec
lea eax, [ebp - 0x138]
mov edx, 3
call fcn.00403b84
lea eax, [ebp - 4]
call fcn.00403b60
ret
Function at 0x408a6c
Capabilities:
Check for time delay via gettickcount
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x408a74
push ecx
push ebx
push esi
mov eax, 0x408a1c
call fcn.00404b38
xor eax, eax
push ebp
push 0x408c25
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x408c34
push 0
push 0
call fcn.00404c04
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
je 0x408c0a
call sub.user32.dll_GetDesktopWindow
mov esi, eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402b5c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405fa0
mov edx, dword [ebp - 0x14]
mov eax, 0x40a7e4
call fcn.00403bb4
lea eax, [ebp - 0x1c]
mov ecx, 0x408c48
mov edx, dword [0x40a7e4]
call fcn.00403e20
mov eax, dword [ebp - 0x1c]
call fcn.00405f28
test al, al
je 0x408c0a
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x408b36
lea edx, [ebp - 0x20]
mov eax, 0x408c60
call fcn.00405d28
mov eax, dword [ebp - 0x20]
call fcn.004088e8
push 0xc8
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0xbb8
ja 0x408b55
lea eax, [ebp - 0x24]
mov ecx, 0x408c60
mov edx, dword [0x40a7e4]
call fcn.00403e20
mov eax, dword [ebp - 0x24]
call fcn.00405f38
test al, al
je 0x408b09
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x408b76
push 0xc8
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0xbb8
ja 0x408bb9
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x408c60
mov edx, dword [0x40a7e4]
call fcn.00403e20
mov eax, dword [ebp - 0x28]
call main
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x408c48
mov edx, dword [0x40a7e4]
call fcn.00403e20
mov eax, dword [ebp - 0x2c]
call main
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x408b5e
lea eax, [ebp - 0x30]
mov ecx, 0x408c48
mov edx, dword [0x40a7e4]
call fcn.00403e20
mov eax, dword [ebp - 0x30]
call fcn.00405f38
push 0
mov eax, dword [0x40a7e4]
call main
push eax
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x408c60
mov edx, dword [0x40a7e4]
call fcn.00403e20
mov eax, dword [ebp - 0x34]
call main
push eax
push 0x408c70
push esi
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c2c
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00403b84
ret
Function at 0x40567d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418bf8
cmp edx, dword [eax]
je 0x40569f
add eax, 8
inc ecx
cmp eax, 0x418c88
jl 0x405690
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418bf8]
jne 0x4057cd
mov eax, dword [0x41b810]
cmp eax, 1
je 0x4057a7
test eax, eax
jne 0x4056d0
cmp dword [0x4187c8], 1
je 0x4057a7
cmp edx, 0xfc
je 0x4057cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405707
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405900
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403630
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40574a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403630
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414aac
push edi
call fcn.00407b50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405900
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405910
lea eax, [ebp - 0xa0]
push 0x414a8c
push eax
call fcn.00405910
push dword [esi + 0x418bfc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405910
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407ab9
add esp, 0x2c
pop edi
jmp 0x4057cd
lea eax, [ebp + 8]
lea esi, [esi + 0x418bfc]
push 0
push eax
push dword [esi]
call fcn.00403630
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]
pop esi
leave
ret

Function at 0x40dfaf
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 0x40dff1
call fcn.0041133d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40dff1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40dfe8
xor eax, eax
jmp 0x40dff9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040dfff
pop edi
pop esi
pop ebx
ret 4
Function at 0x40ead5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x412890
call fcn.00402930
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041133d
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40eb14
call fcn.0041133d
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40eb22
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40eb30
or eax, 0xffffffff
jmp 0x40ec18
mov ecx, esi
call fcn.0040ea4b
mov dword [ebp - 0x14], eax
call fcn.0040c5ee
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40eb67
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40eb67
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0040c5a2
push dword [ebp - 0x14]
call fcn.0040c0ef
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040e7e3
cmp eax, edi
je 0x40ebda
test byte [esi + 0x24], 0x10
je 0x40eba8
push 4
mov ecx, esi
pop ebx
call fcn.0040ef27
test ah, 1
je 0x40eba0
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040e101
cmp dword [esi + 0x1c], edi
je 0x40ebda
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040ef5b
jmp 0x40ebda
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40ebee
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40ec07
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40ec07
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040ea85
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x411ae4
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 0x411b12
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411b30
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411a4a
jmp 0x411b30
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411b30
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00411a4a
test edi, edi
mov eax, edi
jne 0x411b1a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8