joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x417100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x405251
mov dword [ebp - 0x12c], 0x128
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x130], eax
xor ebx, ebx
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x405246
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0x124], eax
jne 0x4051f7
mov ebx, 1
jmp 0x405235
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405200
sub eax, edx
xor edx, edx
cmp eax, 8
push 0x40fc7c
lea ecx, [eax - 8]
cmovle ecx, edx
lea eax, [ebp - 0x108]
add eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x405235
inc esi
cmp esi, 5
jg 0x405285
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4051e2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4052c5
mov eax, dword [sym.imp.Engine.dll_long_int_g_iCountry]
push 0
push str.LastChaos_Run
cmp dword [eax], 0xe
jne 0x4052a2
push str.___LastChaos_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
push str.Fail_Execute_LastChaos_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
Function at 0x408810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x417100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4088cc
cmp byte [esi + 0x3d], 0
je 0x4088cc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4088ba
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x408881
sub eax, 1
je 0x408885
sub eax, 2
jne 0x4088ba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4088a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4088ba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
Function at 0x4094b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x4094d1
jl 0x4094c7
test esi, esi
jne 0x4094d1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4094e8
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x409524
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp + 8], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x409598
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x40954c
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x409586
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x409598
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x409560
test ecx, ecx
je 0x409598
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x4095b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4095d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x409640
jg 0x4095fb
test esi, esi
je 0x409640
test ecx, ecx
jl 0x40967a
jg 0x409605
test eax, eax
je 0x40967a
cmp edi, ecx
jg 0x409615
jl 0x40960f
cmp esi, eax
jae 0x409615
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x409667
jg 0x40964d
test esi, esi
je 0x409667
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x409667
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x40964d

Function at 0x40c7d8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40c817
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c817
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c817
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40c817
cmp dword [ecx + 0x74], 0xe
jbe 0x40c817
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x48451de7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x26f569dc
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401440
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.00401d28
test esi, esi
jne 0x401476
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.00401e14
jmp 0x401494
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00401354
mov edi, eax
test esi, esi
je 0x401494
cmp dword [ebx], 0
je 0x401494
dec esi
jmp 0x40147d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4044b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404543
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x105]
call fcn.0040439c
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0040442c
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x404558
call fcn.00401f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40454a
lea eax, [ebp - 0x110]
mov edx, 2
call fcn.00401d4c
ret

Function at 0x40455c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040439c
add esp, 0x108
pop ebx
ret

Function at 0x404584
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
mov ebx, eax
mov dword [esp], 0x1000
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x1001
call fcn.00401ea8
add esp, 0x1008
pop ebx
ret
Function at 0x4046f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004020a8
mov eax, dword [ebp - 8]
call fcn.004020a8
mov eax, dword [ebp + 0xc]
call fcn.004020a8
xor eax, eax
push ebp
push 0x4047d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00401d7c
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004020b8
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4047af
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004020b8
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4047a6
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00402194
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.004020b8
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00402194
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047d9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401d4c
lea eax, [ebp + 0xc]
call fcn.00401d28
ret

Function at 0x404950
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
xor ebx, ebx
push edx
push eax
push 0
call sub.kernel32.dll_FindResourceA
mov esi, eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, edi
call fcn.004020b8
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
test edi, edi
jbe 0x4049b3
push 0
lea eax, [esp + 4]
push eax
push esi
push 0
call sub.kernel32.dll_SizeofResource
push eax
push esi
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
push eax
push edi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4049b3
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x404b34
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00401d28
push esp
push esi
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0040309c
test eax, eax
je 0x404b89
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x404b80
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00401ea8
mov eax, dword [esp]
push eax
call sub.ole32.dll_CoTaskMemFree
cmp dword [ebx], 0
je 0x404baa
mov eax, dword [ebx]
call fcn.00401ec0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x404baa
mov eax, ebx
mov edx, 0x404bbc
call fcn.00401ec8
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x404c2c
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
push ebx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, 0xffffffff
mov ecx, edi
shr ecx, 2
jecxz 0x404c83
mov edx, dword [esi]
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x409798]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x409798]
shr edx, 0x10
mov bl, al
xor bl, dl
shr eax, 8
xor eax, dword [ebx*4 + 0x409798]
mov bl, al
xor bl, dh
shr eax, 8
xor eax, dword [ebx*4 + 0x409798]
add esi, 4
loop 0x404c41
mov ecx, edi
and ecx, 3
jecxz 0x404c9b
mov bl, al
xor bl, byte [esi]
shr eax, 8
inc esi
xor eax, dword [ebx*4 + 0x409798]
loop 0x404c8a
xor eax, 0xffffffff
pop ebx
pop edi
pop esi
ret

Function at 0x405048
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x405195
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00401d28
xor eax, eax
mov dword [ebp - 0xc], eax
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x40517f
xor edx, edx
push ebp
push 0x405178
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x405145
push 0
mov eax, esi
call fcn.00401ec0
push eax
mov eax, esi
call fcn.004020b8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x405145
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x405145
mov eax, dword [ebp - 0x14]
call fcn.004011d4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x405145
mov esi, dword [ebp - 0x14]
test esi, esi
jbe 0x405145
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov edx, 2
call fcn.00405020
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.00401ec8
inc dword [ebp - 0x10]
dec esi
jne 0x405122
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40517f
cmp dword [ebp - 0xc], 0
je 0x405163
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004011ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CryptDestroyHash
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CryptReleaseContext
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40519c
lea eax, [ebp - 0x18]
call fcn.00401d28
ret
Function at 0x40548c
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffbc
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00402348
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x405519
push 0
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0x40
lea eax, [esp + 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
cmp word [esp + 4], 0x5a4d
jne 0x405513
push 0
push 0
mov eax, dword [esp + 0x48]
push eax
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 4]
push eax
push 0xf8
push edi
push esi
call sub.kernel32.dll_ReadFile_1
cmp dword [edi], 0x4550
jne 0x405513
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x44
pop edi
pop esi
pop ebx
ret

Function at 0x405524
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.004020b8
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x405567
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
cmp edi, eax
jne 0x405561
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x405598
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40564c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.004020b8
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x40562e
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.00402194
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00402104
push eax
push edi
call sub.kernel32.dll_ReadFile_1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00405048
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00402004
jne 0x405628
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405653
lea eax, [ebp - 0x10]
call fcn.00401d28
lea eax, [ebp - 8]
call fcn.00401d28
ret
Function at 0x405fa8
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push ebx
call sub.kernel32.dll_ResumeThread
push esi
call sub.kernel32.dll_Sleep
push ebx
call sub.kernel32.dll_SuspendThread
pop esi
pop ebx
ret

Function at 0x405fc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004020a8
xor eax, eax
push ebp
push 0x406077
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00403f18
test al, al
je 0x40601d
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004020b8
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
jmp 0x40603f
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004020b8
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x406061
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x40605b
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40607e
lea eax, [ebp - 4]
call fcn.00401d28
ret
Function at 0x4066bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4066c4
push ebx
xor eax, eax
push ebp
push 0x406853
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x406860
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x40966c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x406838
push ebx
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 5]
mov ecx, 5
call fcn.00403088
add dword [ebp - 0xc], 5
xor edx, edx
mov dl, byte [ebp - 5]
lea eax, [ebp - 0x10]
call fcn.00402194
xor ecx, ecx
mov cl, byte [ebp - 5]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00403088
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00401440
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00403e6c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00401ec8
mov eax, dword [ebp - 0x14]
call fcn.00403f18
test al, al
jne 0x4067af
push 0x30
push 0x406864
push 0x406874
push dword [ebp - 0x10]
push 0x406884
push 0x406890
push 0x4068b4
push 0x4068c0
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00401f80
mov eax, dword [ebp - 0x1c]
call fcn.004020b8
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess_1
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00401440
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00403e6c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00401ec8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00405570
test al, al
jne 0x40682b
cmp dword [ebp - 4], 0
je 0x40682b
push 0x30
push 0x406864
push 0x406884
push dword [ebp - 0x10]
push 0x406884
push 0x4068f8
push 0x4068b4
push 0x406910
lea eax, [ebp - 0x28]
mov edx, 6
call fcn.00401f80
mov eax, dword [ebp - 0x28]
call fcn.004020b8
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, ebx
call fcn.00403098
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40685a
lea eax, [ebp - 0x28]
mov edx, 7
call fcn.00401d4c
ret