joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006d84
Capabilities:
Get process image filename

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x20], 0
mov rcx, qword [r8]
sub rcx, 0x18
call fcn.140001e4c
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x20], 1
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006ec7
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x140006ebe
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14000425c
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rcx, rax
test rax, rax
je 0x140006e98
mov rax, qword [rsp + 0x28]
sub rcx, rax
sar rcx, 1
cmp ecx, 0xffffffff
je 0x140006e9d
lea r8d, [rcx + 1]
mov r9d, dword [rax - 0x10]
sub r9d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140003d54
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400041d8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006e98
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
mov rax, qword [rsp + 0x28]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006ebe
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x14001a700]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140017b80
add rsp, 0x260
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400091b4
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rdx
xor esi, esi
call fcn.140001680
mov rcx, rax
test rax, rax
je 0x140009332
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp + 0xc0]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140009301
lea rdi, [rbx + 0x30]
mov rdx, qword [rdi]
mov ecx, 1
sub ecx, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
or eax, ecx
jge 0x140009227
xor edx, edx
mov rcx, rdi
call fcn.140001ef4
mov rdx, qword [rdi]
lea rcx, [rsp + 0x60]
call fcn.14000425c
nop
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140009286
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
test eax, eax
je 0x14000927f
add rsi, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400092ac
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400092d4
mov rax, qword [rbx + 8]
jmp 0x1400092c9
cmp rbx, qword [rax + 0x10]
jne 0x1400092cf
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400092bc
mov rbx, rax
jmp 0x1400092ef
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400092ef
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400092e0
cmp rbx, qword [rbp + 0xc0]
jne 0x140009204
mov rax, qword [rsp + 0x78]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140009322
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x14001a700]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400014ec
int3
Function at 0x14000ad00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000ad96
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000ad70
lea rcx, [0x14001b420]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ad8f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000ad8f
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [0x14001a700]
jmp 0x14000ad7f
cmp dword [rdi + 8], 0
je 0x14000ad8f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 1
jmp 0x14000ad7f
cmp byte [0x140023b68], 0
jne 0x14000ade1
lea rcx, [0x14001b420]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000adcd
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140023b60], rax
jmp 0x14000add4
mov r10, qword [0x140023b60]
mov eax, 1
mov byte [0x140023b68], al
jmp 0x14000ade8
mov r10, qword [0x140023b60]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000ad79
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rax, r10
call qword [0x14001a700]
jmp 0x14000ad7f
Function at 0x14000b44c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000b4d0
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000b4d0
call fcn.14000aa2c
mov ebx, eax
jmp 0x14000b5db
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000b4f1
call fcn.14000aa2c
jmp 0x14000b5ca
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000b4e7
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000b52c
mov ebx, 0x8007000e
jmp 0x14000b5cc
mov ecx, eax
test eax, eax
je 0x14000b55e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000b613
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000b55e
lea rcx, [rsp + 0x60]
call fcn.14000d9b8
jmp 0x14000b568
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000b57a
cmp qword [rsp + 0x60], rdi
je 0x14000b522
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000b4e7
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14000c2a4
mov ebx, eax
test rsi, rsi
je 0x14000b5db
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000b5f2
lea rcx, [rsp + 0x60]
call fcn.14000d9ac
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140017b80
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1400014ec
int3
Function at 0x14000e4cc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rcx + 0x260], edx
lea r8, [0x14000e520]
xor edi, edi
mov rbx, rcx
mov r9, rcx
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rbx + 0x1d0], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400125a4
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140023010]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.140001680
mov rcx, rax
test rax, rax
je 0x1400126e2
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x14001a700]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8d, 0x57b
lea rdx, str.CrashSender_d.exe
lea rcx, [rsp + 0x20]
call fcn.140004858
mov dword [rsp + 0x30], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rbx, qword [rsp + 0x20]
cmp eax, 1
jne 0x140012690
jmp 0x14001267d
mov rdx, rbx
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14001267d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, dword [rsp + 0x38]
cmp r8d, eax
je 0x14001267d
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140012636
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400126bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001a700]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140017b80
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400014ec
int3

Function at 0x140012e40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140012e54
mov r9, qword [rcx + 0x78]
test r9, r9
je 0x140012e82
mov r8, rbx
mov edx, 1
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rcx, 0x110
mov qword [rsp + 0x30], rdi
mov edx, ebx
call fcn.140016f90
mov r8, rbx
mov rdx, rsi
mov rdi, rax
lea rcx, [rax - 1]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx - 1], 0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140013150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x50
test dword [rcx], 0x100
mov r14, rcx
je 0x14001338a
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rdi
mov byte [rax], 0
xor dword [rcx], 0x100
je 0x1400132d4
mov rbx, qword [rcx + 8]
mov qword [r11 + 0x20], rsi
mov rsi, rbx
cmp rbx, qword [rcx + 0x10]
jae 0x1400132cc
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x18], r12
xor r12d, r12d
mov qword [r11 - 0x20], r13
lea r13, str.quot
mov qword [r11 - 0x28], r15
lea r15, [0x14001b400]
nop dword [rax]
mov ecx, dword [r14]
test cl, 2
je 0x140013203
movzx eax, byte [rbx]
cmp al, 0xd
jne 0x1400131e7
cmp byte [rbx + 1], 0xa
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x1400132a6
cmp al, 0xa
jne 0x140013203
cmp byte [rbx + 1], 0xd
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x1400132a6
test cl, 1
je 0x14001329e
cmp byte [rbx], 0x26
jne 0x14001329e
cmp byte [rbx + 1], 0x23
jne 0x14001325d
xor eax, eax
mov dword [rsp + 0x60], r12d
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov word [rsp + 0x28], ax
mov rcx, rbx
call fcn.1400133a0
test rax, rax
je 0x14001329e
movsxd rdi, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400132ab
mov rdi, r13
movsxd r8, dword [rdi + 8]
lea rcx, [rbx + 1]
mov rdx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140013280
movsxd rax, dword [rdi + 8]
cmp byte [rax + rbx + 1], 0x3b
je 0x14001328b
add rdi, 0x10
cmp rdi, r15
jl 0x140013260
jmp 0x1400132a3
movzx eax, byte [rdi + 0xc]
mov byte [rsi], al
mov eax, dword [rdi + 8]
add eax, 2
cdqe
add rbx, rax
jmp 0x1400132a6
movzx eax, byte [rbx]
mov byte [rsi], al
inc rbx
mov edi, 1
add rsi, rdi
cmp rbx, qword [r14 + 0x10]
jb 0x1400131c0
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
mov byte [rsi], 0
mov rsi, qword [rsp + 0x78]
test byte [r14], 4
je 0x14001336e
mov rbx, qword [r14 + 8]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x1400132fe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x1400132fe
inc rbx
jmp 0x1400132e2
mov qword [r14 + 8], rbx
movzx ecx, byte [rbx]
test cl, cl
je 0x14001336e
mov rdi, rbx
nop dword [rax]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140013359
movzx ecx, cl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140013359
nop word [rax + rax]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x14001334f
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x14001334c
inc rbx
jmp 0x140013330
movzx ecx, byte [rbx]
test cl, cl
je 0x14001336b
mov byte [rdi], 0x20
inc rdi
movzx eax, byte [rbx]
inc rbx
mov byte [rdi], al
inc rdi
movzx ecx, byte [rbx]
test cl, cl
jne 0x140013310
mov byte [rdi], 0
and dword [r14], 0x200
mov rax, qword [r14 + 8]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop r14
ret
mov rax, qword [rcx + 8]
add rsp, 0x50
pop r14
ret
Function at 0x1400138f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x30]
test rax, rax
je 0x14001390c
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.140013150

Function at 0x140015910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.140015780
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetc]
cmp eax, 0xffffffff
jne 0x14001596e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14001596e
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.140015b00
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x30], rdi
mov rcx, rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
cmp rdi, 0xffffffffffffffff
jne 0x1400159c7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.140015b00
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
jae 0x1400159a2
test rdi, rdi
jne 0x1400159f2
xor r9d, r9d
lea edx, [rdi + 0xd]
xor r8d, r8d
mov rcx, rbx
call fcn.140015b00
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
lea rcx, [rdi + 1]
call fcn.140018378
mov r9, rsi
mov qword [rbx + 0x98], rax
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140015a40
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.140015b00
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov rax, qword [rbx + 0x98]
mov byte [rdi + rax], 0
call fcn.140015ca0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x140016070
Capabilities:
Write file on windows

Disassembly:
test edx, edx
jle 0x1400160d0
push rdi
sub rsp, 0x20
mov qword [rsp + 0x30], rbx
mov rdi, rcx
mov ebx, edx
mov r9, qword [rdi + 0x78]
test r9, r9
je 0x1400160a4
mov edx, 1
lea rcx, str.
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400160c0
lea rcx, [rdi + 0x110]
mov edx, 4
call fcn.140016f90
mov dword [rax - 1], 0x20202020
mov byte [rax + 3], 0
sub rbx, 1
jne 0x140016083
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400163c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rsi, rdx
mov qword [rsp + 0x30], rbp
mov rbx, rcx
mov qword [rsp + 0x38], rdi
movzx ebp, r8b
je 0x140016415
mov rdx, qword [rcx + 0x78]
mov byte [rcx + 8], 0
test rdx, rdx
je 0x1400163fe
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016415
add rcx, 0x110
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0x3e
mov eax, dword [rbx + 0x6c]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x68]
jle 0x140016482
mov qword [rsp + 0x40], r14
mov eax, 8
lea r14d, [rcx + rcx]
movsxd rcx, r14d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018378
movsxd r8, dword [rbx + 0x6c]
mov rcx, rax
mov rdx, qword [rbx + 0x10]
mov rdi, rax
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbx + 0x10]
lea rdx, [rbx + 0x18]
cmp rcx, rdx
je 0x140016470
call fcn.1400180a4
mov eax, dword [rbx + 0x6c]
mov dword [rbx + 0x68], r14d
mov r14, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
jmp 0x140016486
mov rdi, qword [rbx + 0x10]
cdqe
mov qword [rdi + rax*8], rsi
inc dword [rbx + 0x6c]
cmp dword [rbx + 0x84], 0
mov rdi, qword [rsp + 0x38]
jge 0x1400164e4
cmp byte [rbx + 0x70], 0
jne 0x1400164e4
test bpl, bpl
jne 0x1400164e4
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x1400164be
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x1400164d5
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0xa
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
call qword [rax + 0x58]
mov r9, qword [rbx + 0x78]
mov rbp, qword [rsp + 0x30]
test r9, r9
je 0x140016509
mov edx, 1
lea rcx, [0x14001d2e0]
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016527
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
movzx ecx, byte [0x14001d2e0]
mov byte [rax - 1], cl
mov byte [rax], 0
mov rdx, rsi
mov rcx, rbx
call fcn.140012e40
inc dword [rbx + 0x80]
mov byte [rbx + 8], 1
mov byte [rbx + 0x70], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x140016550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, r8
mov rdx, qword [rcx + 0x78]
mov rbx, rcx
test rdx, rdx
je 0x14001657e
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016595
add rcx, 0x110
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0x20
mov rdx, rdi
mov rcx, rbx
call fcn.140012e40
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x1400165c1
mov edx, 1
lea rcx, [0x14001d5e4]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400165df
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.140016f90
mov ecx, 0x223d
mov word [rax - 1], cx
mov byte [rax + 1], 0
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.1400160e0
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016611
mov ecx, 0x22
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov word [rax - 1], 0x22
add rsp, 0x20
pop rdi
ret
Function at 0x140016640
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
dec dword [rcx + 0x80]
movzx edi, dl
movsxd r8, dword [rcx + 0x6c]
mov rbx, rcx
lea eax, [r8 - 1]
mov dword [rcx + 0x6c], eax
cmp byte [rcx + 8], 0
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax + r8*8 - 8]
je 0x1400166bc
mov r9, qword [rcx + 0x78]
test r9, r9
je 0x140016699
mov edx, 1
lea rcx, [0x14001d5e8]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016787
add rcx, 0x110
mov edx, 2
call fcn.140016f90
mov ecx, 0x3e2f
mov word [rax - 1], cx
mov byte [rax + 1], 0
jmp 0x140016787
cmp dword [rcx + 0x84], 0
jge 0x140016706
test dil, dil
jne 0x140016706
mov rdx, qword [rcx + 0x78]
test rdx, rdx
je 0x1400166e0
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x1400166f7
add rcx, 0x110
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0xa
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
call qword [rax + 0x58]
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016727
mov edx, 1
lea rcx, [0x14001d5ec]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016745
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.140016f90
mov ecx, 0x2f3c
mov word [rax - 1], cx
mov byte [rax + 1], 0
mov rdx, rsi
mov rcx, rbx
call fcn.140012e40
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016770
mov edx, 1
lea rcx, [0x14001d320]
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016787
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0x3e
mov eax, dword [rbx + 0x80]
cmp dword [rbx + 0x84], eax
jne 0x14001679f
mov dword [rbx + 0x84], 0xffffffff
test eax, eax
jne 0x1400167d3
test dil, dil
jne 0x1400167d3
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x1400167bc
lea ecx, [rax + 0xa]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x1400167d3
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0xa
mov rsi, qword [rsp + 0x38]
mov byte [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400167f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x80]
movzx esi, r8b
dec eax
mov rdi, rdx
cmp byte [rcx + 8], 0
mov rbx, rcx
mov dword [rcx + 0x84], eax
je 0x14001684e
mov rdx, qword [rcx + 0x78]
mov byte [rcx + 8], 0
test rdx, rdx
je 0x140016837
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x14001684e
add rcx, 0x110
mov edx, 1
call fcn.140016f90
mov word [rax - 1], 0x3e
test sil, sil
je 0x140016918
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016878
mov edx, 1
lea rcx, str.___CDATA_
lea r8d, [rdx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400168a4
lea rcx, [rbx + 0x110]
mov edx, 9
call fcn.140016f90
movsd xmm0, qword [str.___CDATA_]
movsd qword [rax - 1], xmm0
movzx ecx, byte [0x14001d2d8]
mov byte [rax + 7], cl
mov byte [rax + 8], 0
mov rdx, rdi
mov rcx, rbx
call fcn.140012e40
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x1400168de
mov edx, 1
lea rcx, [0x14001d314]
lea r8d, [rdx + 2]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rcx, [rbx + 0x110]
mov edx, 3
call fcn.140016f90
movzx ecx, word [0x14001d314]
mov word [rax - 1], cx
movzx ecx, byte [0x14001d316]
mov byte [rax + 1], cl
mov byte [rax + 2], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8b, 1
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400160e0