joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009950
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 0x140009ace
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 0x140009a9d
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 0x1400099c3
xor edx, edx
mov rcx, rdi
call fcn.140001f04
mov rdx, qword [rdi]
lea rcx, [rsp + 0x60]
call fcn.1400048b0
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 0x140009a22
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
test eax, eax
je 0x140009a1b
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 0x140009a48
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 0x140009a70
mov rax, qword [rbx + 8]
jmp 0x140009a65
cmp rbx, qword [rax + 0x10]
jne 0x140009a6b
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140009a58
mov rbx, rax
jmp 0x140009a8b
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140009a8b
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140009a7c
cmp rbx, qword [rbp + 0xc0]
jne 0x1400099a0
mov rax, qword [rsp + 0x78]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140009abe
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 0x14000b4e0
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 0x14000b576
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000b550
lea rcx, [0x14001c490]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b56f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b56f
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 0x14000b55f
cmp dword [rdi + 8], 0
je 0x14000b56f
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 0x14000b55f
cmp byte [0x140024b98], 0
jne 0x14000b5c1
lea rcx, [0x14001c490]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b5ad
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140024b90], rax
jmp 0x14000b5b4
mov r10, qword [0x140024b90]
mov eax, 1
mov byte [0x140024b98], al
jmp 0x14000b5c8
mov r10, qword [0x140024b90]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000b559
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rax, r10
call qword [0x14001b738]
jmp 0x14000b55f
Function at 0x14000bc2c
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 0x14000bcb0
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 0x14000bcb0
call fcn.14000b20c
mov ebx, eax
jmp 0x14000bdbb
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000bcd1
call fcn.14000b20c
jmp 0x14000bdaa
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 0x14000bcc7
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 0x14000bd0c
mov ebx, 0x8007000e
jmp 0x14000bdac
mov ecx, eax
test eax, eax
je 0x14000bd3e
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000bdf3
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000bd3e
lea rcx, [rsp + 0x60]
call fcn.14000e198
jmp 0x14000bd48
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000bd5a
cmp qword [rsp + 0x60], rdi
je 0x14000bd02
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 0x14000bcc7
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.14000ca84
mov ebx, eax
test rsi, rsi
je 0x14000bdbb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000bdd2
lea rcx, [rsp + 0x60]
call fcn.14000e18c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400183c0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001500
int3
Function at 0x14000eca8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [rcx + 0x260], edx
lea r8, [0x14000ed00]
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 0x140012de4
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 0x140012f22
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.140004f58
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 0x140012ed0
jmp 0x140012ebd
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 0x140012ebd
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, dword [rsp + 0x38]
cmp r8d, eax
je 0x140012ebd
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 0x140012e76
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 0x140012efb
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.1400183c0
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 0x140013680
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 0x140013694
mov r9, qword [rcx + 0x78]
test r9, r9
je 0x1400136c2
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.1400177d0
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 0x140013990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x50
test dword [rcx], 0x100
mov r14, rcx
je 0x140013bca
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rdi
mov byte [rax], 0
xor dword [rcx], 0x100
je 0x140013b14
mov rbx, qword [rcx + 8]
mov qword [r11 + 0x20], rsi
mov rsi, rbx
cmp rbx, qword [rcx + 0x10]
jae 0x140013b0c
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, [0x14001c470]
nop dword [rax]
mov ecx, dword [r14]
test cl, 2
je 0x140013a43
movzx eax, byte [rbx]
cmp al, 0xd
jne 0x140013a27
cmp byte [rbx + 1], 0xa
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x140013ae6
cmp al, 0xa
jne 0x140013a43
cmp byte [rbx + 1], 0xd
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x140013ae6
test cl, 1
je 0x140013ade
cmp byte [rbx], 0x26
jne 0x140013ade
cmp byte [rbx + 1], 0x23
jne 0x140013a9d
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.140013be0
test rax, rax
je 0x140013ade
movsxd rdi, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140013aeb
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 0x140013ac0
movsxd rax, dword [rdi + 8]
cmp byte [rax + rbx + 1], 0x3b
je 0x140013acb
add rdi, 0x10
cmp rdi, r15
jl 0x140013aa0
jmp 0x140013ae3
movzx eax, byte [rdi + 0xc]
mov byte [rsi], al
mov eax, dword [rdi + 8]
add eax, 2
cdqe
add rbx, rax
jmp 0x140013ae6
movzx eax, byte [rbx]
mov byte [rsi], al
inc rbx
mov edi, 1
add rsi, rdi
cmp rbx, qword [r14 + 0x10]
jb 0x140013a00
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 0x140013bae
mov rbx, qword [r14 + 8]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140013b3e
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140013b3e
inc rbx
jmp 0x140013b22
mov qword [r14 + 8], rbx
movzx ecx, byte [rbx]
test cl, cl
je 0x140013bae
mov rdi, rbx
nop dword [rax]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140013b99
movzx ecx, cl
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140013b99
nop word [rax + rax]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x140013b8f
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140013b8c
inc rbx
jmp 0x140013b70
movzx ecx, byte [rbx]
test cl, cl
je 0x140013bab
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 0x140013b50
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 0x140014130
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 0x14001414c
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.140013990

Function at 0x140016150
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.140015fc0
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 0x1400161ae
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x1400161ae
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.140016340
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 0x140016207
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.140016340
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
jae 0x1400161e2
test rdi, rdi
jne 0x140016232
xor r9d, r9d
lea edx, [rdi + 0xd]
xor r8d, r8d
mov rcx, rbx
call fcn.140016340
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.140018bb8
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 0x140016280
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.140016340
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.1400164e0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret

Function at 0x1400168b0
Capabilities:
Write file on windows

Disassembly:
test edx, edx
jle 0x140016910
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 0x1400168e4
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 0x140016900
lea rcx, [rdi + 0x110]
mov edx, 4
call fcn.1400177d0
mov dword [rax - 1], 0x20202020
mov byte [rax + 3], 0
sub rbx, 1
jne 0x1400168c3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140016c00
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 0x140016c55
mov rdx, qword [rcx + 0x78]
mov byte [rcx + 8], 0
test rdx, rdx
je 0x140016c3e
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016c55
add rcx, 0x110
mov edx, 1
call fcn.1400177d0
mov word [rax - 1], 0x3e
mov eax, dword [rbx + 0x6c]
lea ecx, [rax + 1]
cmp ecx, dword [rbx + 0x68]
jle 0x140016cc2
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.140018bb8
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 0x140016cb0
call fcn.1400188e4
mov eax, dword [rbx + 0x6c]
mov dword [rbx + 0x68], r14d
mov r14, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
jmp 0x140016cc6
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 0x140016d24
cmp byte [rbx + 0x70], 0
jne 0x140016d24
test bpl, bpl
jne 0x140016d24
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016cfe
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016d15
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400177d0
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 0x140016d49
mov edx, 1
lea rcx, [0x14001e3c0]
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016d67
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400177d0
movzx ecx, byte [0x14001e3c0]
mov byte [rax - 1], cl
mov byte [rax], 0
mov rdx, rsi
mov rcx, rbx
call fcn.140013680
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 0x140016d90
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 0x140016dbe
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016dd5
add rcx, 0x110
mov edx, 1
call fcn.1400177d0
mov word [rax - 1], 0x20
mov rdx, rdi
mov rcx, rbx
call fcn.140013680
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016e01
mov edx, 1
lea rcx, [0x14001e6c4]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016e1f
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.1400177d0
mov ecx, 0x223d
mov word [rax - 1], cx
mov byte [rax + 1], 0
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140016920
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016e51
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.1400177d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov word [rax - 1], 0x22
add rsp, 0x20
pop rdi
ret
Function at 0x140016e80
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 0x140016efc
mov r9, qword [rcx + 0x78]
test r9, r9
je 0x140016ed9
mov edx, 1
lea rcx, [0x14001e6c8]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016fc7
add rcx, 0x110
mov edx, 2
call fcn.1400177d0
mov ecx, 0x3e2f
mov word [rax - 1], cx
mov byte [rax + 1], 0
jmp 0x140016fc7
cmp dword [rcx + 0x84], 0
jge 0x140016f46
test dil, dil
jne 0x140016f46
mov rdx, qword [rcx + 0x78]
test rdx, rdx
je 0x140016f20
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140016f37
add rcx, 0x110
mov edx, 1
call fcn.1400177d0
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 0x140016f67
mov edx, 1
lea rcx, [0x14001e6cc]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016f85
lea rcx, [rbx + 0x110]
mov edx, 2
call fcn.1400177d0
mov ecx, 0x2f3c
mov word [rax - 1], cx
mov byte [rax + 1], 0
mov rdx, rsi
mov rcx, rbx
call fcn.140013680
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x140016fb0
mov edx, 1
lea rcx, [0x14001e400]
mov r8d, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140016fc7
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400177d0
mov word [rax - 1], 0x3e
mov eax, dword [rbx + 0x80]
cmp dword [rbx + 0x84], eax
jne 0x140016fdf
mov dword [rbx + 0x84], 0xffffffff
test eax, eax
jne 0x140017013
test dil, dil
jne 0x140017013
mov rdx, qword [rbx + 0x78]
test rdx, rdx
je 0x140016ffc
lea ecx, [rax + 0xa]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x140017013
lea rcx, [rbx + 0x110]
mov edx, 1
call fcn.1400177d0
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 0x140017030
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 0x14001708e
mov rdx, qword [rcx + 0x78]
mov byte [rcx + 8], 0
test rdx, rdx
je 0x140017077
mov ecx, 0x3e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
jmp 0x14001708e
add rcx, 0x110
mov edx, 1
call fcn.1400177d0
mov word [rax - 1], 0x3e
test sil, sil
je 0x140017158
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x1400170b8
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 0x1400170e4
lea rcx, [rbx + 0x110]
mov edx, 9
call fcn.1400177d0
movsd xmm0, qword [str.___CDATA_]
movsd qword [rax - 1], xmm0
movzx ecx, byte [0x14001e3b8]
mov byte [rax + 7], cl
mov byte [rax + 8], 0
mov rdx, rdi
mov rcx, rbx
call fcn.140013680
mov r9, qword [rbx + 0x78]
test r9, r9
je 0x14001711e
mov edx, 1
lea rcx, [0x14001e3f4]
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.1400177d0
movzx ecx, word [0x14001e3f4]
mov word [rax - 1], cx
movzx ecx, byte [0x14001e3f6]
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.140016920