joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002afa0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
lea rax, vtable.osc::UdpSocket.0
mov qword [rcx], rax
mov ecx, gethostbyname
call fcn.1400be430
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002b067
mov rcx, rax
call fcn.14002a010
nop
mov word [rbx + 1], 0
mov qword [rbx + 8], 0xffffffffffffffff
xor r8d, r8d
mov esi, 2
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14002b080
cmp dword [0x1403ac2c8], 0
jbe 0x14002b05a
mov dword [rsp + 0x20], 4
lea r9, [0x1403ac2c8]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [0x1403ac2c8]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_setsockopt]
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
mov word [rbx + 0x20], si
jmp 0x14002b069
xor ebx, ebx
mov qword [rdi + 8], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea rdx, str.unable_to_create_udp_socket_n
lea rcx, [rsp + 0x30]
call fcn.14002b0b0
lea rdx, [0x140388e10]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14002b370
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, qword [rcx + 8]
xor ebp, ebp
mov ecx, dword [rdx]
mov eax, 2
mov qword [rsp + 0x58], rbp
movzx esi, r8b
mov word [rsp + 0x50], ax
mov rdi, rdx
cmp ecx, 0xffffffff
jne 0x14002b3b4
mov dword [rsp + 0x54], ebp
jmp 0x14002b3be
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x54], eax
mov ecx, dword [rdi + 4]
cmp ecx, 0xffffffff
jne 0x14002b3cd
mov word [rsp + 0x52], bp
jmp 0x14002b3d8
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov byte [rsp + 0x30], sil
mov r8d, 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x14002b439
mov byte [rbx + 1], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400be7c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.unable_to_bind_udp_socket_n
lea rcx, [rsp + 0x38]
call fcn.14002b0b0
lea rdx, [0x140388e10]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14002b480
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, qword [rcx + 8]
movzx ebx, r8b
lea rcx, [rsi + 0x10]
call fcn.14002bb20
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov byte [rsp + 0x70], bl
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 8]
lea rdx, [rsi + 0x10]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x14002b4f2
mov rbx, qword [rsp + 0x60]
mov byte [rsi + 2], 1
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea rdx, str.unable_to_connect_udp_socket_n
lea rcx, [rsp + 0x30]
call fcn.14002b0b0
lea rdx, [0x140388e10]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140035a20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x20], r9d
mov r12d, r8d
mov rdi, rcx
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor ebp, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rbp
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], bpl
jne 0x140035a80
lea rcx, [rsp + 0x30]
call fcn.1400043c0
nop
mov r13, qword [rdi + 0x60]
lea rdi, [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x48]
cmp r14, 0xf
cmova rdi, rbx
movabs rdx, 0xcbf29ce484222325
mov rcx, rbp
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x140035ae3
movabs r8, 0x100000001b3
movzx eax, byte [rcx + rdi]
xor rdx, rax
imul rdx, r8
inc rcx
cmp rcx, rsi
jb 0x140035ad0
mov rcx, qword [r13 + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [r13 + 0x18]
mov rdi, qword [rax + rcx*8 + 8]
mov r15, qword [r13 + 8]
cmp rdi, r15
jne 0x140035b04
mov rdi, rbp
jmp 0x140035b4d
mov rbp, qword [rax + rcx*8]
nop dword [rax + rax]
lea rdx, [rdi + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140035b22
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
cmp r14, 0xf
cmova rcx, rbx
cmp rsi, rax
jne 0x140035b40
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140035b4d
cmp rdi, rbp
je 0x140035b4b
mov rdi, qword [rdi + 8]
jmp 0x140035b10
xor edi, edi
test rdi, rdi
cmovne r15, rdi
cmp r15, qword [r13 + 8]
je 0x140035bbb
mov rbp, qword [r15 + 0x30]
mov rcx, rbp
call fcn.140037690
test rax, rax
je 0x140035bbb
mov dword [rsp + 0x54], r12d
mov ecx, dword [rsp + 0x20]
mov dword [rsp + 0x58], ecx
mov rcx, qword [rsp + 0x28]
mov dword [rsp + 0x50], ecx
mov edx, dword [rsp + 0x1e8]
mov dword [rsp + 0x5c], edx
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x164], 0
lea rsi, [rsp + 0x50]
mov rdi, rax
mov ecx, 0x46
rep movsd dword [rdi], dword [rsi]
mov rcx, rbp
call fcn.1400378d0
mov dil, 1
jmp 0x140035bbe
xor dil, dil
cmp r14, 0xf
jbe 0x140035bf8
lea rdx, [r14 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140035bf0
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035bf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400be46c
movzx eax, dil
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400be7c0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140035c30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], r9d
mov r14d, r8d
mov dword [rsp + 0x38], r8d
mov rbp, rdx
mov r13, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [r8 + rdx], dil
jne 0x140035c90
lea rcx, [rsp + 0x50]
call fcn.1400043c0
nop
mov r15, qword [r13 + 0x60]
lea r8, [rsp + 0x50]
mov r12, qword [rsp + 0x50]
mov r9, qword [rsp + 0x68]
cmp r9, 0xf
cmova r8, r12
movabs rdx, 0xcbf29ce484222325
mov rcx, rdi
mov rsi, qword [rsp + 0x60]
test rsi, rsi
je 0x140035cf4
movabs r10, 0x100000001b3
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, rsi
jb 0x140035ce0
mov rcx, qword [r15 + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [r15 + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
mov r15, qword [r15 + 8]
cmp rbx, r15
je 0x140035d6c
mov r14, qword [rax + rcx*8]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140035d32
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
cmp r9, 0xf
cmova rcx, r12
cmp rsi, rax
jne 0x140035d55
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140035d60
mov r9, qword [rsp + 0x68]
cmp rbx, r14
je 0x140035d67
mov rbx, qword [rbx + 8]
jmp 0x140035d20
mov r14d, dword [rsp + 0x38]
jmp 0x140035d6f
mov r14d, dword [rsp + 0x38]
mov rbx, rdi
test rbx, rbx
cmovne r15, rbx
mov rax, qword [r13 + 0x60]
cmp r15, qword [rax + 8]
jne 0x140035df4
mov ecx, gethostbyname
call fcn.1400be430
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140035d9f
mov rcx, rax
call fcn.1400373e0
mov rdi, rax
mov r8d, 0x118
mov rdx, rbp
mov rcx, rdi
call fcn.140037480
test eax, eax
jne 0x140035dda
test rdi, rdi
je 0x140035dce
mov rcx, rdi
call fcn.140037400
mov edx, gethostbyname
mov rcx, rdi
call fcn.1400be46c
mov rcx, r13
call fcn.1400378d0
xor bl, bl
jmp 0x140035e26
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
mov rcx, qword [r13 + 0x60]
call fcn.140033d70
mov rcx, qword [rax]
mov qword [rcx + 0x30], rdi
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8d, r14d
mov rdx, rbp
mov rcx, r13
call fcn.140035a20
test al, al
jne 0x140035e24
xor bl, bl
jmp 0x140035e26
mov bl, 1
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140035e66
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035e61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035e61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400be46c
movzx eax, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140037480
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0
je 0x1400374b9
mov eax, 3
jmp 0x14003766f
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
mov rbx, 0xffffffffffffffff
lea r8d, [r9 + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 8], rax
test rax, rax
je 0x14003753c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0xb7
jne 0x1400374fa
lea r14d, [rbx + 2]
jmp 0x140037512
mov r14d, ebp
test eax, eax
je 0x140037512
mov r8d, eax
mov edx, eax
lea rcx, [0x140299028]
call fcn.140037f60
mov qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi], rax
test rax, rax
jne 0x140037543
mov rcx, rdi
call fcn.140037410
xor eax, eax
jmp 0x14003766f
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], bpl
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140037560
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140008b10
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x1400375c5
lea rax, [rcx + 6]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x38]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x38]
add rbx, rcx
mov r8d, 6
lea rdx, str._mutex
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 6], 0
jmp 0x1400375ea
mov qword [rsp + 0x20], 6
lea r9, str._mutex
movzx r8d, byte [rsp + 0x30]
mov edx, 6
lea rcx, [rsp + 0x38]
call fcn.140011960
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140037618
mov rcx, rdi
call fcn.140037410
jmp 0x14003762d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rdi + 0x20], rax
mov dword [rdi + 0x28], r15d
lea ebp, [r14 + 1]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x14003766d
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037668
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037668
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400be46c
mov eax, ebp
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400be7c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140037ec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov dword [rsp + 0x58], 0x104
mov rbx, r9
mov rdi, r8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
cmp byte [rdx], al
je 0x140037f46
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140037f46
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x40
pop rdi
ret
Function at 0x1400383f0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor esi, esi
mov dword [rsp + 0x58], r9d
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x50], rsi
cmp byte [rdx], sil
je 0x1400384ee
mov r8, rdx
lea rcx, [rsp + 0x60]
mov edx, 0x200
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140038498
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400384e2
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400384f2
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400384f2
lea rcx, str.WriteDwordToRegistry___could_not_write_to_registry
call fcn.140037ff0
xor al, al
jmp 0x1400384f4
mov al, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret

Function at 0x140038510
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400385e3
cmp byte [rcx + 0x71], 0
je 0x1400385e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400385df
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 0x1400385a4
sub eax, 1
je 0x1400385a8
cmp eax, 2
jne 0x1400385df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400385d6
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 0x1400385df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003858c
xor al, al
jmp 0x14003858c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x60
pop rbx
ret
Function at 0x140038de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140038e0d
xor eax, eax
jmp 0x140038f76
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 0x140038e4d
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 0x140038e4d
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 0x140038f6e
cmp qword [rdi + 0x80], 0
je 0x140038f69
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 0x140038e87
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 0x140038eb2
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 0x140038f6e
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 0x140038f21
sub eax, 1
je 0x140038f21
cmp eax, 2
jne 0x140038f69
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 0x140038f6e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140038f4f
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 0x140038f69
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140038f6e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400be7c0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400396d0
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 0x140039701
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 0x14003971f
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 0x140039769
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 0x1400397e1
mov rcx, rbp
call fcn.140038620
cmp rbx, 0xfff
jbe 0x1400397c1
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 0x140039802
cmp rbx, rax
ja 0x140039790
test rdi, rdi
je 0x1400397e1
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 0x1400397e4
Function at 0x140039810
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 0x140039838
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 0x1400398ac
test rax, rax
jle 0x14003988c
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 0x1400398ac
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400398ac
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