joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
dec eax
push ebp
mov ebp, edx
mov dword [esp + 0x10], ebp
lea eax, [edx + eax*2]
mov dword [esp + 0x14], eax
cmp edx, eax
mov eax, dword [esp + 0x24]
jae 0x10015904
push esi
mov esi, dword [esp + 0x2c]
push ebx
push edi
nop dword [eax]
test esi, esi
je 0x1001576c
cmp eax, esi
jae 0x100158fd
mov cl, byte [eax]
mov byte [esp + 0x2c], cl
test cl, cl
je 0x100158fd
movzx ecx, cl
xor ebx, ebx
shr ecx, 3
mov edx, esi
movsx ecx, byte [ecx + 0x1007a290]
test ecx, ecx
mov dword [esp + 0x18], ecx
sete bl
add ebx, ecx
test esi, esi
jne 0x1001579d
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [esp + 0x2c]
mov byte [esp + 0x13], cl
cmp esi, edx
jae 0x100157b8
mov ch, byte [esi]
mov byte [esp + 0x11], ch
jmp 0x100157bd
mov byte [esp + 0x11], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x100157cc
mov ch, byte [esi]
mov byte [esp + 0x2c], ch
jmp 0x100157d1
mov byte [esp + 0x2c], 0
lea esi, [eax + 3]
cmp esi, edx
jae 0x100157dc
mov ch, byte [esi]
jmp 0x100157de
xor ch, ch
mov ebp, dword [esp + 0x18]
movzx esi, byte [esp + 0x11]
movzx edx, byte [esp + 0x2c]
movzx edi, ch
mov ebp, dword [ebp*4 + 0x1007a2b0]
mov byte [esp + 0x12], ch
movzx ecx, cl
and ebp, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [esp + 0x14], ebp
shl dword [esp + 0x14], 6
and esi, 0xc0
or dword [esp + 0x14], ecx
mov ecx, edx
shl dword [esp + 0x14], 6
and ecx, 0x3f
or dword [esp + 0x14], ecx
and edx, 0xc0
shl dword [esp + 0x14], 6
mov ecx, edi
mov ebp, dword [esp + 0x14]
and ecx, 0x3f
or ebp, ecx
shr edi, 2
mov ecx, dword [esp + 0x18]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x1007a2d8]
shr ebp, cl
mov esi, ebp
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
cmp esi, dword [ebp*4 + 0x1007a2c4]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [ebp*4 + 0x1007a2ec]
mov ebp, dword [esp + 0x1c]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x100158e2
xor edx, edx
mov esi, 0xfffd
cmp byte [esp + 0x12], dl
setne dl
xor ecx, ecx
cmp byte [esp + 0x2c], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x11], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
mov word [ebp], si
add eax, ebx
mov esi, dword [esp + 0x34]
add ebp, 2
mov dword [esp + 0x1c], ebp
cmp ebp, dword [esp + 0x20]
jb 0x10015760
mov edx, dword [esp + 0x28]
pop edi
pop ebx
pop esi
xor ecx, ecx
mov word [ebp], cx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10015914
mov dword [ecx], eax
sub ebp, edx
sar ebp, 1
mov eax, ebp
pop ebp
add esp, 0x14
ret
Function at 0x10018030
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 0x100180aa
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x10018064
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.100286a0
push dword [esp + 0x14]
mov ecx, esi
mov dword [esi], 0
push dword [esp + 0x14]
call fcn.10028140
mov edx, dword [esi]
mov ecx, 0x1009370c
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.10028140
pop edi
pop esi
ret
Function at 0x10021440
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x10093708]
push esi
mov esi, dword [esp + 8]
mov dword [eax + 0x5b24], 0
test esi, esi
je 0x1002149a
lea eax, [esp + 8]
mov dword [esp + 8], 0
push edi
push eax
call fcn.100214a0
push 0x1007fc3c
push esi
mov edi, eax
call fcn.10014060
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10021499
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 0x10026920
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [0x10093708]
cmp byte [esi + 0x5b20], 0
jne 0x10026a59
cmp dword [esi + 0x5b40], 0
je 0x10026955
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 0x10026a52
push edi
push 0x1007fc38
push eax
call fcn.10014060
mov edi, eax
add esp, 8
test edi, edi
je 0x10026a51
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 0x10026a45
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 0x10026a45
push edi
call ebx
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x10026a45
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 0x10026a45
mov eax, dword [0x10093708]
test eax, eax
je 0x100269d9
inc dword [eax + 0xb0]
push dword [0x10093710]
push ebx
call dword [0x1009100c]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10026a45
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 0x10026a0d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x10026a24
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x10026a24
push ebx
push ebp
call fcn.100179d0
add esp, 8
mov eax, dword [0x10093708]
test eax, eax
je 0x10026a33
dec dword [eax + 0xb0]
push dword [0x10093710]
push ebp
call dword [0x10091010]
add esp, 8
jmp 0x10026a4f
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 0x10026aa8
subss xmm0, dword [esi + 0x18]
comiss xmm1, xmm0
movss dword [esi + 0x5b24], xmm0
jb 0x10026aa8
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10026a97
push eax
call fcn.10021440
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 0x1002cb50
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, 8
ja 0x1002cc79
test byte [esi], 2
jne 0x1002cc79
cmp dword [esi + 0x468], 0xffffffff
jne 0x1002cb8b
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.1002caf0
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 0x1002cee0
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 0x1002cf0e
cmp dword [edi + 0x20], 0
jne 0x1002cf0e
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.1002d5c0
push edi
call fcn.1002d7e0
mov eax, dword [edi + 0x48]
add esp, 8
xor ebp, ebp
test eax, eax
jle 0x1002d08f
xor ecx, ecx
mov dword [esp + 0x14], ecx
test ebp, ebp
js 0x1002cf38
cmp ebp, eax
jl 0x1002cf50
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 0x1002d07c
cmp dword [ebx + 8], 0
je 0x1002d07c
cmp dword [eax + 0x30], edi
je 0x1002cf83
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 0x1002cf8f
cmp dword [edi + 0x28], 0
jg 0x1002cfa3
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 0x1002cfc2
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.1002a360
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 0x1002cf30
mov esi, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x1002d0b4
nop dword [eax]
mov ecx, dword [esi]
cmp byte [ecx + 0x48], 0
je 0x1002d0ad
call fcn.1002ba70
add esi, 4
cmp esi, ebx
jne 0x1002d0a0
mov byte [edi + 0x18], 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10032830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x10032857
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.10018240
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1003287c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.10018240
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100328a1
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.10018240
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 0x100328e2
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.10018240
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x10032907
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.10018240
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1003292c
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.10018240
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1002c840
Function at 0x1003c620
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push esi
call fcn.10012c00
test eax, eax
je 0x1003c634
call fcn.100130a0
mov esi, dword [eax + 0x68]
jmp 0x1003c636
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 0x1003c659
mov dword [esi], eax
pop esi
ret
Function at 0x10049c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
or eax, 2
mov dword [esp + 0xc], eax
jmp fcn.10049ca0
Function at 0x1005cc10
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 0x1005ccf0
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 0x1005fdf0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x10078465
push 0x80
push 0x10093820
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0x7f
push 0x10093820
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov eax, 0x10093820
ret
Function at 0x10060340
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 0x10060379
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 0x10060393
mov esi, 0xfffffffd
jmp 0x1006040b
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 0x1006038c
jne 0x100603a9
xor esi, esi
jmp 0x1006040b
push edi
lea eax, [esi + 1]
push 0x1008c6b0
push eax
call fcn.10074c65
mov edi, eax
add esp, 8
test edi, edi
jne 0x100603c6
lea esi, [eax - 2]
jmp 0x1006040a
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 0x100603f4
push edi
call fcn.10074c60
mov esi, 0xfffffffd
jmp 0x10060407
mov ecx, dword [esp + 0x10]
push eax
push edi
call fcn.100601c0
push edi
mov esi, eax
call fcn.10074c60
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 0x100645a0
Capabilities:
Terminate process

Disassembly:
cmp byte [0x10093bc0], 0
push esi
mov esi, ecx
je 0x100645c8
push str.crash_direct3d__exiting.
call fcn.1005c850
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [0x10093bbc]
test ecx, ecx
je 0x100645e2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [0x10093bbc], 0
mov byte [0x10093bc0], 1
mov ecx, dword [esi + 8]
pop esi
test ecx, ecx
je 0x100645fa
push dword [esp + 4]
call fcn.10068f70
call fcn.1006b800
ret 4
Function at 0x1006c410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x10092c4c]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1006c4d2
cmp byte [esi + 0x3d], 0
je 0x1006c4d2
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1006c4bf
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 0x1006c483
sub eax, 1
je 0x1006c487
sub eax, 2
jne 0x1006c4bf
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10074697
add esp, 0x28
ret
mov byte [esi + 0x3d], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x1006c4a7
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 0x1006c4bf
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10074697
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10074697
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.10074697
add esp, 0x28
ret
Function at 0x1006ca10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x10092c4c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1006ca40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10074697
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1006ca71
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1006ca71
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.10074697
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1006cb7d
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1006ca9a
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 0x1006cacf
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.10074697
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 0x1006cb37
sub eax, 1
je 0x1006cb37
sub eax, 2
jne 0x1006cb7d
push dword [esi + 0x4c]
push dword [esp + 0x10]
call fcn.10069490
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.10074697
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x1006cb57
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 0x1006cb7d
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.10074697
add esp, 0x30
ret 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10074697
add esp, 0x30
ret 4
Function at 0x100710d0
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 0x100710f1
jl 0x100710e7
test esi, esi
jne 0x100710f1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10071109
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 0x10071152
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10071159
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 0x10071159
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x100711c6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10071183
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 0x100711b4
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 0x100711c6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10071190
test edi, edi
je 0x100711c6
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