joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c5a4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140048f50]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140022bdc
xor ebx, ebx
cmp qword [0x14004c348], rbx
mov rdi, rax
jne 0x14002c6b7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002c78e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002c78e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x14003cef8]
mov rcx, rsi
mov qword [0x14004c348], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14004c350], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14004c358], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14004c368], rax
test rax, rax
je 0x14002c6ae
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14004c360], rax
jmp 0x14002c6be
mov rax, qword [0x14004c360]
jmp 0x14002c6c5
mov rax, qword [0x14004c360]
mov r11, qword [0x14004c368]
cmp rax, rdi
je 0x14002c72c
cmp r11, rdi
je 0x14002c72c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14004c368]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14002c72c
test rax, rax
je 0x14002c72c
call rsi
test rax, rax
je 0x14002c726
lea rcx, [rsp + 0x30]
mov r9d, InitCommonControls
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14002c726
test byte [rsp + 0x40], 1
jne 0x14002c72c
bts ebp, 0x15
jmp 0x14002c76c
mov rcx, qword [0x14004c350]
cmp rcx, rdi
je 0x14002c76c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002c76c
call rax
mov rbx, rax
test rax, rax
je 0x14002c76c
mov rcx, qword [0x14004c358]
cmp rcx, rdi
je 0x14002c76c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002c76c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004c348]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14002c78e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14002c790
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001eba0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000a140
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movaps xmmword [rax - 0x28], xmm6
mov r15, rcx
test r8, r8
je 0x18000a268
mov rdi, rcx
lea rbp, [r8 - 1]
sub rdi, rdx
shr rbp, 4
add rdi, 0xf0
lea rsi, [rdx + 9]
inc rbp
lea rbx, [rsi - 9]
mov r8, r15
movups xmm6, xmmword [rbx]
mov rdx, rbx
mov cl, 0xe
call fcn.18000a2b8
mov r14b, 0xd
mov al, byte [rsi]
mov rdx, rbx
mov cl, byte [rsi + 4]
mov r9d, 4
mov byte [rsi + 4], al
mov al, byte [rsi - 4]
mov byte [rsi], al
mov al, byte [rsi - 8]
mov byte [rsi - 4], al
mov al, byte [rsi + 1]
mov byte [rsi - 8], cl
mov cl, byte [rsi - 7]
mov byte [rsi - 7], al
mov al, byte [rsi + 5]
mov byte [rsi + 1], cl
mov cl, byte [rsi - 3]
mov byte [rsi - 3], al
mov al, byte [rsi - 2]
mov byte [rsi + 5], cl
mov cl, byte [rsi - 6]
mov byte [rsi - 6], al
mov al, byte [rsi + 2]
mov byte [rsi - 2], al
mov al, byte [rsi + 6]
mov byte [rsi + 2], al
mov byte [rsi + 6], cl
mov rcx, rdx
mov r8d, 4
movzx eax, byte [rcx]
lea r10, [0x1800384a0]
mov al, byte [rax + r10]
mov byte [rcx], al
lea rcx, [rcx + 4]
sub r8, 1
jne 0x18000a1f3
inc rdx
sub r9, 1
jne 0x18000a1ea
mov r8, r15
mov rdx, rbx
mov cl, r14b
call fcn.18000a2b8
test r14b, r14b
je 0x18000a23a
mov rcx, rbx
call fcn.18000a470
add r14b, 0xff
jmp 0x18000a19b
mov ecx, 0x10
mov al, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x18000a23f
add rsi, 0x10
sub rdi, 0x10
movdqu xmmword [r15 + 0xf0], xmm6
sub rbp, 1
jne 0x18000a184
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18000a2b8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x20], 0xca72608a
xor r11b, r11b
mov al, byte [0x18004f05e]
mov rdi, r8
movsx eax, word [0x18004f014]
mov dword [rsp + 0x20], eax
movzx eax, byte [0x18004f03d]
mov word [rsp + 0x20], ax
mov al, byte [0x18004f08c]
mov byte [rsp + 0x20], al
mov rax, qword [0x18004f0c0]
mov word [rsp + 0x20], ax
movzx eax, word [0x18004f0e4]
mov qword [rsp + 0x20], rax
mov eax, dword [0x18004f0f8]
mov bl, byte [0x18004f0b8]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x20], 0x42
mov byte [rsp + 0x20], 7
mov rax, qword [0x18004f0c8]
mov byte [rsp + 0x20], al
movsx rax, word [0x18004f0d8]
mov byte [rsp + 0x20], al
mov qword [rsp + 0x20], 0x18ebfeaf
mov qword [rsp + 0x20], rax
mov al, byte [0x18004f100]
mov byte [rsp + 0x20], al
mov rax, qword [0x18004f0a8]
mov dword [rsp + 0x20], eax
movabs rax, 0x8bc321f7aa9be
mov qword [rsp + 0x20], rax
mov al, byte [str.G3No_more_handles_co]
mov al, byte [0x18004f03d]
mov byte [rsp + 0x20], al
movzx eax, byte [str.G3No_more_handles_co]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x20], 0xba60a159
movsx eax, word [0x18004f014]
mov dword [rsp + 0x20], eax
mov rax, qword [0x18004f0a8]
mov qword [rsp + 0x20], rax
mov eax, dword [0x18004f0f8]
mov byte [rsp + 0x20], al
movzx eax, byte [0x18004f03d]
mov word [rsp + 0x20], ax
movzx eax, word [0x18004f05c]
mov byte [rsp + 0x20], 0x2e
mov qword [rsp + 0x20], rax
movzx eax, byte [str.G3No_more_handles_co]
mov word [rsp + 0x20], ax
mov rax, qword [0x18004f0c8]
mov rax, qword [0x18004f0c8]
movzx r10d, cl
mov dword [rsp + 0x20], 0x6657
mov al, byte [0x18004f03f]
shl r10d, 2
movzx r8d, r11b
xor r9b, r9b
add r8d, r10d
shl r8d, 2
movzx eax, r9b
inc r9b
add eax, r8d
mov cl, byte [rax + rdi]
xor byte [rdx], cl
inc rdx
cmp r9b, 4
jb 0x18000a412
inc r11b
cmp r11b, 4
jb 0x18000a404
cmp byte [0x18004f07a], 0
je 0x18000a456
mov rax, qword [0x18004f0c0]
sub al, 0x53
add bl, 0x13
mov byte [0x18004f07a], al
mov byte [0x18004f03e], bl
jmp 0x18000a460
mov dword [0x18004f0ec], 0x68
mov rbx, qword [rsp + 8]
xor eax, eax
mov rdi, qword [rsp + 0x10]
ret
Function at 0x18002f4b4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x18002f38b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18002f38b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18002f38b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18002f38b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002f38b
cmp dword [rcx + 0x84], 0xe
jbe 0x18002f38b
cmp dword [rcx + 0xf8], 0
je 0x18002f38b
mov ecx, ebx
call fcn.18002f42c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.18002f21c
cmp dword [rbp + 0x20], 0
je 0x18002f3d8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18002f3e0
int3
xor r8d, r8d
xor edx, edx
jmp 0x18002f324
Function at 0x180002350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rsi
push rdi
sub rsp, 0x98
mov byte [rsp + 2], 1
mov dword [rsp + 0xc], 9
lea rax, [rsp + 0x38]
lea rcx, str.CXvubjsNmgPTzVxicO
mov rdi, rax
mov rsi, rcx
mov ecx, 0x13
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x18], 0
mov qword [rsp + 0x20], 8
mov byte [rsp + 1], 0
jmp 0x1800023b1
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x18000248f
mov byte [rsp], 0
jmp 0x1800023ce
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x18000248a
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0xb8]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0xb0]
shl edx, 2
movzx edi, byte [rsp + 1]
shl edi, 2
lea edx, [rdi + rdx*4]
movzx edi, byte [rsp]
add edx, edi
movsxd rdx, edx
mov rdi, qword [rsp + 0xc0]
movzx edx, byte [rdi + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov rdi, qword [rsp + 0xb8]
lea rdx, [rdi + rdx*4]
mov byte [rdx + rcx], al
lea rax, [rsp + 0x50]
lea rcx, str.xcgNdUZFqrBmVQplfRJHznDMaCAehYTGiEtKOWkIXovsbuLwj
mov rdi, rax
mov rsi, rcx
mov ecx, 0x32
rep movsb byte [rdi], byte [rsi]
mov eax, 3
mov word [rsp + 4], ax
mov eax, 7
mov word [rsp + 8], ax
mov byte [rsp + 3], 1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x10], 9
mov qword [rsp + 0x30], 9
jmp 0x1800023c5
jmp 0x1800023a6
add rsp, 0x98
pop rdi
pop rsi
ret

Function at 0x1800024a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 0x10], 1
mov qword [rsp + 0x18], 6
mov byte [rsp + 2], 0x72
mov byte [rsp + 3], 1
mov byte [rsp + 1], 0
jmp 0x1800024d6
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x180002555
mov byte [rsp], 0
jmp 0x1800024ef
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x180002550
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x180011f40]
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x30]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
mov byte [rsp + 4], 0x66
mov eax, 2
mov word [rsp + 8], ax
mov eax, 1
mov word [rsp + 0xc], ax
mov byte [rsp + 5], 1
jmp 0x1800024e6
jmp 0x1800024cb
add rsp, 0x28
ret
Function at 0x180003130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [0x180016040]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov byte [rsp + 0x28], 0x68
mov byte [rsp + 0x29], 1
mov eax, 9
mov word [rsp + 0x60], ax
mov byte [rsp + 0x2a], 0x63
mov eax, 8
mov word [rsp + 0x64], ax
mov dword [rsp + 0x68], 0
mov byte [rsp + 0x2b], 1
mov eax, 2
mov word [rsp + 0x34], ax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x10
jmp 0x1800031ba
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x130]
cmp dword [rsp + 0x24], eax
jae 0x1800033f9
lea rax, [rsp + 0xe0]
mov rcx, qword [rsp + 0x120]
mov rdi, rax
lea rsi, [rcx + 0xb0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x6c], 4
mov byte [rsp + 0x2c], 0x70
mov rax, qword [rsp + 0x120]
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.180002f20
mov eax, 5
mov word [rsp + 0x38], ax
mov eax, 1
mov word [rsp + 0x3c], ax
mov qword [rsp + 0x80], 5
mov byte [rsp + 0x2d], 0x42
mov dword [rsp + 0x20], 0xf
jmp 0x180003253
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jl 0x18000338a
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
movzx eax, byte [rcx + rax + 0xb0]
cmp eax, 0xff
jne 0x18000330e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
mov byte [rcx + rax + 0xb0], 0
mov dword [rsp + 0x70], 8
lea rax, [rsp + 0xb8]
lea rcx, str.qJayvzRDiLktKMC
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, 7
mov word [rsp + 0x40], ax
jmp 0x180003249
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x120]
movzx eax, byte [rcx + rax + 0xb0]
inc eax
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x120]
mov byte [rdx + rcx + 0xb0], al
jmp 0x18000338a
mov dword [rsp + 0x20], 0
mov eax, 6
mov word [rsp + 0x54], ax
mov byte [rsp + 0x31], 0x70
mov eax, 7
mov word [rsp + 0x58], ax
mov byte [rsp + 0x32], 1
mov qword [rsp + 0xa0], 4
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0xe0]
xor eax, ecx
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x128]
mov byte [rdx + rcx], al
mov eax, 4
mov word [rsp + 0x5c], ax
jmp 0x1800031a6
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18000cd50
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x180007ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x180007f29
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x180008017
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
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 qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x180007fbf
cmp qword [rsp + 0x20], 0
jle 0x180007fbf
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x180007f69
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
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, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.18000a5e0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x180008007
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x180008007
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x180008020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180016040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x180008054
xor eax, eax
jmp 0x180008206
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18000807d
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call 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]
jmp 0x180008206
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x18000811c
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.180008220
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
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, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.18000a5e0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1800081f6
mov rcx, qword [rsp + 0x70]
call fcn.180009890
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x1800081bd
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1800081bb
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x180008206
jmp 0x180008142
cmp qword [rsp + 0x40], 0
jbe 0x1800081f6
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000cd50
add rsp, 0x68
ret
Function at 0x180009950
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x180016040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x18000998d
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180009994
mov al, 1
jmp 0x180009ad8
call fcn.18000a4f0
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.18000a4f0
mov ecx, dword [rsp + 0x38]
mov edx, ecx
mov ecx, eax
call fcn.18000a550
movzx eax, al
test eax, eax
je 0x1800099df
xor al, al
jmp 0x180009ad8
mov qword [rsp + 0x50], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180009a45
cmp dword [rsp + 0x30], 1
je 0x180009a51
cmp dword [rsp + 0x30], 3
je 0x180009ac6
jmp 0x180009ad6
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x180009a9d
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x180009a9d
xor al, al
jmp 0x180009ad8
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180009ab7
mov dword [rsp + 0x34], 1
jmp 0x180009abf
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x180009ad8
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180009ad8
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18000cd50
add rsp, 0x98
ret
Function at 0x140016e60
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140161b60], rbx
je 0x140016ec7
cmp rax, rbx
jne 0x140016eba
mov ebx, 1
mov esi, ebx
jmp 0x140016ecc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140016e9f
mov ebx, 1
mov eax, dword [0x140161b68]
cmp eax, ebx
jne 0x140016ee4
mov edi, 0x1f
mov ecx, edi
call fcn.1401fe000
jmp 0x140016f50
mov eax, dword [0x140161b68]
test eax, eax
jne 0x140016f45
mov dword [0x140161b68], ebx
lea r15, [0x1400fb010]
lea rdi, [0x1400faff8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140016f37
test eax, eax
jne 0x140016f3b
cmp qword [rdi], r14
je 0x140016f2c
mov rax, qword [rdi]
mov rcx, qword [0x1400faf30]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140016f0e
test eax, eax
je 0x140016f4b
mov eax, 0xff
jmp 0x1400170a6
mov dword [0x140161554], ebx
mov edi, 0x1f
mov eax, dword [0x140161b68]
cmp eax, ebx
jne 0x140016f77
lea rdx, [0x1400faff0]
lea rcx, [0x1400faf38]
call sub.msvcrt.dll__initterm
mov dword [0x140161b68], 2
test esi, esi
jne 0x140016f85
mov rax, r14
xchg qword [0x140161b60], rax
cmp qword [0x140161b80], r14
je 0x140016fb8
lea rcx, [0x140161b80]
call fcn.140017980
test eax, eax
je 0x140016fb8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140161b80]
mov r9, qword [0x1400faf30]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140016fd1
mov eax, 0xff
jmp 0x1400170a6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140017057
test ax, ax
je 0x140016fec
test edx, edx
jne 0x140017057
sub ax, bx
cmp ax, di
ja 0x140017002
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140016fec
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140014730
mov dword [0x140161550], eax
cmp dword [0x140161570], r14d
jne 0x140017040
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140161554], r14d
jne 0x140017055
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140161550]
jmp 0x1400170a6
cmp ax, 0x22
jne 0x14001706b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140016fda
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140017a14
add rsp, 0x28
jmp 0x140016e60