joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e3b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e409
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e409
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40e3fa
cmp esi, edx
jae 0x40e409
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40e3e8
cmp esi, edx
jae 0x40e409
cmp word [esi], 0
je 0x40e409
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40eb60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447f99
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x40ec8b
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
push esi
call dword [sym.imp.mfc140u.dll_AfxWinInit]
test eax, eax
jne 0x40ebb9
push str.Fatal_Error:_MFC_initialization_failed_n
jmp 0x40ec90
mov eax, dword [ebp + 8]
cmp eax, 1
jle 0x40ec9d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x40ebd6
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x40ebf0
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40ecb1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 2
cmp eax, 2
jle 0x40ec4b
push dword [ecx + 8]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
push 0x455990
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
mov edx, 1
test eax, eax
mov ecx, 2
mov byte [ebp - 4], dl
cmove ecx, edx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp + 8]
cmp eax, 3
jle 0x40ec61
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push dword [eax + 0xc]
call fcn.0040e1d0
mov edi, dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
push esi
call fcn.00407c50
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Fatal_Error:_GetModuleHandle_failed_n
call fcn.0040ecc0
mov ebx, 1
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0040ea90
int3
Function at 0x4137c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f40
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CSonderfarbe.0
call fcn.0040df00
mov ecx, eax
test ecx, ecx
je 0x4139a1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 8], eax
mov dword [ebp - 4], 0
call fcn.0040df00
mov ecx, eax
test ecx, ecx
je 0x4139ab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x10], eax
mov byte [ebp - 4], 1
call fcn.0040df00
mov ecx, eax
test ecx, ecx
je 0x4139b5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x38], eax
lea esi, [edi + 0x9c]
mov byte [ebp - 4], 2
mov ecx, esi
mov dword [ebp - 0x14], esi
call sub.mfc140u.dll_CObArray::CObArray
mov dword [esi], vtable.CLabArray.0
lea esi, [edi + 0xb0]
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [ebp - 0x14], esi
call sub.mfc140u.dll_CObArray::CObArray
mov dword [esi], vtable.CLabArray.0
lea esi, [edi + 0x104]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00419440
mov dword [esi], eax
lea ecx, [edi + 0x10c]
mov byte [ebp - 4], 5
call fcn.00434820
movaps xmm0, xmmword [0x44f7f0]
xorps xmm1, xmm1
movsd qword [edi + 0x28], xmm1
mov eax, edi
mov dword [edi + 0x30], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0xc], 0xffffffff
movups xmmword [edi + 0x18], xmm0
mov byte [edi + 0x98], 0
movsd qword [edi + 0x90], xmm1
mov dword [edi + 4], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
movups xmmword [edi + 0xe0], xmm1
mov dword [edi + 0xf0], 0xffffffff
movups xmmword [edi + 0xd0], xmm1
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 1
mov dword [edi + 0xfc], 0
mov dword [edi + 0x100], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ea90
push 0x80004005
call fcn.0040ea90
push 0x80004005
call fcn.0040ea90
int3
Function at 0x420510
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a5b4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0
push eax
call fcn.00409c60
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0040df00
mov ecx, eax
test ecx, ecx
je 0x420686
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x44fbb0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00409740
test al, al
jne 0x420593
push 0x44fbb0
lea ecx, [ebp - 0x10]
call fcn.00418a40
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x18]
call fcn.00435060
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00422540
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4205d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4205f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x420617
cmp dword [ebp - 0x20], 0
jne 0x420617
mov edi, dword [ebp - 0x24]
jmp 0x42061a
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420634
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420652
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x420671
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ea90
int3
Function at 0x4225f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449460
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [esi], vtable.CSpotColorDBWrite.0
call fcn.004242b0
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42263f
push eax
call edi
mov dword [esi + 0x48], 0
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x48]
test eax, eax
je 0x422659
push eax
call edi
mov dword [esi + 0x48], 0
mov edx, dword [esi + 0x44]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422676
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x40]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x422690
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x3c]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4226aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x38]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4226c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.00422f80
test byte [ebp + 8], 1
je 0x4226da
push 0x54
push esi
call fcn.00445a54
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x427210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b356
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0xc]
push esi
call fcn.004258b0
mov ecx, dword [ebp + 8]
mov dword [edi], vtable.gmg::MXEngine::Profile::MFCStreaming::CSplineKurve.0
mov dword [ebp - 0x14], esi
push ecx
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
lea ecx, [esi + 4]
sar eax, 3
mov dword [ebp - 4], 0
mov dword [esi], eax
call fcn.004279e0
push dword [ebp + 0xc]
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
call fcn.004279e0
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x30], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42a120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4640b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x42a1c3
cmp byte [esi + 0x3d], 0
je 0x42a1c3
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x42a178
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 0x42a18a
sub eax, 1
je 0x42a18e
sub eax, 2
je 0x42a1c3
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42a1ac
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 0x42a178
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00445a43
mov esp, ebp
pop ebp
ret
Function at 0x42a300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4640b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x42a330
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x42a360
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x42a360
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x42a45a
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x42a389
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x42a3bd
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x42a45a
cmp eax, 1
jle 0x42a41b
cmp eax, 3
jne 0x42a45a
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00429930
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x42a439
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 0x42a45a
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x42a45a
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4
Function at 0x42a9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x42a9e5
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__::xsgetn_char___long_long___int64__]
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x42aa06
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x42aa08
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x42aa91
jg 0x42aa1b
test esi, esi
je 0x42aa91
test ecx, ecx
jl 0x42aa5d
jg 0x42aa25
test eax, eax
je 0x42aa5d
cmp ebx, ecx
jg 0x42aa37
jl 0x42aa2f
cmp esi, eax
jae 0x42aa37
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x42aa63
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x42aa91
jg 0x42aa6d
test esi, esi
je 0x42aa91
cmp dword [edi + 0x4c], 0
je 0x42aa91
mov ecx, edi
call fcn.0042a280
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42aab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x42aad5
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
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x42aaf6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x42aaf8
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x42ab76
jg 0x42ab0b
test esi, esi
je 0x42ab76
test ecx, ecx
jl 0x42ab4f
jg 0x42ab15
test eax, eax
je 0x42ab4f
cmp edi, ecx
jg 0x42ab27
jl 0x42ab1f
cmp esi, eax
jae 0x42ab27
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x42ab52
mov edx, dword [ebp + 8]
test edi, edi
jl 0x42ab76
jg 0x42ab5c
test esi, esi
je 0x42ab76
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x42ab76
push eax
push esi
push 1
push edx
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 - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42db20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4640b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x42db4c
push eax
call sub.mfc140u.dll_operator_1
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [edi + 8]
mov dword [edi + 0x10], 0
test ecx, ecx
je 0x42db67
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
shr eax, 4
inc eax
movzx eax, ax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x42db7e
push ecx
jmp 0x42db8d
mov ecx, dword [0x465150]
test ecx, ecx
je 0x42db8b
push ecx
jmp 0x42db8d
push 0
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExW]
push eax
push 6
push esi
call ebx
test eax, eax
jne 0x42dbad
push eax
push dword [ebp - 8]
push 6
push esi
call ebx
test eax, eax
je 0x42dbb9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42dbc0
xor eax, eax
jmp 0x42dc4c
mov ebx, dword [ebp + 0xc]
and ebx, 0xf
xor ecx, ecx
nop dword [eax + eax]
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x42dbe2
cmp ecx, ebx
je 0x42dbea
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x42dbd0
jmp 0x42dc38
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x42dc38
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
call fcn.00446530
mov ecx, esp
push 0xfde9
push esi
push ecx
push ebx
call fcn.00424f30
add esp, 0x10
mov ecx, edi
push eax
call fcn.0042fbc0
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [edi + 4], 0
jne 0x42dc42
xor ecx, ecx
jmp 0x42dc45
mov ecx, dword [edi + 0x10]
xor eax, eax
test ecx, ecx
setg al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 8
Function at 0x43a570
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c655
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x4640b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.xml3Doc.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xffffffff
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xffffffff
mov dword [ebp - 4], 0
mov dword [edi + 0x4c], 0
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x54], eax
shl eax, 2
mov dword [edi + 0x58], eax
inc eax
push 0x20
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
mov ecx, dword [edi + 0x58]
inc ecx
mov dword [edi + 0x3c], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20
push dword [edi + 0x54]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_malloc]
push dword [edi + 0x54]
mov dword [edi + 0x50], eax
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x28
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00440740
test eax, eax
jne 0x43a67b
mov ecx, edi
call fcn.00440900
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x440f40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov edx, dword [edi + 0x2c]
test edx, edx
je 0x440f8e
mov eax, dword [edi + 0x30]
test eax, eax
js 0x440fcf
mov ecx, dword [edi + 0x34]
cmp eax, ecx
jge 0x440fcf
push esi
mov esi, dword [edi + 0x58]
sub ecx, eax
cmp ecx, esi
cmovbe esi, ecx
add eax, edx
push esi
push eax
push dword [edi + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x44], esi
add dword [edi + 0x30], esi
mov eax, 1
mov dword [edi + 0x48], 0
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
je 0x440fcf
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push dword [edi + 0x58]
push dword [edi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x440fcf
test eax, eax
je 0x440fcf
mov dword [edi + 0x44], ecx
mov eax, 1
mov dword [edi + 0x48], 0
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret