joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100172f0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp dword [edi + 0x5b90], 0
lea esi, [edi + 0x5b94]
je 0x1001736a
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10017324
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10027960
push dword [esp + 0x14]
mov ecx, esi
mov dword [esi], 0
push dword [esp + 0x14]
call fcn.10027400
mov edx, dword [esi]
mov ecx, 0x1009375c
push dword [edi + 0x5b90]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5b9c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
ret
push dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0x14]
call fcn.10027400
pop edi
pop esi
ret
Function at 0x10020710
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x10093758]
push esi
mov esi, dword [esp + 8]
mov dword [eax + 0x5b24], 0
test esi, esi
je 0x1002076a
lea eax, [esp + 8]
mov dword [esp + 8], 0
push edi
push eax
call fcn.10020770
push 0x1007fc3c
push esi
mov edi, eax
call fcn.10013390
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10020769
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
ret

Function at 0x10025be0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [0x10093758]
cmp byte [esi + 0x5b20], 0
jne 0x10025d19
cmp dword [esi + 0x5b40], 0
je 0x10025c15
push 0x3289
push str.D:Projectm2extLibrariesimguiimgui.cpp
push str.g.SettingsWindows.empty__
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10025d12
push edi
push 0x1007fc38
push eax
call fcn.10013390
mov edi, eax
add esp, 8
test edi, edi
je 0x10025d11
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push ebp
push edi
call ebx
mov ebp, eax
add esp, 4
cmp ebp, 0xffffffff
je 0x10025d05
push 2
push 0
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10025d05
push edi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10025d05
push 0
push ebp
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10025d05
mov eax, dword [0x10093758]
test eax, eax
je 0x10025c99
inc dword [eax + 0xb0]
push dword [0x10093760]
push ebx
call dword [0x1009100c]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10025d05
push edi
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push edi
cmp eax, ebx
je 0x10025ccd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x10025ce4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10025ce4
push ebx
push ebp
call fcn.10016c80
add esp, 8
mov eax, dword [0x10093758]
test eax, eax
je 0x10025cf3
dec dword [eax + 0xb0]
push dword [0x10093760]
push ebp
call dword [0x10091010]
add esp, 8
jmp 0x10025d0f
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop ebp
pop ebx
pop edi
mov byte [esi + 0x5b20], 1
movss xmm0, dword [esi + 0x5b24]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x10025d68
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5b24], xmm0
jb 0x10025d68
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10025d57
push eax
call fcn.10020710
add esp, 4
mov dword [esi + 0x5b24], 0
pop esi
ret
mov byte [esi + 0x96], 1
mov dword [esi + 0x5b24], 0
pop esi
ret
Function at 0x1002be10
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, 8
ja 0x1002bf39
test byte [esi], 2
jne 0x1002bf39
cmp dword [esi + 0x468], 0xffffffff
jne 0x1002be4b
push 0x91c
push str.D:Projectm2extLibrariesimguiimgui_draw.cpp
push str.PackIdMouseCursors____1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
push dword [esi + 0x468]
mov ecx, esi
call fcn.1002bdb0
lea edx, [edi + edi*2]
movss xmm2, dword [edx*8 + 0x100811e8]
movss xmm4, dword [edx*8 + 0x100811ec]
movzx ecx, word [eax + 4]
movzx eax, word [eax + 6]
pop edi
movd xmm5, ecx
movd xmm3, eax
mov eax, dword [esp + 0x10]
cvtdq2ps xmm5, xmm5
cvtdq2ps xmm3, xmm3
addss xmm5, dword [edx*8 + 0x100811e0]
addss xmm3, dword [edx*8 + 0x100811e4]
movss dword [eax + 4], xmm4
movss dword [eax], xmm2
mov ecx, dword [edx*8 + 0x100811f0]
mov edx, dword [edx*8 + 0x100811f4]
movaps xmm1, xmm5
mov eax, dword [esp + 0xc]
addss xmm4, xmm3
movaps xmm0, xmm3
mov dword [eax], ecx
mov dword [eax + 4], edx
mulss xmm1, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
mulss xmm0, dword [esi + 0x30]
movss dword [eax], xmm1
movaps xmm1, xmm2
movss dword [eax + 4], xmm0
addss xmm1, xmm5
addss xmm5, dword [0x100858d0]
movaps xmm0, xmm4
mulss xmm0, dword [esi + 0x30]
mulss xmm1, dword [esi + 0x2c]
movss dword [eax + 0xc], xmm0
movaps xmm0, xmm5
addss xmm5, xmm2
movss dword [eax + 8], xmm1
mulss xmm0, dword [esi + 0x2c]
mov eax, dword [esp + 0x18]
mulss xmm3, dword [esi + 0x30]
movss dword [eax], xmm0
movss dword [eax + 4], xmm3
mulss xmm5, dword [esi + 0x2c]
mulss xmm4, dword [esi + 0x30]
pop esi
movss dword [eax + 8], xmm5
movss dword [eax + 0xc], xmm4
mov al, 1
ret 0x14
pop edi
xor al, al
pop esi
ret 0x14
Function at 0x1002c1a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x1c], 0
jne 0x1002c1ce
cmp dword [edi + 0x20], 0
jne 0x1002c1ce
push 0xb42
push str.D:Projectm2extLibrariesimguiimgui_draw.cpp
push str.atlas__TexPixelsAlpha8___0__atlas__TexPixelsRGBA32___0
call esi
add esp, 0xc
push edi
call fcn.1002c880
push edi
call fcn.1002caa0
mov eax, dword [edi + 0x48]
add esp, 8
xor ebp, ebp
test eax, eax
jle 0x1002c34f
xor ecx, ecx
mov dword [esp + 0x14], ecx
test ebp, ebp
js 0x1002c1f8
cmp ebp, eax
jl 0x1002c210
push 0x72e
push str.D:Projectm2extLibrariesimguiimgui.h
push str.i___0__i___Size
call esi
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov ebx, dword [edi + 0x50]
add ebx, ecx
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1002c33c
cmp dword [ebx + 8], 0
je 0x1002c33c
cmp dword [eax + 0x30], edi
je 0x1002c243
push 0xb4e
push str.D:Projectm2extLibrariesimguiimgui_draw.cpp
push str.r__Font__ContainerAtlas__atlas
call esi
add esp, 0xc
cmp dword [edi + 0x24], 0
jle 0x1002c24f
cmp dword [edi + 0x28], 0
jg 0x1002c263
push 0x90f
push str.D:Projectm2extLibrariesimguiimgui_draw.cpp
push str.TexWidth___0__TexHeight___0
call esi
add esp, 0xc
mov eax, 0xffff
cmp word [ebx + 4], ax
jne 0x1002c282
push 0x910
push str.D:Projectm2extLibrariesimguiimgui_draw.cpp
push str.rect__IsPacked__
call esi
add esp, 0xc
movzx eax, word [ebx + 4]
sub esp, 0x24
movzx esi, word [ebx]
movzx ecx, word [ebx + 6]
movzx edx, word [ebx + 2]
movss xmm0, dword [ebx + 0xc]
movss xmm4, dword [ebx + 0x14]
movss dword [esp + 0x20], xmm0
movd xmm6, eax
add eax, esi
movss xmm5, dword [ebx + 0x10]
movd xmm3, ecx
movd xmm0, edx
movd xmm2, eax
lea eax, [edx + ecx]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, word [ebx + 8]
mov ecx, dword [ebx + 0x18]
cvtdq2ps xmm0, xmm0
mulss xmm1, dword [edi + 0x30]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm3, xmm3
mulss xmm2, dword [edi + 0x2c]
addss xmm0, xmm4
mulss xmm3, dword [edi + 0x30]
cvtdq2ps xmm6, xmm6
movss dword [esp + 0x1c], xmm1
mulss xmm6, dword [edi + 0x2c]
movss dword [esp + 0x18], xmm2
movss dword [esp + 0x14], xmm3
movss dword [esp + 0x10], xmm6
movss dword [esp + 0xc], xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
addss xmm0, xmm5
movss dword [esp + 8], xmm0
movss dword [esp + 4], xmm4
movss dword [esp], xmm5
push eax
push 0
call fcn.10029620
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x48]
inc ebp
add ecx, 0x1c
mov dword [esp + 0x14], ecx
cmp ebp, eax
jl 0x1002c1f0
mov esi, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x1002c374
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0x48], 0
je 0x1002c36d
call fcn.1002ad30
add esi, 4
cmp esi, ebx
jne 0x1002c360
mov byte [edi + 0x18], 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10031b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10031b47
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10017500
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10031b6c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.10017500
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10031b91
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.10017500
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10031bd2
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.10017500
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10031bf7
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.10017500
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x10031c1c
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.10017500
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1002bb00
Function at 0x1003b910
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push esi
call fcn.10011fa0
test eax, eax
je 0x1003b924
call fcn.100123d0
mov esi, dword [eax + 0x68]
jmp 0x1003b926
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1003b949
mov dword [esi], eax
pop esi
ret
Function at 0x10048cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
or eax, 2
mov dword [esp + 0xc], eax
jmp fcn.10048cc0
Function at 0x1005bc80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x30]
lea esi, [edi + 5]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 0x1c]
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], esi
push ecx
push 0x40
push esi
push eax
call ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ebp
push eax
push 0x40
push esi
push ebp
mov dword [esp + 0x2c], esi
call ebx
mov esi, dword [esp + 0x10]
push edi
push ebp
push esi
call sub.VCRUNTIME140.dll_memcpy
mov cl, byte [esp + 0x38]
mov eax, ebp
sub eax, esi
mov byte [edi + esi], cl
sub eax, 5
add esp, 0xc
mov dword [edi + esi + 1], eax
mov eax, dword [esp + 0x28]
sub eax, ebp
mov byte [ebp], cl
sub eax, 5
mov dword [ebp + 1], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push dword [esp + 0x20]
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x1005bd60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
lea ecx, [edi + 4]
mov dword [edi], esi
push ecx
push 0x40
push edx
push esi
mov dword [edi + 8], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, edi
pop edi
pop esi
ret

Function at 0x1005eea0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10078465
push 0x80
push 0x10093888
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7f
push 0x10093888
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov eax, 0x10093888
ret
Function at 0x1005f3f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push 0x1007fc38
push dword [esp + 0x14]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov ebx, dword [esp + 0x10]
add esp, 0xc
test ebx, ebx
jne 0x1005f429
lea eax, [ebx - 3]
pop ebx
add esp, 8
ret 4
push esi
push 2
push 0
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1005f443
mov esi, 0xfffffffd
jmp 0x1005f4bb
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
add esp, 4
test esi, esi
js 0x1005f43c
jne 0x1005f459
xor esi, esi
jmp 0x1005f4bb
push edi
lea eax, [esi + 1]
push 0x1008c670
push eax
call fcn.100743a5
mov edi, eax
add esp, 8
test edi, edi
jne 0x1005f476
lea esi, [eax - 2]
jmp 0x1005f4ba
push 0
push 0
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebx
push esi
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
cmp eax, esi
je 0x1005f4a4
push edi
call fcn.100743a0
mov esi, 0xfffffffd
jmp 0x1005f4b7
mov ecx, dword [esp + 0x10]
push eax
push edi
call fcn.1005f270
push edi
mov esi, eax
call fcn.100743a0
add esp, 4
pop edi
push dword [esp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x10063aa0
Capabilities:
Terminate process

Disassembly:
cmp byte [0x10093c29], 0
push esi
mov esi, ecx
je 0x10063ac8
push str.crash_direct3d__exiting.
call fcn.1005b860
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x10093c2c]
test ecx, ecx
je 0x10063ae2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x10093c2c], 0
mov byte [0x10093c29], 1
mov ecx, dword [esi + 0xc]
pop esi
test ecx, ecx
je 0x10063afa
push dword [esp + 4]
call fcn.10068790
call fcn.1006af10
ret 4
Function at 0x1006bad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x10092c98]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1006bb92
cmp byte [esi + 0x3d], 0
je 0x1006bb92
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1006bb7f
mov ecx, dword [esi + 0x38]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
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 0x1006bb43
sub eax, 1
je 0x1006bb47
sub eax, 2
jne 0x1006bb7f
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10073dd6
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1006bb67
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 0x1006bb7f
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10073dd6
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10073dd6
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.10073dd6
add esp, 0x28
ret
Function at 0x1006c0d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x10092c98]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1006c100
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10073dd6
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1006c131
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1006c131
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 [esp + 0x2c]
xor ecx, esp
call fcn.10073dd6
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1006c23d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1006c15a
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 0x1006c18f
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 [esp + 0x2c]
xor ecx, esp
call fcn.10073dd6
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1d]
push eax
lea eax, [esp + 0x20]
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 0x1006c1f7
sub eax, 1
je 0x1006c1f7
sub eax, 2
jne 0x1006c23d
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.10068bc0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10073dd6
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x1006c217
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 0x1006c23d
lea ecx, [esp + 0xc]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x14], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10073dd6
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10073dd6
add esp, 0x30
ret 4
Function at 0x100703a0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x100703c1
jl 0x100703b7
test esi, esi
jne 0x100703c1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100703d9
push eax
push esi
push dword [esp + 0x18]
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 ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edx, dword [eax]
mov edi, esi
test edx, edx
je 0x10070422
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10070429
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x10070429
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10070496
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10070453
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 [esp + 0x10]
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 0x10070484
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10070496
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10070460
test edi, edi
je 0x10070496
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x100704b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100704d5
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
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
add esp, 0x14
ret 0xc
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x10070502
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10070508
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
mov dword [esp + 0x2c], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10070570
jg 0x1007051f
test esi, esi
je 0x10070570
test ecx, ecx
jl 0x1007056a
jg 0x10070529
test eax, eax
je 0x1007056a
cmp edi, ecx
jg 0x1007053d
jl 0x10070533
cmp esi, eax
jae 0x1007053d
mov eax, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0x28]
push eax
push ebp
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x10070574
mov ebp, dword [esp + 0x28]
jmp 0x1007057e
mov ebp, dword [esp + 0x28]
test edi, edi
jl 0x10070598
jg 0x1007057e
test esi, esi
je 0x10070598
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10070598
push eax
push esi
push 1
push ebp
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 + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0xc