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

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400da010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x1400afc46
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x1400afc36
cmp byte [rax], cl
jne 0x1400afc46
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x1400afc27
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1400afda4
cmp byte [r8 + 1], dl
je 0x1400afda4
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1400afc82
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1400afcaa
sub dl, 0x61
cmp dl, 0x19
ja 0x1400afc9c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1400afcaa
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1400afc65
jmp 0x1400afcad
inc r9
cmp r8, r9
jae 0x1400afcdf
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x1400afcd4
bt rdx, rax
jb 0x1400afcda
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x1400afcc0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.14000c120
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1400afd18
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x1400afd10
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1400afd96
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1400afd33
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x1400afd49
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1400afd84
movsd xmm2, qword [0x1400cbdf0]
cmp al, 0x39
ja 0x1400afd84
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1400afd60
cmp r9b, 0x2d
jne 0x1400afd9f
xorps xmm1, xmmword [0x1400cc1e0]
movaps xmm0, xmm1
jmp 0x1400afda7
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1400afda7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400afe50
add rsp, 0x90
pop rbx
ret

Function at 0x1400b0b1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b0b66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b0b66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b0b66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b0b66
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b0b66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b0b68
xor al, al
add rsp, 0x28
ret
Function at 0x1400011ea
Capabilities:
Write file on windows

Disassembly:
jmp 0x140012240
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14001227a
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.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 0x140012368
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x140012310
cmp qword [rsp + 0x28], 0
jle 0x140012310
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x1400122ba
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14000210d
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140012358
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140012358
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.ucrtbased.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 + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x1400015d7
Capabilities:
Read file on windows

Disassembly:
jmp 0x140012850
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 8]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ucrtbased.dll_fread]
add rsp, 0x20
pop rdi
ret

Function at 0x140001a32
Capabilities:
Terminate process

Disassembly:
jmp 0x1400434c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140001cd0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140043ff0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140044010
xor al, al
jmp 0x140044091
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140044023
xor al, al
jmp 0x140044091
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14004404d
xor al, al
jmp 0x140044091
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140044061
xor al, al
jmp 0x140044091
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140044073
xor al, al
jmp 0x140044091
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14004408f
xor al, al
jmp 0x140044091
mov al, 1
add rsp, 0x38
ret
Function at 0x14000200e
Capabilities:
Read file on windows

Disassembly:
jmp 0x140011f60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x90], 0
jg 0x140011f9f
xor eax, eax
jmp 0x140012187
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140011fd1
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x140012187
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140012082
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1400010f0
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000210d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.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 0x140012177
mov rcx, qword [rsp + 0x80]
call fcn.14000223e
mov qword [rsp + 0x60], 0xfff
cmp qword [rsp + 0x28], 0xfff
jbe 0x140012138
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.ucrtbased.dll_fread]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x68], 0xfff
je 0x140012133
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x140012187
jmp 0x1400120ae
cmp qword [rsp + 0x28], 0
jbe 0x140012177
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004f880]
call fcn.140001f2d
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1400021e4
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000e430
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x140062b28]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
je 0x14000e487
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000e48e
mov al, 1
jmp 0x14000e60e
call fcn.140001523
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0xb0], rcx
mov edx, eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xb0]
call qword [rax + 0x18]
mov dword [rsp + 0xa8], eax
call fcn.140001523
mov dword [rsp + 0xac], eax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xac]
call fcn.140001f50
movzx eax, al
test eax, eax
je 0x14000e4f1
xor al, al
jmp 0x14000e60e
mov qword [rsp + 0x30], 0x20
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x74
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x48]
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.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 + 0xb8], eax
cmp dword [rsp + 0xb8], 0
je 0x14000e563
cmp dword [rsp + 0xb8], 1
je 0x14000e56f
cmp dword [rsp + 0xb8], 3
je 0x14000e5fc
jmp 0x14000e60c
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jbe 0x14000e5ca
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x98]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rsp + 0x98], rax
je 0x14000e5ca
xor al, al
jmp 0x14000e60e
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000e5e7
mov dword [rsp + 0xbc], 1
jmp 0x14000e5f2
mov dword [rsp + 0xbc], 0
movzx eax, byte [rsp + 0xbc]
jmp 0x14000e60e
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000e60e
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004fb60]
call fcn.140001f2d
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400018e8
add rsp, 0xd0
pop rdi
ret
Function at 0x14000e430
Capabilities:
Write file on windows

Disassembly:
jmp 0x14000e430
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x30]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x140062b28]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
je 0x14000e487
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000e48e
mov al, 1
jmp 0x14000e60e
call fcn.140001523
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0xb0], rcx
mov edx, eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xb0]
call qword [rax + 0x18]
mov dword [rsp + 0xa8], eax
call fcn.140001523
mov dword [rsp + 0xac], eax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xac]
call fcn.140001f50
movzx eax, al
test eax, eax
je 0x14000e4f1
xor al, al
jmp 0x14000e60e
mov qword [rsp + 0x30], 0x20
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x74
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x48]
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.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 + 0xb8], eax
cmp dword [rsp + 0xb8], 0
je 0x14000e563
cmp dword [rsp + 0xb8], 1
je 0x14000e56f
cmp dword [rsp + 0xb8], 3
je 0x14000e5fc
jmp 0x14000e60c
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jbe 0x14000e5ca
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x98]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rsp + 0x98], rax
je 0x14000e5ca
xor al, al
jmp 0x14000e60e
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000e5e7
mov dword [rsp + 0xbc], 1
jmp 0x14000e5f2
mov dword [rsp + 0xbc], 0
movzx eax, byte [rsp + 0xbc]
jmp 0x14000e60e
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000e60e
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004fb60]
call fcn.140001f2d
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400018e8
add rsp, 0xd0
pop rdi
ret
Function at 0x140011f60
Capabilities:
Read file on windows

Disassembly:
jmp 0x140011f60
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
cmp qword [rsp + 0x90], 0
jg 0x140011f9f
xor eax, eax
jmp 0x140012187
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140011fd1
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x140012187
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140012082
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.1400010f0
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000210d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140D.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 0x140012177
mov rcx, qword [rsp + 0x80]
call fcn.14000223e
mov qword [rsp + 0x60], 0xfff
cmp qword [rsp + 0x28], 0xfff
jbe 0x140012138
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.ucrtbased.dll_fread]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x68], 0xfff
je 0x140012133
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
jmp 0x140012187
jmp 0x1400120ae
cmp qword [rsp + 0x28], 0
jbe 0x140012177
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004f880]
call fcn.140001f2d
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140012240
Capabilities:
Write file on windows

Disassembly:
jmp 0x140012240
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14001227a
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.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 0x140012368
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x50], 0
jle 0x140012310
cmp qword [rsp + 0x28], 0
jle 0x140012310
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x50], rax
jge 0x1400122ba
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14000210d
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140012358
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140012358
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.ucrtbased.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 + 0x20]
sub rcx, rax
mov rax, rcx
add rsp, 0x30
pop rdi
ret

Function at 0x140012850
Capabilities:
Read file on windows

Disassembly:
jmp 0x140012850
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 8]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ucrtbased.dll_fread]
add rsp, 0x20
pop rdi
ret
Function at 0x140001510
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x40
mov r13, rcx
mov rbp, r8
mov ecx, 0x39
mov r12, rdx
call fcn.1400a6bc8
mov rbx, rax
test rax, rax
je 0x14000171c
xor eax, eax
mov qword [rsp + 0x70], rsi
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea ecx, [rax + 0x24]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rsp + 0x78], r14
mov byte [rbx + 0x38], al
mov qword [rsp + 0x80], r15
call fcn.1400a6bc8
xor r15d, r15d
lea rsi, [rbx + 8]
mov r14, rax
test rax, rax
je 0x140001669
xor eax, eax
lea edx, [r15 + 1]
mov qword [r14], rax
xor r9d, r9d
mov qword [r14 + 8], rax
xor r8d, r8d
mov qword [r14 + 0x10], rax
xor ecx, ecx
mov qword [r14 + 0x18], rax
mov dword [r14 + 0x20], eax
mov rax, qword [rbx + 0x20]
mov qword [rsi], r14
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14], rax
test rax, rax
jne 0x1400015cc
mov edi, 0x3f0
jmp 0x14000166e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14]
mov r9, rbx
mov dword [rsp + 0x30], r15d
mov r8, rax
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140001601
mov edi, 0x3f0
jmp 0x14000166e
mov ecx, 0x10
mov edi, r15d
call fcn.1400a6bc8
mov r15, rax
test rax, rax
jne 0x14000161d
mov edi, 0x708
jmp 0x140001660
lea rax, [0x140001890]
mov qword [r15 + 8], r14
mov qword [r15], rax
lea r8, [0x140001eb0]
xor eax, eax
mov r9, r15
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 8], rax
test rax, rax
jne 0x140001660
mov rcx, r15
call fcn.1400a6bb4
mov edi, 0x3eb
test edi, edi
je 0x1400016b5
xor r15d, r15d
jmp 0x14000166e
mov edi, 0x708
mov rax, qword [rsi]
test rax, rax
je 0x14000167d
mov dword [rax + 0x20], 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001697
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r15
test r14, r14
je 0x1400016b5
mov rcx, qword [r14]
test rcx, rcx
je 0x1400016ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14], r15
mov rcx, r14
call fcn.1400a6bb4
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
test edi, edi
jne 0x1400016e5
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r12
mov qword [rbp], rbx
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rax, qword [rsi]
test rax, rax
je 0x1400016f4
mov dword [rax + 0x20], 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001712
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov rcx, rbx
call fcn.1400a6bb4
jmp 0x1400016d2
mov eax, 0x708
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret