joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a72d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x1400a7332
test cl, 0x20
jne 0x1400a7374
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400a73e5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1400ccdce]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400a73f0
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1400a7340
jmp 0x1400a73b2
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1400a7380
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x1400a7451
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x1400ccdcc]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x1400a7441
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400a73fa
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x1400a7413
movzx ecx, cl
lea r8, [0x1400ccdce]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::hd7d09bba8c9ff4c9
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::hc4490513dd7cd116
int3
Function at 0x1400ae280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400ae2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ed264]
mov rbx, rcx
test esi, esi
jle 0x1400ae420
mov rax, qword [0x1400ed268]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400ae33b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400ae3c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400ae320
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400ae442
mov rax, qword [0x1400ed268]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ed268]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400ae427
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400ae3be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400ae3d0
add dword [0x1400ed264], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400ed268]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400ae3be
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400ae348
mov rax, qword [0x1400ed268]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400ae9b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ed2c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ed2a0]
test rbx, rbx
je 0x1400aea0c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400aea03
test rsi, rsi
je 0x1400aea03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400ae9e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400aec20
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400aec38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400aec40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400aec50
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400aec9d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400aec94
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400aec9f
add rax, 0x28
cmp rax, r9
jne 0x1400aec80
xor eax, eax
ret

Function at 0x1400aeca0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400aed30
mov rdx, qword [0x1400d8af0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400aed1e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400aed1e
cmp word [rax + 0x18], 0x20b
jne 0x1400aed1e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400aed30
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400aed09
add rbx, 0x28
cmp rbx, rdi
je 0x1400aed30
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400aed00
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400aed40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400d8af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400aed60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400aed68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400aed60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400aedbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400aedb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400aed60
add rax, 0x28
cmp rax, r9
jne 0x1400aeda0
xor eax, eax
ret

Function at 0x1400aedc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d8af0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400aeddf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400aede8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400aeddf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400aee00
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400d8af0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400aee20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400aee28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400aee20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400aee70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400aee67
test rcx, rcx
je 0x1400aee20
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400aee58
xor eax, eax
ret

Function at 0x1400aee80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d8af0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400aee9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400aeea8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400aeec0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400d8af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400aeee0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400aeee8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400aeee0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400aeee0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400aef34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400aef40
add rdx, 0x28
cmp r9, rdx
jne 0x1400aef20
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400aef50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400d8af0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400aef72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400aef80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400aef72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400aef72
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400aef72
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400aefd5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400aefe8
add rdx, 0x28
cmp rdx, r10
jne 0x1400aefc0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400aeff7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400af007
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400aefde
test ecx, ecx
jg 0x1400aeff0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012d20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012d40
xor al, al
jmp 0x140012dc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012d53
xor al, al
jmp 0x140012dc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d7d
xor al, al
jmp 0x140012dc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d91
xor al, al
jmp 0x140012dc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012da3
xor al, al
jmp 0x140012dc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012dbf
xor al, al
jmp 0x140012dc1
mov al, 1
add rsp, 0x38
ret
Function at 0x140002580
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x290
mov rax, qword [0x140087080]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400026e6
xor r14d, r14d
lea rbp, str.GTAProcess
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r14w
jne 0x140002610
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.1400068a0
mov rdi, qword [rsp + 0x38]
lea r10, [rsp + 0x20]
mov r11, qword [rsp + 0x20]
cmp rdi, 7
mov rax, qword [rsp + 0x30]
cmova r10, r11
cmp rax, 0xa
jb 0x140002684
lea r9, [rax - 9]
mov rbx, r10
lea r9, [r10 + r9*2]
nop word [rax + rax]
mov rax, r9
sub rax, rbx
sar rax, 1
je 0x140002684
nop dword [rax + rax]
cmp word [rbx], 0x47
je 0x14000271f
add rbx, 2
sub rax, 1
jne 0x140002670
mov rbx, 0xffffffffffffffff
cmp rdi, 7
jbe 0x1400026c6
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x1400026be
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000275e
mov rcx, r11
call fcn.1400696ac
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140002765
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400025f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140069410
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test rbx, rbx
je 0x140002684
mov r8, rbx
mov edx, 0xa
sub r8, rbp
mov rcx, rbp
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140002755
add rcx, 2
sub rdx, 1
jne 0x140002736
sub rbx, r10
sar rbx, 1
jmp 0x14000268b
add rbx, 2
jmp 0x140002660
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x1400026f1
Function at 0x1400030f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x140087080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, r8
mov qword [rsp + 0x38], rbx
mov r13d, edx
mov rdi, rcx
mov qword [rbp - 0x69], rcx
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x30], 1
lea rcx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x29]
mov r15, qword [rbp - 0x21]
mov qword [rbp - 0x71], r15
cmp r14, r15
jae 0x140003309
movabs rsi, 0x7fffffffffffffff
nop dword [rax + rax]
mov r9d, Ordinal_50
lea r8, [rbp - 0x61]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140003309
cmp dword [rbp - 0x41], 0x1000
jne 0x1400032fc
cmp dword [rbp - 0x3d], 1
je 0x1400032fc
xorps xmm0, xmm0
mov rbx, qword [rbp - 0x49]
movdqu xmmword [rbp + 7], xmm0
xor r12d, r12d
mov qword [rbp + 0x17], r12
test rbx, rbx
je 0x140003236
cmp rbx, rsi
ja 0x14000333a
cmp rbx, 0x1000
jb 0x140003209
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x140003340
call fcn.140069430
test rax, rax
je 0x140003333
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140003214
mov rcx, rbx
call fcn.140069430
mov rsi, rax
mov qword [rbp + 7], rsi
lea r12, [rbx + rsi]
mov qword [rbp + 0x17], r12
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov r9, r12
mov qword [rbp + 0xf], r12
jmp 0x14000323e
mov r9, qword [rbp + 0xf]
mov rsi, qword [rbp + 7]
sub r9, rsi
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, r14
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400032be
mov rax, qword [rbp - 1]
add rax, 0xfffffffffffffffd
je 0x1400032be
mov rbx, r14
mov r15, rsi
sub r15, r14
cmp dword [rbx + r15], r13d
jne 0x14000329f
mov qword [rbp - 0x79], rbx
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140003293
mov qword [rdx], rbx
add qword [rdi + 8], 8
jmp 0x14000329f
lea r8, [rbp - 0x79]
mov rcx, rdi
call fcn.140007300
inc rbx
mov rcx, rbx
sub rcx, r14
mov rax, qword [rbp - 1]
add rax, 0xfffffffffffffffd
cmp rcx, rax
jb 0x140003275
mov r15, qword [rbp - 0x71]
mov rbx, qword [rsp + 0x38]
test rsi, rsi
je 0x1400032f2
sub r12, rsi
mov rax, rsi
cmp r12, 0x1000
jb 0x1400032e7
add r12, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003333
mov rdx, r12
mov rcx, rsi
call fcn.1400696ac
movabs rsi, 0x7fffffffffffffff
add r14, qword [rbp - 0x49]
cmp r14, r15
jb 0x140003180
mov rax, rdi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140069410
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006e90
int3
call fcn.140001bf0
int3
Function at 0x1400049e0
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 0x140004a08
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 0x140004a2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004a30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004a89
test ecx, ecx
jle 0x140004a69
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 0x140004a89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004a89
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 0x140004ab0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004ad2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004ae8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004b04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004b06
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004b42
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004bde
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004b7d
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 0x140004bbe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140004bde
cmp rbx, rax
ja 0x140004b90
test rbx, rbx
je 0x140004bde
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140005040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140087080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000506d
xor eax, eax
jmp 0x1400051d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400050a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400050a7
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 0x1400051d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400051cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400050ea
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 0x140005115
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 0x1400051d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005184
sub eax, 1
je 0x140005184
cmp eax, 2
jne 0x1400051cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400051d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400051b2
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 0x1400051cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400051d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140069410
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret