joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a220
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
movzx eax, byte [0x1401d4db8]
test eax, eax
jne 0x14002a234
jmp 0x14002a482
mov dword [rsp + 0x24], 0x20
movss xmm0, dword [0x140107bc0]
call fcn.14004d8d0
xorps xmm2, xmm2
movss xmm1, dword [0x140107ed8]
lea rcx, [rsp + 0x28]
call fcn.14000cd40
xor edx, edx
mov rcx, rax
call fcn.14004d7c0
mov r8d, dword [rsp + 0x24]
xor edx, edx
lea rcx, str.Cheats_List
call fcn.1400486b0
movzx eax, byte [0x1401d4c4c]
test eax, eax
je 0x14002a2ae
movzx eax, byte [0x1401d4c54]
test eax, eax
jne 0x14002a2a2
mov ecx, dword [0x140160280]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14002a2ae
lea rcx, str.Aimbot__Toggle_
call fcn.14008b970
movzx edx, byte [0x1401d4d99]
lea rcx, [0x1400e1ff0]
call fcn.14002a0d0
movzx edx, byte [0x1401d4dac]
lea rcx, [0x1400e1ffc]
call fcn.14002a0d0
movzx edx, byte [0x1401d4d7d]
lea rcx, [0x1400e2008]
call fcn.14002a0d0
movzx edx, byte [0x1401d4c33]
lea rcx, str.Crosshair
call fcn.14002a0d0
movzx edx, byte [0x140160265]
lea rcx, str.Enemy_Sensor
call fcn.14002a0d0
movzx edx, byte [0x140112285]
lea rcx, [0x1400e2038]
call fcn.14002a0d0
movzx edx, byte [0x1401d4d7f]
lea rcx, str.External_Radar
call fcn.14002a0d0
movzx edx, byte [0x1401d4dab]
lea rcx, [0x1400e2050]
call fcn.14002a0d0
movzx edx, byte [0x1401d4dbc]
lea rcx, [0x1400e2060]
call fcn.14002a0d0
movss xmm0, dword [0x1401d4da4]
ucomiss xmm0, dword [0x140107ad4]
je 0x14002a376
lea rcx, str.Flash_Immunity
call fcn.14008b970
movzx edx, byte [0x1401d4db9]
lea rcx, [0x1400e2080]
call fcn.14002a0d0
cmp dword [0x14019cd0c], 0x5a
je 0x14002a39e
lea rcx, str.Fov_Changer
call fcn.14008b970
movzx edx, byte [0x1401d4c49]
lea rcx, [0x1400e20a0]
call fcn.14002a0d0
cmp dword [0x1401d4db4], 0
je 0x14002a3c1
mov byte [rsp + 0x20], 1
jmp 0x14002a3c6
mov byte [rsp + 0x20], 0
movzx edx, byte [rsp + 0x20]
lea rcx, str.HitSound
call fcn.14002a0d0
movzx edx, byte [0x1401d4dae]
lea rcx, str.Money_Service
call fcn.14002a0d0
movzx edx, byte [0x1401d4da0]
lea rcx, [0x1400e20d0]
call fcn.14002a0d0
movzx edx, byte [0x1401d4dad]
lea rcx, [0x1400e20e0]
call fcn.14002a0d0
movzx edx, byte [0x1401d4c4b]
lea rcx, [0x1400e20ec]
call fcn.14002a0d0
movzx edx, byte [0x1401d4dba]
lea rcx, [0x1400e20f0]
call fcn.14002a0d0
movzx edx, byte [0x1401d4d7c]
lea rcx, [0x1400e2100]
call fcn.14002a0d0
movzx eax, byte [0x1401d4c40]
test eax, eax
je 0x14002a47c
movzx eax, byte [0x1401d4c4a]
test eax, eax
jne 0x14002a470
mov ecx, dword [0x1401d4c58]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14002a47c
lea rcx, str.TriggerBot__Toggle_
call fcn.14008b970
call fcn.14004c100
nop
add rsp, 0x38
ret
Function at 0x14002a830
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
movzx eax, byte [0x1401d4dbc]
test eax, eax
jne 0x14002a844
jmp 0x14002a8f2
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14002a85e
jmp 0x14002a8f2
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14002a875
jmp 0x14002a8f2
movss xmm3, dword [0x140107eac]
mov r8d, 0x44
lea rdx, [0x1401d2d4a]
mov ecx, 0x41
call fcn.14002a150
movss xmm3, dword [0x140107eac]
mov r8d, 0x41
lea rdx, [0x1401d2d5c]
mov ecx, 0x44
call fcn.14002a150
movss xmm3, dword [0x140107eac]
mov r8d, 0x53
lea rdx, [0x1401d2d4b]
mov ecx, 0x57
call fcn.14002a150
movss xmm3, dword [0x140107eac]
mov r8d, 0x57
lea rdx, [0x1401d2d49]
mov ecx, 0x53
call fcn.14002a150
nop
add rsp, 0x28
ret

Function at 0x14002b300
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140112200]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, byte [0x1401d4dac]
test eax, eax
jne 0x14002b328
jmp 0x14002b3fa
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14002b33f
mov byte [rsp + 0x21], 1
jmp 0x14002b344
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x50]
call fcn.14000ea60
mov byte [rsp + 0x22], al
lea rdx, [rsp + 0x30]
lea rcx, [0x1401d51d0]
call fcn.14002cb60
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14002b3b0
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x14002b3b0
mov dword [rsp + 0x24], 0x11
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.14001f700
mov rcx, rax
call fcn.14001f720
mov edx, 0x10001
lea rcx, [0x1401d51d0]
call fcn.14002cb20
jmp 0x14002b3fa
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14002b3d5
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x14002b3d5
mov edx, pe_nt_image_headers64
lea rcx, [0x1401d51d0]
call fcn.14002cb20
jmp 0x14002b3fa
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14002b3fa
cmp dword [rsp + 0x30], 0x10001
jne 0x14002b3fa
mov edx, pe_nt_image_headers64
lea rcx, [0x1401d51d0]
call fcn.14002cb20
nop
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d6c40
add rsp, 0x48
ret
Function at 0x14002c560
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x4d0
lea rbp, [rsp + 0x20]
mov rax, qword [0x140112200]
xor rax, rbp
mov qword [rbp + 0x4a0], rax
mov dword [rbp + 0x60], 0x438
mov rax, qword [rbp + 0x4c0]
mov edx, dword [rax + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
call fcn.14002c4c0
mov dword [rbp + 0x18], eax
lea rax, [rbp + 0x90]
mov qword [rbp + 0x20], rax
cmp qword [rbp + 0x20], 0
jne 0x14002c5dd
mov qword [rbp + 0x30], 0
jmp 0x14002c67b
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x38], rax
mov qword [rbp + 8], 0xffffffffffffffff
inc qword [rbp + 8]
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 8]
cmp word [rax + rcx*2], 0
jne 0x14002c5ed
mov rax, qword [rbp + 8]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x14002c61c
mov qword [rbp + 0x28], 0
jmp 0x14002c673
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x40], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x14002c644
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1400d7e30
sub rsp, rax
lea rax, [rsp + 0x20]
mov r9d, dword [rbp + 0x18]
mov rcx, qword [rbp + 0x40]
mov r8d, ecx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call fcn.14002c4d0
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x4c8]
call fcn.14001d980
mov rcx, qword [rbp + 0x30]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x14002c6a1
inc rcx
test dl, dl
jne 0x14002c68e
xor eax, eax
jmp 0x14002c6a6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14002c6d1
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x4c8]
call fcn.1400098b0
mov rax, qword [rbp + 0x48]
jmp 0x14002c709
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14002c5be
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x50], 0
mov rcx, qword [rbp + 0x4c8]
call fcn.1400098b0
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x4a0]
xor rcx, rbp
call fcn.1400d6c40
lea rsp, [rbp + 0x4b0]
pop rbp
ret
Function at 0x14002d4b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x20]
mov rax, qword [0x140112200]
xor rax, rbp
mov qword [rbp + 0x290], rax
mov dword [rbp + 0x50], 0x238
xor edx, edx
mov ecx, 0xf
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
call fcn.14002c4c0
mov dword [rbp + 0x18], eax
lea rax, [rbp + 0x7c]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14002d522
mov qword [rbp + 0x38], 0
jmp 0x14002d5c0
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x40], rax
mov qword [rbp + 8], 0xffffffffffffffff
inc qword [rbp + 8]
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 8]
cmp word [rax + rcx*2], 0
jne 0x14002d532
mov rax, qword [rbp + 8]
inc eax
mov dword [rbp], eax
cmp dword [rbp], 0x3fffffff
jle 0x14002d561
mov qword [rbp + 0x30], 0
jmp 0x14002d5b8
movsxd rax, dword [rbp]
shl rax, 1
mov qword [rbp + 0x48], rax
movsxd rcx, dword [rbp]
shl rcx, 1
mov rdx, rcx
add rdx, 0xf
cmp rdx, rcx
ja 0x14002d589
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.1400d7e30
sub rsp, rax
lea rax, [rsp + 0x20]
mov r9d, dword [rbp + 0x18]
mov rcx, qword [rbp + 0x48]
mov r8d, ecx
mov rdx, qword [rbp + 0x28]
mov rcx, rax
call fcn.14002c4d0
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x38], rax
mov rcx, qword [rbp + 0x2b8]
call fcn.14001d980
mov rcx, qword [rbp + 0x38]
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x14002d5e6
inc rcx
test dl, dl
jne 0x14002d5d3
xor eax, eax
jmp 0x14002d5eb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14002d610
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x58]
mov dword [rbp + 0x1c], eax
mov rcx, qword [rbp + 0x2b8]
call fcn.1400098b0
mov eax, dword [rbp + 0x1c]
jmp 0x14002d646
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14002d506
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x20], 0
mov rcx, qword [rbp + 0x2b8]
call fcn.1400098b0
mov eax, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x290]
xor rcx, rbp
call fcn.1400d6c40
lea rsp, [rbp + 0x2a0]
pop rbp
ret
Function at 0x14002de00
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140112200]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140106fdc]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, 0xf8
lea rcx, [rsp + 0x60]
call fcn.140008e50
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14002bb50
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x60]
call fcn.14002ba70
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x60]
call fcn.14002b210
mov rax, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400d6c40
add rsp, 0x178
ret

Function at 0x14002e500
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, str._C_taskkill__F__IM_cs2.exe
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret

Function at 0x14002e540
Capabilities:
Execute command
Terminate process

Disassembly:
sub rsp, 0x28
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x28
ret
Function at 0x14002e980
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x140112200]
xor rax, rsp
mov qword [rsp + 0x120], rax
lea rcx, [0x1400e366c]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [rsp + 0x68], rax
movzx eax, byte [0x1401d2d5d]
test eax, eax
je 0x14002e9c3
call fcn.14002e560
jmp 0x14002eb18
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
lea rax, [rsp + 0x100]
lea rcx, str.OTPInputClass
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1c
rep movsb byte [rdi], byte [rsi]
lea rax, [0x14002eb40]
mov qword [rsp + 0x88], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0xc8
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
lea r8, str.Craft_verify
lea rdx, [rsp + 0x100]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x14002eaa6
xor eax, eax
jmp 0x14002eb1e
mov edx, 5
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, str.____________________________________Please_enter_code_from_telegram_bot
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001fcf0
mov qword [rsp + 0x70], rax
lea rdx, [0x140020190]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xd0]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14002eb18
lea rcx, [rsp + 0xd0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xd0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14002eae0
jmp 0x14002eb1c
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400d6c40
add rsp, 0x138
pop rdi
pop rsi
ret
Function at 0x14002f690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14002f6c9
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14002f7b7
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x14002f75f
cmp qword [rsp + 0x20], 0
jle 0x14002f75f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x14002f709
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14000a130
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x14002f7a7
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14002f7a7
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x14002f7c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140112200]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x14002f7f4
xor eax, eax
jmp 0x14002f9f0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14002f826
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14002f9f0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14002f8d7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000aa20
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000a130
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14002f9e0
mov rcx, qword [rsp + 0x80]
call fcn.140030880
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14002f98d
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14002f988
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14002f9f0
jmp 0x14002f903
cmp qword [rsp + 0x50], 0
jbe 0x14002f9e0
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400d6c40
add rsp, 0x78
ret
Function at 0x140030940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140112200]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14003097d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140030984
mov al, 1
jmp 0x140030adc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.14001ed10
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.14001ed10
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.14001ed70
movzx eax, al
test eax, eax
je 0x1400309d9
xor al, al
jmp 0x140030adc
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140030a49
cmp dword [rsp + 0x30], 1
je 0x140030a55
cmp dword [rsp + 0x30], 3
je 0x140030aca
jmp 0x140030ada
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140030aa1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x140030aa1
xor al, al
jmp 0x140030adc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140030abb
mov dword [rsp + 0x34], 1
jmp 0x140030ac3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140030adc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140030adc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400d6c40
add rsp, 0xa8
ret