joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40abf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
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 edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0xf4]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x401ed6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xf0]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x100]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x401e82
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xf4]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xf4]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xf0]
sub ecx, edi
test edx, edx
je 0x401ef7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040a62a
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x405450
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x104
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
push ecx
push edx
call fcn.00405410
push 0x40
lea eax, [esp + 0x24]
push 0x40fca0
push eax
call dword [sym.imp.MSVCRT.dll__fsopen]
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x40561b
push eax
call dword [sym.imp.MSVCRT.dll__fileno]
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
mov esi, eax
add esp, 8
shr esi, 5
cmp esi, 1
jl 0x40561b
mov ebp, esi
shl ebp, 5
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 1
push ebp
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
lea ebp, [esi - 1]
add esp, 0x20
mov edi, ebp
test edi, edi
jl 0x40551c
mov ecx, dword [esp + 0x120]
mov eax, edi
shl eax, 5
add eax, ebx
cmp ecx, dword [eax]
jge 0x405518
dec edi
sub eax, 0x20
test edi, edi
jge 0x40550a
jmp 0x40551c
test edi, edi
jge 0x405541
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edx, edi
shl edx, 5
lea eax, [edx + ebx]
mov edx, dword [edx + ebx]
cmp edx, ecx
jne 0x4055a6
mov ecx, dword [esp + 0x124]
test ecx, ecx
jne 0x40557d
inc edi
mov ecx, edi
shl ecx, 0x1b
sub ecx, edi
add ecx, esi
shl edi, 5
shl ecx, 5
add edi, ebx
push ecx
push edi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov esi, ebp
jmp 0x4055d8
lea eax, [edi + 1]
mov edx, eax
shl edx, 0x1b
sub edx, eax
add edx, esi
shl eax, 5
shl edx, 5
add eax, ebx
push edx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or eax, 0xffffffff
add esp, 0xc
sub eax, edi
add esi, eax
jmp 0x4055d8
mov eax, dword [esp + 0x124]
test eax, eax
je 0x4055d8
lea eax, [edi + 1]
mov ecx, eax
shl ecx, 0x1b
sub ecx, eax
add ecx, esi
shl eax, 5
shl ecx, 5
add eax, ebx
push ecx
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_memmove]
or edx, 0xffffffff
add esp, 0xc
sub edx, edi
add esi, edx
mov edi, dword [esp + 0x10]
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
shl esi, 5
push edi
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
push esi
push edi
call dword [sym.imp.MSVCRT.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll__chsize]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x404ca0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x416040]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push edi
push 0x6c
push esi
movlpd qword [esp + 0x20], xmm0
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x404e50
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], str.JxAutoupdate
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x86
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push 0
push 0x140
push 0x320
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Jx_Autoupdate
push str.JxAutoupdate
push 0x20000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x404e2f
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov esi, eax
lea eax, [esp + 0x38]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x44]
add eax, esi
cdq
push 5
sub eax, edx
push 0
sar eax, 1
push 0
push eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x50]
add eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x48]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
je 0x404e2f
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [esp + 0x48]
push eax
call esi
lea eax, [esp + 0x48]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
call ebx
test eax, eax
jne 0x404e10
mov ecx, dword [esp + 0x64]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040e325
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
mov esi, ecx
cmp di, bx
jne 0x406787
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4067c1
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4067c1
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x406894
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x4067ee
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], 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 0x406821
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
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_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x406860
sub eax, 1
je 0x406860
sub eax, 2
jne 0x406894
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4067f9
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x406884
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x406894
lea ecx, [ebp - 0x28]
movzx eax, bx
cmp dword [ebp - 0x30], ecx
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e325
mov esp, ebp
pop ebp
ret 4
Function at 0x407430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40745c
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x407484
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x40748a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4074f2
jg 0x4074a1
test esi, esi
je 0x4074f2
test ecx, ecx
jl 0x4074ed
jg 0x4074ab
test eax, eax
je 0x4074ed
cmp edi, ecx
jg 0x4074bf
jl 0x4074b5
cmp esi, eax
jae 0x4074bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x4074f5
mov ecx, dword [ebp + 8]
jmp 0x4074ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x407519
jg 0x4074ff
test esi, esi
je 0x407519
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x407519
push eax
push esi
push 1
push ecx
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 [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407530
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40755c
jl 0x407550
test ecx, ecx
jne 0x40755c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x407575
push eax
push ecx
push esi
mov ecx, ebx
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
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4075c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4075c9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4075c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x407636
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4075f2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x407624
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x407636
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x407600
test edi, edi
je 0x407636
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
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4079c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4079f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407a2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x407a2c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x407b03
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x407a54
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 0x407a60
movsx eax, bl
jmp 0x407a98
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
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]
sub eax, 0
je 0x407ac2
sub eax, 1
je 0x407ac2
sub eax, 2
jne 0x407b03
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
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
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x407ae0
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 0x407b03
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
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.0040e325
mov esp, ebp
pop ebp
ret 4
Function at 0x4082f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4083b4
cmp byte [esi + 0x3e], 0
je 0x4083b4
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x4083a2
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x408369
sub eax, 1
je 0x40836d
sub eax, 2
jne 0x4083a2
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40838b
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 0x4083a2
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040e325
mov esp, ebp
pop ebp
ret

Function at 0x408460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40851c
cmp byte [esi + 0x3d], 0
je 0x40851c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40850a
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 0x4084d1
sub eax, 1
je 0x4084d5
sub eax, 2
jne 0x40850a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4084f3
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 0x40850a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e325
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040e325
mov esp, ebp
pop ebp
ret
Function at 0x40cd40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040cc30
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 0
push 0
push edi
call ebx
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
add esp, 4
cmp eax, 0xffffffff
jne 0x40cd87
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
jne 0x40ce13
push 2
push 0
push edi
call ebx
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [esp + 0x14], eax
cdq
mov ebx, eax
mov dword [esp + 0x10], edx
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
and ecx, eax
add esp, 0xc
cmp ecx, 0xffffffff
je 0x40ce13
test eax, eax
jne 0x40ce13
cmp ebx, 0xffffffff
jae 0x40ce13
or ebx, eax
jne 0x40cdd4
push ebx
push ebx
push 0xd
jmp 0x40ce19
mov ebx, dword [esp + 0x14]
lea eax, [ebx + 1]
push eax
call fcn.0040e399
add esp, 4
mov dword [esi + 0x50], eax
push edi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x40ce13
mov eax, dword [esi + 0x50]
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.0040cf80
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 5
push esi
call fcn.0040ce30
mov eax, dword [esi + 0x38]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40de65
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x40de8c
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40de8f
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040de41
pop esi
leave
ret 8

Function at 0x40ebef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ec2e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ec2e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ec2e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ec2e
cmp dword [ecx + 0x74], 0xe
jbe 0x40ec2e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret