joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400118b6
Capabilities:
Add user account
Add user account to group

Disassembly:
jmp 0x140019f00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140053038]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x14005d132]
call fcn.140011b36
mov dword [rbp + 0x54], 1
mov dword [rbp + 0x74], 0
cmp qword [rbp + 0x1d0], 0
je 0x140019f70
cmp qword [rbp + 0x1d8], 0
jne 0x140019f77
xor al, al
jmp 0x14001a0d1
call fcn.140011848
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x140019fa2
lea rcx, str.Fail_To_Get_Administrators_Group_n
call fcn.140011569
xor al, al
jmp 0x14001a0d1
lea rcx, str.Get_Administrator_Group_Successfully_n
call fcn.140011569
lea rcx, str._nAdministrator_Group_
call fcn.14001105a
mov rcx, qword [rbp + 0xb8]
call fcn.14001105a
lea rcx, [0x140037cbc]
call fcn.14001105a
mov rax, qword [rbp + 0x1d0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x1d8]
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x1c], 1
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x30], 0x10001
mov qword [rbp + 0x38], 0
lea r9, [rbp + 0x74]
lea r8, [rbp + 8]
mov edx, dword [rbp + 0x54]
xor ecx, ecx
call fcn.14001171c
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x14001a042
lea rcx, str.Fail_To_Add_User_n
call fcn.140011569
xor al, al
jmp 0x14001a0d1
mov rax, qword [rbp + 0x1d0]
mov qword [rbp + 0xd8], rax
mov dword [rsp + 0x20], 1
lea r9, [rbp + 0xd8]
mov r8d, 3
mov rdx, qword [rbp + 0xb8]
xor ecx, ecx
call fcn.1400111d6
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x14001a094
mov edx, dword [rbp + 0x94]
lea rcx, [0x140037cd8]
call fcn.140011569
cmp qword [rbp + 0xb8], 0
je 0x14001a0ab
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rbp + 0x94], 0
jne 0x14001a0c0
mov dword [rbp + 0x1a4], 1
jmp 0x14001a0ca
mov dword [rbp + 0x1a4], 0
movzx eax, byte [rbp + 0x1a4]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400367d0]
call fcn.140011979
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.140011596
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140011b9a
Capabilities:
Create thread

Disassembly:
jmp 0x140020080
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140053038]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x14005d132]
call fcn.140011b36
mov qword [rbp + 8], 0
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
lea r8, [0x140011677]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
mov rdx, qword [rbp + 0x30]
lea rcx, str._PIPESERVER__Creating_a_thread_launching_a_server_pipe_listening_on_Named_Pipe__s._r_n
call fcn.14001105a
mov eax, 1
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140036c30]
call fcn.140011979
mov eax, edi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.140011596
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140054a70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov qword [rsp + 0x58], rdx
xor edi, edi
mov rax, qword [0x1402bc368]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.14005d3f0
nop
lea ecx, [rdi + 0x28]
call fcn.140152800
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rax + 8], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rax + 0x18], xmm1
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], dil
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14006f870]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140054b7e
lea rcx, [rsp + 0x38]
call fcn.14005f2e0
cmp dword [rsp + 0x68], edi
je 0x140054b72
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140054b72
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov rcx, rbx
call fcn.14005f2e0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401526c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x68], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x1400597e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], edx
mov ecx, reloc.WS2_32.dll_recv
call fcn.140152800
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14006f8b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140059882
cmp dword [rsp + 0x48], 0
je 0x140059876
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140059876
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x48], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x14007f970
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x1a0
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rdx
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x80]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14007f9d6
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14006f020
mov dword [rsp + 0x30], 3
lea rax, [0x140204da4]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 6
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.14006f020
mov dword [rsp + 0x30], 7
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140048990
nop
lea rcx, [rsp + 0x58]
call fcn.14005f270
mov rax, rbx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x1a0
pop rbx
ret

Function at 0x14007fa60
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
mov qword [rsp + 0x80], rdx
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x14007fa93
mov rcx, qword [rdx]
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x70], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, str.explorer_
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], send
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400628e0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [rsp + 0x48]
call fcn.14005f2e0
nop
mov rcx, rbx
call fcn.14005f2e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x90
pop rbx
ret

Function at 0x140080c00
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
call fcn.140049100
mov rdx, rax
call fcn.14007fcb0
test al, al
je 0x140080c61
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140048b90
cmp qword [rax + 0x18], 0x10
jb 0x140080c4d
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, [rsp + 0x48]
call fcn.14005f2e0
nop
mov rcx, rbx
call fcn.14005f270
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x80
pop rbx
ret
Function at 0x140081940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x1400819d5
test r8, r8
jle 0x1400819cd
nop word [rax + rax]
mov rcx, rdi
call fcn.1400836f0
test rax, rax
jle 0x1400819ae
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov rax, qword [rdi + 0x40]
mov r8, rsi
mov rcx, qword [rax]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x1400819c5
mov rax, qword [rdi]
movzx edx, byte [rbp]
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400819cd
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140081970
sub r14, rbx
mov rax, r14
jmp 0x140081a54
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x1400819ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400819f0
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x140081a49
test ecx, ecx
jle 0x140081a29
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x140081a49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140081a49
mov r8, r14
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140081a70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140081a92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140081b09
mov rdi, r14
mov rcx, rbx
call fcn.140083710
test rax, rax
jle 0x140081ae4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140081af9
mov rax, qword [rbx]
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140081b01
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140081aa6
sub r14, rdi
jmp 0x140081bf1
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140081b20
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140081b22
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140081b54
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140081bee
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140081b8f
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140081bce
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140081bee
cmp rbp, rax
ja 0x140081ba0
test rbp, rbp
je 0x140081bee
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140082000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140082030
xor eax, eax
jmp 0x1400821c2
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14008206a
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14008206a
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400821c2
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rsi
je 0x1400821b5
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400820ad
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400820e8
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov edx, 1
mov byte [rsp + 0x58], dil
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
mov ecx, 0xffffffff
cmove ecx, edi
mov eax, ecx
jmp 0x1400821ba
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + gethostname]
test eax, eax
je 0x14008216d
sub eax, 1
je 0x14008216d
cmp eax, 2
jne 0x1400821b5
movzx eax, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, edx
mov byte [rsp + 0x58], al
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
mov ecx, 0xffffffff
cmove ecx, edi
mov eax, ecx
jmp 0x1400821ba
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
sub rsi, rax
je 0x14008219b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x60]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400821b5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400821ba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401526c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x140082850
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140082878
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp 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]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14008289e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400828a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400828f9
test ecx, ecx
jle 0x1400828d9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400828f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400828f9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140082920
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140082942
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140082958
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp 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]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140082974
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140082976
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400829b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140082a4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400829ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140082a2e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140082a4e
cmp rbx, rax
ja 0x140082a00
test rbx, rbx
je 0x140082a4e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140082d00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140082d2d
xor eax, eax
jmp 0x140082e99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140082d67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140082d67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140082e99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140082e8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140082daa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140082dd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140082e91
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140082e44
sub eax, 1
je 0x140082e44
cmp eax, 2
jne 0x140082e8c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140082e91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140082e72
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140082e8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140082e91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401526c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140083400
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400834d3
cmp byte [rcx + 0x71], 0
je 0x1400834d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400834cf
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140083494
sub eax, 1
je 0x140083498
cmp eax, 2
jne 0x1400834cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400834c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400834cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14008347c
xor al, al
jmp 0x14008347c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x60
pop rbx
ret

Function at 0x140083730
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402ba030]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140083803
cmp byte [rcx + 0x71], 0
je 0x140083803
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400837ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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]
test eax, eax
je 0x1400837c4
sub eax, 1
je 0x1400837c8
cmp eax, 2
jne 0x1400837ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400837f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400837ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400837ac
xor al, al
jmp 0x1400837ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401526c0
add rsp, 0x60
pop rbx
ret