joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062590
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ebx, r8d
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x20], 1
lea ecx, [rax + 0xf]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x180062647
mov ecx, dword [rsp + 0x48]
cmp ebx, ecx
jb 0x180062614
add ecx, dword [rsp + 0x50]
cmp ebx, ecx
jbe 0x180062624
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32Next]
jmp 0x180062600
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x180062630
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180047060
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800d0cf0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180062680
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rbp - 0x10], rax
movdqa xmm0, xmmword [0x1800f5760]
xor eax, eax
mov qword [rbp - 0x18], rax
mov edx, eax
mov dword [rbp - 0x20], eax
mov rbx, rcx
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 0x2f122b2b
mov dword [rbp - 0x2c], 0x2f2b2c3a
mov word [rbp - 0x28], 0x100
nop dword [rax]
lea ecx, [rdx + 0x34]
xor byte [rbp + rdx - 0x40], cl
inc rdx
cmp rdx, 0x18
jb 0x1800626d0
mov byte [rbp - 0x27], al
mov dword [rbp - 0x50], 0x5b52415a
mov dword [rbp - 0x4c], 0x575e1754
mov word [rbp - 0x48], 0x50
mov byte [rbp - 0x46], 1
nop dword [rax + rax]
lea ecx, [rax + 0x34]
xor byte [rbp + rax - 0x50], cl
inc rax
cmp rax, 9
jb 0x180062700
lea rcx, [rbp - 0x50]
mov byte [rbp - 0x46], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r9d, 8
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x18]
mov rcx, rbx
lea edx, [r9 + 1]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800d0cf0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret
Function at 0x180063a40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x23], 0
je 0x180063a63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x22
jb 0x180063a50
mov byte [rcx + 0x23], 0
mov rax, rcx
ret

Function at 0x180063be0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
je 0x180063c03
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 8
jb 0x180063bf0
mov byte [rcx + 9], 0
ret

Function at 0x180063c10
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xb], 0
je 0x180063c33
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xa
jb 0x180063c20
mov byte [rcx + 0xb], 0
ret

Function at 0x180063c40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xd], 0
je 0x180063c63
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xc
jb 0x180063c50
mov byte [rcx + 0xd], 0
ret

Function at 0x180063c70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
je 0x180063c93
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 7
jb 0x180063c80
mov byte [rcx + 8], 0
ret

Function at 0x180063ca0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x18], 0
je 0x180063cc3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x17
jb 0x180063cb0
mov byte [rcx + 0x18], 0
ret

Function at 0x180063cd0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x12], 0
je 0x180063cf3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x11
jb 0x180063ce0
mov byte [rcx + 0x12], 0
ret

Function at 0x180063d00
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xe], 0
je 0x180063d23
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xd
jb 0x180063d10
mov byte [rcx + 0xe], 0
ret

Function at 0x180063d30
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x16], 0
je 0x180063d53
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x15
jb 0x180063d40
mov byte [rcx + 0x16], 0
ret

Function at 0x180063d60
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1a], 0
je 0x180063d83
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x19
jb 0x180063d70
mov byte [rcx + 0x1a], 0
ret

Function at 0x180063d90
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1c], 0
je 0x180063db3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1b
jb 0x180063da0
mov byte [rcx + 0x1c], 0
ret

Function at 0x180063dc0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x17], 0
je 0x180063de3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x16
jb 0x180063dd0
mov byte [rcx + 0x17], 0
ret
Function at 0x180063df0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x15], 0
je 0x180063e13
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x14
jb 0x180063e00
mov byte [rcx + 0x15], 0
ret

Function at 0x180063e20
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x11], 0
je 0x180063e43
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x10
jb 0x180063e30
mov byte [rcx + 0x11], 0
ret

Function at 0x180063e50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
je 0x180063e73
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 9
jb 0x180063e60
mov byte [rcx + 0xa], 0
ret

Function at 0x180063e80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
je 0x180063ea3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 6
jb 0x180063e90
mov byte [rcx + 7], 0
ret

Function at 0x180063eb0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 4], 0
je 0x180063ed3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 3
jb 0x180063ec0
mov byte [rcx + 4], 0
ret

Function at 0x180063ef0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xf], 0
je 0x180063f13
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xe
jb 0x180063f00
mov byte [rcx + 0xf], 0
ret

Function at 0x180063f20
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x14], 0
je 0x180063f43
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x13
jb 0x180063f30
mov byte [rcx + 0x14], 0
ret

Function at 0x180063f50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x19], 0
je 0x180063f73
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x18
jb 0x180063f60
mov byte [rcx + 0x19], 0
ret

Function at 0x180063f80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xc], 0
je 0x180063fa3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xb
jb 0x180063f90
mov byte [rcx + 0xc], 0
ret

Function at 0x180063fb0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x13], 0
je 0x180063fd3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x12
jb 0x180063fc0
mov byte [rcx + 0x13], 0
ret

Function at 0x180063fe0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x10], 0
je 0x180064003
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xf
jb 0x180063ff0
mov byte [rcx + 0x10], 0
ret

Function at 0x180064010
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
je 0x180064033
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 4
jb 0x180064020
mov byte [rcx + 5], 0
ret
Function at 0x1800641b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x40], rdx
mov rcx, rdx
call fcn.180043580
mov rdx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1800641f9
mov rsi, qword [rbx]
lea rbp, [rdx + rsi]
mov rdi, rsi
jmp 0x180064203
lea rbp, [rbx + rdx]
mov rdi, rbx
mov rsi, rbx
cmp rdi, rbp
je 0x180064228
sub rsi, rdi
nop dword [rax + rax]
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rsi + rdi], al
inc rdi
cmp rdi, rbp
jne 0x180064210
mov rdx, qword [rbx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180064235
mov r8, qword [rbx]
movabs r9, 0xcbf29ce484222325
xor r15d, r15d
mov ecx, r15d
test rdx, rdx
je 0x180064274
movabs r10, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, rdx
jb 0x180064260
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180071d80
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x18006429c
cmp rdi, qword [r14 + 8]
je 0x18006429c
mov rdi, qword [rdi + 0x30]
jmp 0x180064363
mov rdi, qword [r14 + 0x48]
sub rdi, qword [r14 + 0x40]
sar rdi, 6
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.18006c800
mov rcx, qword [rax]
mov qword [rcx + 0x30], rdi
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
mov rsi, qword [r14 + 0x48]
cmp rsi, qword [r14 + 0x50]
je 0x18006430f
mov rdx, rbx
mov rcx, rsi
call fcn.180066110
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x30], xmm1
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], 0
add qword [r14 + 0x48], 0x40
jmp 0x180064328
lea r9, [rsp + 0x20]
mov r8, rbx
mov rdx, rsi
lea rcx, [r14 + 0x40]
call fcn.18006b880
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x180064363
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006435e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006435e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d0fac
shl rdi, 6
add rdi, qword [r14 + 0x40]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800643a1
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18006439c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800643d5
mov rcx, r8
call fcn.1800d0fac
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
lea rax, [rdi + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800d0cf0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
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
Function at 0x1800643e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x98], rdx
mov rcx, rdx
call fcn.180043580
mov rdx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x180064434
mov rsi, qword [rbx]
lea rbp, [rdx + rsi]
mov rdi, rsi
jmp 0x18006443e
lea rbp, [rdx + rbx]
mov rdi, rbx
mov rsi, rbx
cmp rdi, rbp
je 0x18006445e
sub rsi, rdi
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [rsi + rdi], al
inc rdi
cmp rdi, rbp
jne 0x180064446
mov rdx, qword [rbx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x18006446b
mov r8, qword [rbx]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x1800644a4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, rdx
jb 0x180064490
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.180071d80
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1800644cc
cmp rcx, qword [r14 + 8]
je 0x1800644cc
mov rsi, qword [rcx + 0x30]
jmp 0x180064586
mov rcx, qword [r14 + 0x48]
sub rcx, qword [r14 + 0x40]
movabs rax, 0x8888888888888889
imul rcx
lea rsi, [rcx + rdx]
sar rsi, 6
mov rax, rsi
shr rax, 0x3f
add rsi, rax
mov r8, rbx
lea rdx, [rsp + 0x88]
mov rcx, r14
call fcn.18006c800
mov rcx, qword [rax]
mov qword [rcx + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.1800676c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
mov rdi, qword [r14 + 0x48]
cmp rdi, qword [r14 + 0x50]
je 0x18006455d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov rcx, rdi
call fcn.180066110
nop
lea rcx, [rdi + 0x20]
lea rdx, [rsp + 0x30]
call fcn.180076690
nop
add qword [r14 + 0x48], 0x78
jmp 0x180064572
lea r9, [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
lea rcx, [r14 + 0x40]
call fcn.18006ba40
nop
lea rcx, [rsp + 0x70]
call fcn.180068760
lea rcx, [rsp + 0x30]
call fcn.180044a60
imul rdi, rsi, 0x78
add rdi, qword [r14 + 0x40]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800645c4
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800645bf
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180064603
mov rcx, r8
call fcn.1800d0fac
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
lea rax, [rdi + 0x20]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800d0cf0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180064a10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180064a47
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180064a68
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180064a6a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180064ac3
test ecx, ecx
jle 0x180064aa3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180064ac3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180064ac3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180064af0
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 0x180064b12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180064b28
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 0x180064b44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180064b46
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x180064b80
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180064c27
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x180064bbb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x180064c01
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x180064c40
cmp rbx, rax
ja 0x180064bd0
mov r8, rdi
test rdi, rdi
je 0x180064c27
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x180064c2a
Function at 0x180065040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18006506d
xor eax, eax
jmp 0x1800651c2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180065098
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180065098
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1800651c2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800651b5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1800650db
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x180065106
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 0x1800651ba
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 0x180065175
sub eax, 1
je 0x180065175
cmp eax, 2
jne 0x1800651b5
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 0x1800651ba
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800651a3
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 0x1800651b5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1800651ba
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800d0cf0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180067390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180109070]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180067463
cmp byte [rcx + 0x71], 0
je 0x180067463
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x18006745f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180067424
sub eax, 1
je 0x180067428
cmp eax, 2
jne 0x18006745f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d0cf0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180067456
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18006745f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18006740c
xor al, al
jmp 0x18006740c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d0cf0
add rsp, 0x60
pop rbx
ret