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

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140024010]
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.140001f9c
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 0x140007717
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x14000770e
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140004930
nop
mov edx, 0x5c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rcx, rax
test rax, rax
je 0x1400076e8
mov rax, qword [rsp + 0x28]
sub rcx, rax
sar rcx, 1
cmp ecx, 0xffffffff
je 0x1400076ed
lea r8d, [rcx + 1]
mov r9d, dword [rax - 0x10]
sub r9d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.1400044e8
mov dword [rsp + 0x20], 3
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400048ac
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400076e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
mov rax, qword [rsp + 0x28]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000770e
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x14001b738]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400185a0
add rsp, 0x260
pop rdi
pop rbx
pop rbp
ret
Function at 0x140009aac
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.140001690
mov rcx, rax
test rax, rax
je 0x140009c2a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp + 0xc0]
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140009bf9
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 0x140009b1f
xor edx, edx
mov rcx, rdi
call fcn.140002044
mov rdx, qword [rdi]
lea rcx, [rsp + 0x60]
call fcn.140004930
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 0x140009b7e
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
test eax, eax
je 0x140009b77
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 0x140009ba4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140009bcc
mov rax, qword [rbx + 8]
jmp 0x140009bc1
cmp rbx, qword [rax + 0x10]
jne 0x140009bc7
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140009bb4
mov rbx, rax
jmp 0x140009be7
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140009be7
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140009bd8
cmp rbx, qword [rbp + 0xc0]
jne 0x140009afc
mov rax, qword [rsp + 0x78]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140009c1a
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x14001b738]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001500
int3
Function at 0x14000b640
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 0x14000b6d6
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000b6b0
lea rcx, [0x14001c4a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b6cf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b6cf
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 [0x14001b738]
jmp 0x14000b6bf
cmp dword [rdi + 8], 0
je 0x14000b6cf
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 0x14000b6bf
cmp byte [0x140024b98], 0
jne 0x14000b721
lea rcx, [0x14001c4a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b70d
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140024b90], rax
jmp 0x14000b714
mov r10, qword [0x140024b90]
mov eax, 1
mov byte [0x140024b98], al
jmp 0x14000b728
mov r10, qword [0x140024b90]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000b6b9
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rax, r10
call qword [0x14001b738]
jmp 0x14000b6bf
Function at 0x14000bd8c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140024010]
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 0x14000be10
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 0x14000be10
call fcn.14000b368
mov ebx, eax
jmp 0x14000bf1b
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000be31
call fcn.14000b368
jmp 0x14000bf0a
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 0x14000be27
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 0x14000be6c
mov ebx, 0x8007000e
jmp 0x14000bf0c
mov ecx, eax
test eax, eax
je 0x14000be9e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000bf53
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000be9e
lea rcx, [rsp + 0x60]
call fcn.14000e2f8
jmp 0x14000bea8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000beba
cmp qword [rsp + 0x60], rdi
je 0x14000be62
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 0x14000be27
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.14000cbe4
mov ebx, eax
test rsi, rsi
je 0x14000bf1b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000bf32
lea rcx, [rsp + 0x60]
call fcn.14000e2ec
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400185a0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001500
int3
Function at 0x14000ee30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rcx + 0x270], edx
lea r8, [0x14000ee80]
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 + 0x1e0], rax
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140012fc8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140024010]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.140001690
mov rcx, rax
test rax, rax
je 0x140013106
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x14001b738]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8d, 0x57b
lea rdx, str.CrashSender_d.exe
lea rcx, [rsp + 0x20]
call fcn.140004fd8
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 0x1400130b4
jmp 0x1400130a1
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 0x1400130a1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, dword [rsp + 0x38]
cmp r8d, eax
je 0x1400130a1
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 0x14001305a
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 0x1400130df
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14001b738]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400185a0
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.140001500
int3

Function at 0x140013860
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 0x140013874
mov r9, qword [rcx + 0x78]
test r9, r9
je 0x1400138a2
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.1400179b0
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 0x140013b70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x50
test dword [rcx], 0x100
mov r14, rcx
je 0x140013daa
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rdi
mov byte [rax], 0
xor dword [rcx], 0x100
je 0x140013cf4
mov rbx, qword [rcx + 8]
mov qword [r11 + 0x20], rsi
mov rsi, rbx
cmp rbx, qword [rcx + 0x10]
jae 0x140013cec
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, [0x14001c480]
nop dword [rax]
mov ecx, dword [r14]
test cl, 2
je 0x140013c23
movzx eax, byte [rbx]
cmp al, 0xd
jne 0x140013c07
cmp byte [rbx + 1], 0xa
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x140013cc6
cmp al, 0xa
jne 0x140013c23
cmp byte [rbx + 1], 0xd
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x140013cc6
test cl, 1
je 0x140013cbe
cmp byte [rbx], 0x26
jne 0x140013cbe
cmp byte [rbx + 1], 0x23
jne 0x140013c7d
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.140013dc0
test rax, rax
je 0x140013cbe
movsxd rdi, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140013ccb
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 0x140013ca0
movsxd rax, dword [rdi + 8]
cmp byte [rax + rbx + 1], 0x3b
je 0x140013cab
add rdi, 0x10
cmp rdi, r15
jl 0x140013c80
jmp 0x140013cc3
movzx eax, byte [rdi + 0xc]
mov byte [rsi], al
mov eax, dword [rdi + 8]
add eax, 2
cdqe
add rbx, rax
jmp 0x140013cc6
movzx eax, byte [rbx]
mov byte [rsi], al
inc rbx
mov edi, 1
add rsi, rdi
cmp rbx, qword [r14 + 0x10]
jb 0x140013be0
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 0x140013d8e
mov rbx, qword [r14 + 8]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140013d1e
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140013d1e
inc rbx
jmp 0x140013d02
mov qword [r14 + 8], rbx
movzx ecx, byte [rbx]
test cl, cl
je 0x140013d8e
mov rdi, rbx
nop dword [rax]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140013d79
movzx ecx, cl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140013d79
nop word [rax + rax]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140013d6f
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140013d6c
inc rbx
jmp 0x140013d50
movzx ecx, byte [rbx]
test cl, cl
je 0x140013d8b
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 0x140013d30
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 0x140014310
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 0x14001432c
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.140013b70

Function at 0x140016330
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.1400161a0
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 0x14001638e
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14001638e
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.140016520
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 0x1400163e7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.140016520
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
jae 0x1400163c2
test rdi, rdi
jne 0x140016412
xor r9d, r9d
lea edx, [rdi + 0xd]
xor r8d, r8d
mov rcx, rbx
call fcn.140016520
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.140018d98
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 0x140016460
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.140016520
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.1400166c0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x140016a90
Capabilities:
Write file on windows

Disassembly:
test edx, edx
jle 0x140016af0
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 0x140016ac4
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 0x140016ae0
lea rcx, [rdi + 0x110]
mov edx, 4
call fcn.1400179b0
mov dword [rax - 1], 0x20202020
mov byte [rax + 3], 0
sub rbx, 1
jne 0x140016aa3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140016de0
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 0x140016e35
mov rdx, qword [rcx + 0x78]
mov byte [rcx + 8], 0
test rdx, rdx
je 0x140016e1e
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016e35
add rcx, 0x110
mov edx, 1
call fcn.1400179b0
mov word [rax - 1], 0x3e
mov eax, dword [rbx + 0x6c]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x68]
jle 0x140016ea2
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.140018d98
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 0x140016e90
call fcn.140018ac4
mov eax, dword [rbx + 0x6c]
mov dword [rbx + 0x68], r14d
mov r14, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
jmp 0x140016ea6
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 0x140016f04
cmp byte [rbx + 0x70], 0
jne 0x140016f04
test bpl, bpl
jne 0x140016f04
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016ede
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016ef5
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400179b0
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 0x140016f29
mov edx, 1
lea rcx, [0x14001e3d0]
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016f47
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400179b0
movzx ecx, byte [0x14001e3d0]
mov byte [rax - 1], cl
mov byte [rax], 0
mov rdx, rsi
mov rcx, rbx
call fcn.140013860
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 0x140016f70
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 0x140016f9e
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016fb5
add rcx, 0x110
mov edx, 1
call fcn.1400179b0
mov word [rax - 1], 0x20
mov rdx, rdi
mov rcx, rbx
call fcn.140013860
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016fe1
mov edx, 1
lea rcx, [0x14001e6d4]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016fff
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.1400179b0
mov ecx, 0x223d
mov word [rax - 1], cx
mov byte [rax + 1], 0
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140016b00
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140017031
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.1400179b0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov word [rax - 1], 0x22
add rsp, 0x20
pop rdi
ret
Function at 0x140017060
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 0x1400170dc
mov r9, qword [rcx + 0x78]
test r9, r9
je 0x1400170b9
mov edx, 1
lea rcx, [0x14001e6d8]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400171a7
add rcx, 0x110
mov edx, 2
call fcn.1400179b0
mov ecx, 0x3e2f
mov word [rax - 1], cx
mov byte [rax + 1], 0
jmp 0x1400171a7
cmp dword [rcx + 0x84], 0
jge 0x140017126
test dil, dil
jne 0x140017126
mov rdx, qword [rcx + 0x78]
test rdx, rdx
je 0x140017100
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140017117
add rcx, 0x110
mov edx, 1
call fcn.1400179b0
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 0x140017147
mov edx, 1
lea rcx, [0x14001e6dc]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140017165
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.1400179b0
mov ecx, 0x2f3c
mov word [rax - 1], cx
mov byte [rax + 1], 0
mov rdx, rsi
mov rcx, rbx
call fcn.140013860
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140017190
mov edx, 1
lea rcx, [0x14001e410]
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400171a7
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400179b0
mov word [rax - 1], 0x3e
mov eax, dword [rbx + 0x80]
cmp dword [rbx + 0x84], eax
jne 0x1400171bf
mov dword [rbx + 0x84], 0xffffffff
test eax, eax
jne 0x1400171f3
test dil, dil
jne 0x1400171f3
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x1400171dc
lea ecx, [rax + 0xa]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x1400171f3
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400179b0
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 0x140017210
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 0x14001726e
mov rdx, qword [rcx + 0x78]
mov byte [rcx + 8], 0
test rdx, rdx
je 0x140017257
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x14001726e
add rcx, 0x110
mov edx, 1
call fcn.1400179b0
mov word [rax - 1], 0x3e
test sil, sil
je 0x140017338
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140017298
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 0x1400172c4
lea rcx, [rbx + 0x110]
mov edx, 9
call fcn.1400179b0
movsd xmm0, qword [str.___CDATA_]
movsd qword [rax - 1], xmm0
movzx ecx, byte [0x14001e3c8]
mov byte [rax + 7], cl
mov byte [rax + 8], 0
mov rdx, rdi
mov rcx, rbx
call fcn.140013860
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x1400172fe
mov edx, 1
lea rcx, [0x14001e404]
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.1400179b0
movzx ecx, word [0x14001e404]
mov word [rax - 1], cx
movzx ecx, byte [0x14001e406]
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.140016b00