joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004e2e0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004e40a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18004e401
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18004e3e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18004e3e4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18004e3e4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18004e3a2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800ff000]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18004e401
jmp 0x18004e3d7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18004e3d7
mov rcx, qword [0x1800ff000]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18004e401
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18004e350
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18004e463
cmp dword [rbx + 0xc], esi
jbe 0x18004e463
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004e45c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18004e7d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18004e420
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b5ef0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18004e980
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18004e9ef
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18004e9d8
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004e9cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18004e9a0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800ff000]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18005c4b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [0x1800ff0a0]
xor r12d, r12d
mov r15, rdx
mov r13, rcx
mov r8, qword [rax + 8]
sub r8, qword [rax]
sar r8, 3
test r8, r8
je 0x18005c663
lea edx, [r12 + 0xf]
nop
mov rdi, qword [r13]
add rdi, 0xd0
mov dword [rbp - 0x38], 0x86948f89
xor eax, eax
mov dword [rbp - 0x34], 0x9589918a
mov word [rbp - 0x30], 0x91
mov byte [rbp - 0x2e], 1
nop word [rax + rax]
lea ecx, [rax - 0x20]
xor byte [rbp + rax - 0x38], cl
inc rax
cmp rax, 9
jb 0x18005c530
movzx eax, byte [rbp - 0x30]
lea rcx, [rbp - 0x28]
xorps xmm0, xmm0
mov byte [rbp - 0x2e], 0
cmp qword [rdi + 0x18], 0x10
movups xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x20], al
movsd xmm0, qword [rbp - 0x38]
mov rax, qword [rdi + 0x10]
movsd qword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 9
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x1f], 0
jb 0x18005c57e
mov rdi, qword [rdi]
cmp rax, 9
jb 0x18005c5ec
movsx r14d, byte [rcx]
lea rsi, [rax + rdi]
lea r8, [rsi - 8]
mov edx, r14d
sub r8, rdi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x18005c5e7
nop word [rax + rax]
mov r8d, 9
lea rdx, [rbp - 0x28]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18005c6a8
inc rbx
lea r8, [rsi - 8]
sub r8, rbx
mov rcx, rbx
mov edx, r14d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x18005c5b0
mov edx, reloc.WS2_32.dll_ntohs
mov rbx, 0xffffffffffffffff
cmp rdx, 0x10
jb 0x18005c62f
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c625
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c6b5
call fcn.1800b593c
mov edx, reloc.WS2_32.dll_ntohs
cmp rbx, 0xffffffffffffffff
je 0x18005c642
mov rax, qword [r15]
cmp rax, qword [r15 + 8]
je 0x18005c642
mov qword [r15 + 8], rax
mov rax, qword [0x1800ff0a0]
inc r12d
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 3
mov eax, r12d
cmp rax, rcx
jb 0x18005c500
mov r8, qword [r13]
lea rdx, [rbp - 0x38]
add r8, 0xd0
lea rcx, [0x1800ff240]
call fcn.1800507b0
mov rcx, qword [rax]
inc dword [rcx + 0x40]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800b5ef0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rbx, rdi
mov edx, reloc.WS2_32.dll_ntohs
jmp 0x18005c5f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18005c6c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rbp - 8], rax
mov rax, qword [0x1800ff0a0]
xor r12d, r12d
mov r15, rdx
mov r13, rcx
mov r8, qword [rax + 8]
sub r8, qword [rax]
sar r8, 3
test r8, r8
je 0x18005c873
lea edx, [r12 + 0xf]
nop
mov rdi, qword [r13]
add rdi, 0xd0
mov dword [rbp - 0x38], 0x80839193
xor eax, eax
mov dword [rbp - 0x34], 0x8885c881
mov dword [rbp - 0x30], 0x1008c9a
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x20]
xor byte [rbp + rax - 0x38], cl
inc rax
cmp rax, 0xa
jb 0x18005c740
movzx eax, word [rbp - 0x30]
lea rcx, [rbp - 0x28]
xorps xmm0, xmm0
mov byte [rbp - 0x2d], 0
cmp qword [rdi + 0x18], 0x10
movups xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x20], ax
movsd xmm0, qword [rbp - 0x38]
mov rax, qword [rdi + 0x10]
movsd qword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0xa
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x1e], 0
jb 0x18005c78f
mov rdi, qword [rdi]
cmp rax, 0xa
jb 0x18005c7fc
movsx r14d, byte [rcx]
lea rsi, [rax + rdi]
lea r8, [rsi - 9]
mov edx, r14d
sub r8, rdi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x18005c7f7
nop word [rax + rax]
mov r8d, 0xa
lea rdx, [rbp - 0x28]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18005c8b8
inc rbx
lea r8, [rsi - 9]
sub r8, rbx
mov rcx, rbx
mov edx, r14d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x18005c7c0
mov edx, reloc.WS2_32.dll_ntohs
mov rbx, 0xffffffffffffffff
cmp rdx, 0x10
jb 0x18005c83f
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c835
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c8c5
call fcn.1800b593c
mov edx, reloc.WS2_32.dll_ntohs
cmp rbx, 0xffffffffffffffff
je 0x18005c852
mov rax, qword [r15]
cmp rax, qword [r15 + 8]
je 0x18005c852
mov qword [r15 + 8], rax
mov rax, qword [0x1800ff0a0]
inc r12d
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 3
mov eax, r12d
cmp rax, rcx
jb 0x18005c710
mov r8, qword [r13]
lea rdx, [rbp - 0x38]
add r8, 0xd0
lea rcx, [0x1800ff240]
call fcn.1800507b0
mov rcx, qword [rax]
inc dword [rcx + 0x40]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800b5ef0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rbx, rdi
mov edx, reloc.WS2_32.dll_ntohs
jmp 0x18005c803
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x18005c8d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rsp + 0x48], rax
movsd xmm6, qword [0x1800c7738]
movabs rsi, 0x311cdad160000
movabs rbp, 0x112e0be826d694b3
movabs r15, 0x7fffffffc46535ff
movabs r14, 0x7fffffffffffffff
nop dword [rax]
movdqa xmm0, xmmword [0x1800c7aa0]
xor ecx, ecx
movdqu xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x30], 0x100
nop word [rax + rax]
lea eax, [rcx - 0x20]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 0x10
jb 0x18005c950
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x31], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x18005ca83
cmp byte [reloc.WS2_32.dll_accept], al
je 0x18005caae
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x18005c9a3
imul rax, rax, 0x64
jmp 0x18005c9c1
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
lea rdi, [rax + 0x3b9aca00]
cmp rax, r15
jl 0x18005c9d0
mov rdi, r14
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x18005c9ec
imul rbx, rax, 0x64
jmp 0x18005ca0d
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rbx, rax
imul rax, rcx, 0x3b9aca00
add rbx, rax
cmp rbx, rdi
jge 0x18005c930
call sub.MSVCP140.dll__Xtime_get_ticks
imul rdx, rax, 0x64
xorps xmm0, xmm0
mov rax, rdi
sub rax, rbx
lea rcx, [rdx + rsi]
cvtsi2sd xmm0, rax
comisd xmm0, xmm6
seta r8b
test r8b, r8b
jne 0x18005ca42
lea rcx, [rax + rdx]
add rax, rdx
add rdx, rsi
test r8b, r8b
cmove rdx, rax
mov rax, rbp
imul rdx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3b9aca00
mov qword [rsp + 0x38], rdx
sub ecx, eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x38]
call sub.MSVCP140.dll__Thrd_sleep
jmp 0x18005c9d0
mov ecx, 3
call fcn.18004cf50
test eax, eax
jne 0x18005ca83
lea ecx, [rax + 8]
lea r8, [0x1800619d0]
lea rdx, [0x1800ff040]
call fcn.18004cea0
mov byte [reloc.WS2_32.dll_accept], 0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800b5ef0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [rsp + 0x50]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18005e1b0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push r12
push r15
sub rsp, 0x78
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, qword [0x1800ff0a0]
xor r12d, r12d
mov rcx, qword [r15 + 8]
mov rdx, qword [r15]
mov rax, rcx
sub rax, rdx
sar rax, 3
test rax, rax
je 0x18005e37c
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x20], r13
lea r13d, [r12 + 0xf]
mov qword [r11 - 0x28], r14
xor r14d, r14d
mov qword [r11 - 0x18], rdi
nop
sub rcx, rdx
sar rcx, 3
cmp rcx, r14
jbe 0x18005e3a0
mov rdi, qword [rdx + r14*8]
add rdi, 0xd0
mov dword [rsp + 0x28], 0xbc929396
xor eax, eax
mov dword [rsp + 0x2c], 0x8e8b8185
mov word [rsp + 0x30], 0x86
mov byte [rsp + 0x32], 1
nop dword [rax]
lea ecx, [rax - 0x20]
xor byte [rsp + rax + 0x28], cl
inc rax
cmp rax, 9
jb 0x18005e250
movzx eax, byte [rsp + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x32], 0
cmp qword [rdi + 0x18], 0x10
movsd xmm0, qword [rsp + 0x28]
mov qword [rsp + 0x50], r13
lea r13, [rsp + 0x38]
mov byte [rsp + 0x40], al
mov rax, qword [rdi + 0x10]
movsd qword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 9
mov byte [rsp + 0x41], 0
jb 0x18005e2a8
mov rdi, qword [rdi]
cmp rax, 9
jb 0x18005e305
movsx ebp, byte [r13]
lea rsi, [rax + rdi]
lea r8, [rsi - 8]
mov edx, ebp
sub r8, rdi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x18005e305
mov r8d, 9
mov rdx, r13
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x18005e392
inc rbx
lea r8, [rsi - 8]
sub r8, rbx
mov rcx, rbx
mov edx, ebp
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x18005e2d0
mov rbx, 0xffffffffffffffff
mov r13d, reloc.WS2_32.dll_ntohs
cmp rbx, 0xffffffffffffffff
je 0x18005e335
mov rcx, qword [r15]
mov rax, qword [r15 + 8]
sub rax, rcx
sar rax, 3
cmp rax, r14
jbe 0x18005e39a
mov rcx, qword [rcx + r14*8]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [r15 + 8]
inc r12d
mov rdx, qword [r15]
mov rax, rcx
sub rax, rdx
mov r14d, r12d
sar rax, 3
cmp r14, rax
jb 0x18005e210
mov rdi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800b5ef0
add rsp, 0x78
pop r15
pop r12
ret
sub rbx, rdi
jmp 0x18005e30c
call fcn.18005fc40
int3
call fcn.18005fc40
int3
Function at 0x18005ec00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18005ecd3
cmp byte [rcx + 0x71], 0
je 0x18005ecd3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x18005eccf
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 0x18005ec94
sub eax, 1
je 0x18005ec98
cmp eax, 2
jne 0x18005eccf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800b5ef0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18005ecc6
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 0x18005eccf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18005ec7c
xor al, al
jmp 0x18005ec7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800b5ef0
add rsp, 0x60
pop rbx
ret

Function at 0x18005fef0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x35], 0
je 0x18005ff13
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x20]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x34
jb 0x18005ff00
mov byte [rcx + 0x35], 0
mov rax, rcx
ret
Function at 0x180063000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1800fd258]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x18006302d
xor eax, eax
jmp 0x180063196
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x18006306d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x18006306d
mov rcx, rdi
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], sil
mov eax, esi
jmp 0x18006318e
cmp qword [rdi + 0x80], 0
je 0x180063189
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x1800630a7
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1800630d2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18006318e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x180063141
sub eax, 1
je 0x180063141
cmp eax, 2
jne 0x180063189
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18006318e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x18006316f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x180063189
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x18006318e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800b5ef0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180067a90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x180067ac1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x180067adf
mov rbp, qword [rsp + 0x40]
mov rsi, 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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x180067b29
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x180067ba1
mov rcx, rbp
call fcn.18005f840
cmp rbx, 0xfff
jbe 0x180067b81
nop word [rax + rax]
mov r9, qword [rbp + 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 0x180067bc2
cmp rbx, rax
ja 0x180067b50
test rdi, rdi
je 0x180067ba1
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x180067ba4
Function at 0x180067bd0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180067bf8
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x180067c6c
test rax, rax
jle 0x180067c4c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x180067c6c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180067c6c
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 + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret