joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x42a020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c8], 0
push 0x41e654
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 1
push 0x42aec4
lea ecx, [ebp - 0x238]
call dword [0x41e158]
call fcn.00408280
movzx eax, al
test eax, eax
je 0x408e94
mov dword [ebp - 0x240], 0x104
lea ecx, [ebp - 0x23c]
push ecx
push 1
push 0
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408e39
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x41e690
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x408e37
mov edx, dword [ebp - 0x244]
push edx
push str.Error__Failed_to_read_install_path__Error___d
lea eax, [ebp - 0x2c4]
push eax
call fcn.004075f0
add esp, 0xc
push 0
push 0x41e710
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.00406350
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x408e87
lea edx, [ebp - 0x23c]
push edx
push 0x101
push 0
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408e87
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push str.Installed_Path
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov edx, dword [ebp - 0x2c8]
or edx, 1
mov dword [ebp - 0x2c8], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x238]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077d3
mov esp, ebp
pop ebp
ret
Function at 0x409270
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b3cc
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42a020]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x42aea8
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x42ac70], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40930b
push str.ERROR__already_running_
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
push 0
push 0x41e580
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00406350
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [ebp - 0x2d]
jmp 0x40930d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004077d3
mov esp, ebp
pop ebp
ret
Function at 0x409580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c16b
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x42a020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408d30
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR90.dll__wchdir]
add esp, 4
push 0x42ae8c
lea ecx, [ebp - 0x30]
call dword [0x41e158]
push str..exe
lea ecx, [ebp - 0x30]
call dword [0x41e154]
push 1
push 0
push 0
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0
jg 0x4096bb
jl 0x409627
cmp dword [ebp - 0x58], 0x20
ja 0x4096bb
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00408d30
add esp, 4
mov byte [ebp - 4], 1
push 0x42ae8c
lea ecx, [ebp - 0x4c]
call dword [0x41e158]
push str.Beta.exe
lea ecx, [ebp - 0x4c]
call dword [0x41e154]
push 1
push 0
push 0
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
cmp dword [ebp - 0x5c], 0
jg 0x4096ae
jl 0x409688
cmp dword [ebp - 0x60], 0x20
ja 0x4096ae
mov byte [ebp - 0x4d], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [ebp - 0x4d]
jmp 0x4096d2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 0x4e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, byte [ebp - 0x4e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004077d3
mov esp, ebp
pop ebp
ret
Function at 0x40b0d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x42a020]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x4c], ecx
push 2
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 0x104c]
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x1048]
add eax, 1
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x1048], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [edx + 0x1048]
cmp ecx, dword [eax + 0xa0]
jge 0x40b174
call dword [sym.imp.steam_api.dll_SteamRemoteStorage]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0x1048]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + eax*8 + 0xac]
push edx
mov eax, dword [ecx + eax*8 + 0xa8]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0x64]
call eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x40b1d0
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x40
call fcn.00401bd0
jmp 0x40b1bc
push str.Finished_synchronizing_subscribed_mods_
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
lea edx, [ebp - 0x48]
push edx
call fcn.004013b0
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
call fcn.004013b0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.004013b0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00413af0
call fcn.00414360
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004077d3
mov esp, ebp
pop ebp
ret

Function at 0x40bc40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42a020]
xor eax, ebp
mov dword [ebp - 8], eax
fldz
fstp dword [ebp - 4]
mov ecx, 0x42ae3c
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40bca3
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR90.dll__wtof]
add esp, 4
fstp dword [ebp - 4]
fld dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004077d3
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x581f627e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x48500c62
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401b05
Capabilities:
Create process on windows
Get common file path
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1324
call fcn.0040f750
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3eb
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x3ed
push dword [ebx + 0xc]
call edi
push eax
call esi
xor esi, esi
cmp dword [ebx + 0x458], esi
mov dword [ebp - 8], esi
jne 0x401bca
lea eax, [ebx + 0x224]
push eax
lea eax, [ebp - 0x1324]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s.exe
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x1324]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401bca
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401bc1
mov eax, dword [ebx + 4]
add eax, 0x18
push esi
push eax
lea edx, [ebp - 0x114]
call fcn.0040687a
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebx + 0x329], 0
je 0x401cdf
push 0x41
pop ecx
xor eax, eax
mov byte [ebp - 0x21c], 0
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00406c3e
lea esi, [ebp - 0x114]
call fcn.00406565
lea eax, [ebx + 0x329]
push eax
mov dword [ebp - 4], eax
mov eax, esi
push eax
call sub.MSVCRT.dll_strcat
mov eax, dword [ebx + 4]
push dword [eax + 8]
xor esi, esi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00401f82
add esp, 0x1c
cmp eax, 1
jne 0x401c5d
push 0x628
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x401c73
mov edi, eax
call fcn.004028fa
jmp 0x401c75
push 0x1d8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x401c73
call fcn.00403214
jmp 0x401c75
xor eax, eax
cmp eax, esi
je 0x401cdf
mov ecx, dword [ebx + 4]
push dword [ecx + 8]
mov edi, eax
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
call dword [eax + 4]
test eax, eax
jne 0x401cd7
mov eax, dword [edi]
push esi
push esi
push esi
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 4]
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
jne 0x401cd7
lea eax, [ebp - 0x324]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea eax, [ebp - 0x324]
push eax
push esi
lea eax, [ebp - 0x114]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
leave
ret
Function at 0x40226d
Capabilities:
Create process on windows
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x57c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x36c]
push eax
mov edx, edi
call fcn.0040683d
add esp, 0xc
push 1
push str..EXE
lea eax, [ebp - 0x474]
push eax
call fcn.004088e4
mov ecx, dword [ebp + 0xc]
neg eax
sbb eax, eax
inc eax
xor ebx, ebx
test byte [ecx + 4], 0x10
jne 0x4022c9
cmp eax, ebx
jne 0x402301
xor eax, eax
inc eax
jmp 0x4023fb
cmp eax, ebx
jne 0x402301
lea eax, [ebp - 0x15c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
lea eax, [ebp - 0x15c]
push eax
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x4023fb
push edi
call sub.MSVCRT.dll_strlen
push dword [ebp + 8]
mov esi, eax
call sub.MSVCRT.dll_strlen
lea eax, [esi + eax + 4]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040f750
mov dword [ebp + 0xc], esp
mov esi, 0x104
push esi
push 0x4103c4
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
call edi
push esi
push 0x4103c0
push dword [ebp + 0xc]
call edi
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
call edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
mov dword [ebp - 0x54], edi
call sub.MSVCRT.dll_memset
add esp, 0x48
push esi
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x264]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x36c]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0x10], ebx
mov edi, eax
je 0x4023e9
dec esi
mov dword [ebp + 0xc], esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4023d9
mov dword [ebp + 0xc], ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0xc], esi
je 0x4023c5
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
lea esp, [ebp - 0x588]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402655
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push str.INFOWDZ
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402675
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402678
xor eax, eax
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x121
push edi
push eax
push esi
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 0x18]
push eax
call fcn.00402431
add esp, 0x10
xor eax, eax
cmp dword [esi], edi
pop edi
sete al
ret

Function at 0x40573e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
cmp dword [eax + 8], 1
mov dword [ebp - 8], edi
je 0x405758
call fcn.00409a39
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
lea eax, [edi + 0x118]
add dword [eax], ecx
adc dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40578b
mov dword [eax], ecx
cmp dword [ebp + 0xc], esi
jne 0x4057f2
mov eax, dword [edi + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x40579e
mov dword [eax + 8], ecx
mov esi, dword [edi + 8]
push ebx
push 1
call fcn.00409998
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 8]
call fcn.00409f91
push dword [edi + 0x114]
mov esi, dword [edi + 8]
push str._IXStream__Handle__1_d__
call fcn.00409cdd
lea esi, [edi + 0x12c]
push dword [esi]
mov edi, dword [edi + 8]
push 0x6d68
call fcn.00409acc
mov eax, dword [ebp - 8]
mov ebx, dword [esi]
mov eax, dword [eax + 8]
add esp, 0x10
push 1
call fcn.00409d91
pop ebx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
leave
ret 0xc
Function at 0x4057fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
xor ebx, ebx
inc ebx
cmp dword [eax + 8], ebx
mov dword [ebp - 0xc], edi
je 0x405819
call fcn.00409a39
mov esi, dword [ebp + 0x10]
xor ecx, ecx
cmp esi, ecx
jne 0x40582a
mov dword [ebp - 8], ebx
lea esi, [ebp - 0x10]
jmp 0x40582d
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [esi], ecx
push dword [edi + 0x114]
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esi]
cmp dword [ebp + 0xc], 0
jmp 0x405892
cmp dword [ebp - 4], 0
jne 0x405897
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40586f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xa2
jne 0x405897
mov eax, dword [esi]
sub dword [ebp + 0x10], eax
add dword [ebp + 8], eax
push 0
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [edi + 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [esi]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
ja 0x40584f
lea eax, [edi + 0x118]
mov dword [esi], ebx
add dword [eax], ebx
adc dword [eax + 4], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x4058bf
cmp dword [ebp - 8], 0
je 0x405942
cmp ebx, dword [ebp + 0xc]
je 0x405942
mov eax, dword [edi + 8]
push 3
pop ecx
cmp dword [eax + 8], ecx
je 0x4058cd
mov dword [eax + 8], ecx
mov esi, dword [edi + 8]
push 1
call fcn.00409998
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [edi + 8]
call fcn.00409f91
push dword [edi + 0x114]
mov esi, dword [edi + 8]
push str._IXStream__Handle__1_d__
call fcn.00409cdd
push dword [ebp - 8]
mov esi, dword [edi + 8]
push str._IXStream__bExact__1_d__
call fcn.00409cdd
mov esi, dword [edi + 8]
push ebx
push dword [ebp + 0xc]
push str._IXStream__A_lire__1_u____lu__2_u__
call fcn.00409cdd
lea esi, [edi + 0x12c]
push dword [esi]
mov edi, dword [edi + 8]
push 0x6d63
call fcn.00409acc
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi]
mov eax, dword [eax + 8]
add esp, 0x24
push 1
call fcn.00409d91
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc