joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016ac3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
jmp 0x14001f0b0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x14007e7c9]
call fcn.140016b68
mov dword [rbp + 4], 0
mov r9, qword [rbp + 0x4a8]
mov r8, qword [rbp + 0x4a0]
mov rdx, qword [rbp + 0x498]
mov rcx, qword [rbp + 0x490]
call fcn.1400167f3
test eax, eax
je 0x14001f13e
mov eax, 1
jmp 0x14001f254
mov rcx, qword [rbp + 0x490]
call fcn.1400162a3
add rax, 0x108
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
shl rax, 1
mov rcx, rax
call fcn.140016695
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14001f175
xor eax, eax
jmp 0x14001f254
mov rdx, qword [rbp + 0x490]
mov rcx, qword [rbp + 0x68]
call fcn.1400161f9
mov r8, qword [rbp + 0x28]
lea rdx, [0x1400464ec]
mov rcx, qword [rbp + 0x68]
call fcn.140016983
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
je 0x14001f248
mov eax, dword [rbp + 0x90]
and eax, 0x10
test eax, eax
je 0x14001f225
mov eax, 2
imul rax, rax, 0
movzx eax, word [rbp + rax + 0xbc]
cmp eax, 0x2e
je 0x14001f225
mov rdx, qword [rbp + 0x490]
mov rcx, qword [rbp + 0x68]
call fcn.1400161f9
lea rdx, [rbp + 0xbc]
mov rcx, qword [rbp + 0x68]
call fcn.140016af0
mov r9, qword [rbp + 0x4a8]
mov r8, qword [rbp + 0x4a0]
mov rdx, qword [rbp + 0x498]
mov rcx, qword [rbp + 0x68]
call fcn.140016ac3
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14001f225
jmp 0x14001f23e
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001f1b9
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x68]
call fcn.140016c1c
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140046360]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret
Function at 0x140016b95
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140036fc0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x188]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0x1000
mov dword [rbp + 0x64], 0
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.140016695
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140037036
xor eax, eax
jmp 0x1400370a6
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, dword [rbp + 0x160]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x140037088
mov rcx, qword [rbp + 8]
call fcn.140016c1c
mov eax, dword [rbp + 0x24]
shl eax, 1
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0x20000000
jbe 0x140037078
xor eax, eax
jmp 0x1400370a6
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.140016695
mov qword [rbp + 8], rax
jmp 0x140037036
cmp dword [rbp + 0x44], 0
jl 0x140037094
mov rax, qword [rbp + 8]
jmp 0x1400370a6
cmp qword [rbp + 8], 0
je 0x1400370a4
mov rcx, qword [rbp + 8]
call fcn.140016c1c
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140061810]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140016c0d
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
jmp 0x140027f10
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4f8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0xc6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x518]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x14007edd2]
call fcn.140016b68
mov dword [rbp + 0x44], 0
mov dword [rbp + 0xa4], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
mov rdx, qword [rbp + 0x4b8]
mov rcx, qword [rbp + 0x4b0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140027fa3
jmp 0x14002811b
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140028006
jmp 0x14002811b
cmp dword [rbp + 0x44], 0
jne 0x140028011
jmp 0x14002811b
mov edx, 0x20a
lea rcx, [rbp + 0xd0]
call fcn.140016825
mov dword [rbp + 0x24], 0
jmp 0x140028033
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0x24], eax
jae 0x140028111
mov dword [rbp + 0x84], 0
mov dword [rbp + 0x64], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
lea r8, [rbp + 0xd0]
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14002810c
cmp dword [rbp + 0x84], 3
jne 0x1400280d7
mov rdx, qword [rbp + 0x4c0]
lea rcx, [rbp + 0xd0]
call fcn.140016bb8
test rax, rax
je 0x1400280d7
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400280d7
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, 2
imul rax, rax, 0
mov qword [rbp + 0x478], rax
cmp qword [rbp + 0x478], 0x20a
jae 0x1400280f6
jmp 0x1400280fb
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x478]
mov word [rbp + rcx + 0xd0], ax
jmp 0x14002802b
xor eax, eax
test eax, eax
jne 0x140027f74
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0xa4]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x14004dee0]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x498]
pop rdi
pop rbp
ret
Function at 0x140016c2b
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
jmp 0x14003aa10
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140075340]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x14007fb67]
call fcn.140016b68
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x260]
bts eax, 0x1a
or eax, 0x20
mov dword [rbp + 0x24], eax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
cmp qword [rbp + 0x270], 0
je 0x14003aaa7
mov rax, qword [rbp + 0x270]
mov qword [rax], 0
mov edx, 0x18
lea rcx, [rbp + 0x138]
call fcn.140016825
mov edx, 0x70
lea rcx, [rbp + 0xb0]
call fcn.140016825
mov rcx, qword [rbp + 0x250]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
call fcn.140016695
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x14003ac9f
mov rdx, qword [rbp + 0x250]
mov rcx, qword [rbp + 0x68]
call fcn.1400161f9
mov dword [rbp + 0xb0], 0x70
mov qword [rbp + 0x88], 0x30
cmp qword [rbp + 0x88], 0x400
jbe 0x14003ab33
jmp 0x14003ac96
mov rcx, qword [rbp + 0x88]
call fcn.140016695
mov qword [rbp + 0x118], rax
cmp qword [rbp + 0x118], 0
je 0x14003ac87
lea r9, [rbp + 0x88]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x14003ac7b
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x240]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14003ac64
mov dword [rbp + 0xec], 1
movzx eax, word [rbp + 0x268]
mov word [rbp + 0xf0], ax
mov eax, dword [rbp + 0x24]
bts eax, 0x13
lea rcx, [rbp + 0x138]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp + 0x258]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x248]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14003ac64
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x270], 0
je 0x14003ac57
mov rax, qword [rbp + 0x270]
mov rcx, qword [rbp + 0x140]
mov qword [rax], rcx
jmp 0x14003ac64
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x118], 0
je 0x14003ac7b
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0x118]
call fcn.140016c1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14003ab21
mov rcx, qword [rbp + 0x68]
call fcn.140016c1c
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140062f10]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x140003600
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
xor esi, esi
mov edi, esi
mov dword [rsp + 0x70], esi
nop word [rax + rax]
mov rdx, qword [rbx]
cmp qword [rdx], 0
je 0x140003620
cmp byte [0x1401fb594], 0
je 0x140003620
mov rax, qword [rbx + 8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
mov ecx, 0x10
call fcn.140097a70
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rax], xmm0
mov qword [rsp + 0x70], rax
or edi, 1
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140003b10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400036e2
cmp dword [rsp + 0x38], 0
je 0x1400036d6
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400036d6
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x70], 1
lea rcx, [rsp + 0x70]
call fcn.140003800
nop
cmp dword [rsp + 0x38], 0
je 0x140003620
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140003ca0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140003d01
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140003cc0
mov ecx, dword [r9]
jmp 0x140003de8
cmp ecx, 0x4e0
jb 0x140003de8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003d20
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003d70
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x1400059c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401fa010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0xf
mov ecx, 0x30
call fcn.140097a70
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], 0x22
mov qword [rbp - 0x18], 0x2f
movups xmm0, xmmword [str.SystemCurrentControlSetServices_]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14009d010]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x14009d020]
mov word [rax + 0x20], cx
mov byte [rax + 0x22], 0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140005a4d
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.14000ab10
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140005b62
mov byte [rbp - 0x40], 1
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005b62
mov byte [rbp - 0x3f], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x3f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005b62
mov byte [rbp - 0x3e], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x3e]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005b62
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140005b2a
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140005b62
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x140005b64
xor bl, bl
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140005ba2
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005b9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005b9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140097ab4
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140097a50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140009a70
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 0x140009a98
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 0x140009abe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140009ac0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140009b19
test ecx, ecx
jle 0x140009af9
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 0x140009b19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140009b19
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 0x140009b40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140009b71
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140009b8f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009bab
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009bad
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009be9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140009c7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140009c24
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 0x140009c5e
nop dword [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 0x140009c7e
cmp rbx, rax
ja 0x140009c30
test rbx, rbx
je 0x140009c7e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000a0c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401fa010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000a0ed
xor eax, eax
jmp 0x14000a259
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a127
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000a127
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 0x14000a259
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000a24c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a16a
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 0x14000a195
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 0x14000a251
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x14000a204
sub eax, 1
je 0x14000a204
cmp eax, 2
jne 0x14000a24c
movsx ecx, byte [rsp + 0x40]
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 0x14000a251
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000a232
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 0x14000a24c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000a251
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140097a50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000b170
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401fa010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000b243
cmp byte [rcx + 0x71], 0
je 0x14000b243
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000b23f
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 0x14000b204
sub eax, 1
je 0x14000b208
cmp eax, 2
jne 0x14000b23f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140097a50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000b236
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 0x14000b23f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000b1ec
xor al, al
jmp 0x14000b1ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140097a50
add rsp, 0x60
pop rbx
ret