joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e354
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rbx, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x14000e48a
mov eax, dword [0x140005570]
test eax, eax
je 0x14000e46a
mov ecx, eax
mov eax, dword [0x140005560]
add rcx, qword [rsp + 0x40]
cmp eax, 0x611
jg 0x14000e3c2
mov eax, dword [rbx + 4]
cmp eax, 1
jne 0x14000e3b1
bts dword [rcx], 0xb
jmp 0x14000e4aa
test eax, eax
jne 0x14000e4aa
btr dword [rcx], 0xb
jmp 0x14000e4aa
cmp eax, 0x620
jne 0x14000e3dd
cmp dword [rbx + 4], 2
je 0x14000e4aa
mov al, byte [rbx + 4]
mov byte [rcx], al
jmp 0x14000e4aa
cmp eax, 0x630
jl 0x14000e463
mov eax, dword [rbx + 4]
test eax, eax
jne 0x14000e3ef
mov byte [rcx], al
jmp 0x14000e3f7
cmp eax, 1
jne 0x14000e3f7
mov byte [rcx], 0x62
mov edx, dword [rbx + 8]
cmp edx, 2
je 0x14000e43a
mov eax, dword [0x140005574]
test eax, eax
je 0x14000e43a
mov ecx, eax
add rcx, qword [rsp + 0x40]
cmp dword [0x140005560], 0xa03
mov eax, dword [rcx]
jl 0x14000e42b
shl edx, 8
xor edx, eax
and edx, 0x100
jmp 0x14000e436
shl edx, 0xa
xor edx, eax
and edx, 0x400
xor edx, eax
mov dword [rcx], edx
mov edx, dword [rbx + 0xc]
cmp edx, 2
je 0x14000e4aa
mov eax, dword [0x140005570]
mov rcx, qword [rsp + 0x40]
cmp edx, 1
jne 0x14000e45b
mov word [rax + rcx - 2], 0x808
jmp 0x14000e4aa
and word [rax + rcx - 2], 0
jmp 0x14000e4aa
mov edi, 0xc00000bb
jmp 0x14000e4aa
xor edx, edx
lea r9, [0x1400106a0]
lea r8, [0x1400106b0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov edi, 0xc0000141
jmp 0x14000e4aa
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x1400106a0]
lea r8, [0x14000eca0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000e4ba
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140011000
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor ebx, ebx
mov r14, rcx
test rcx, rcx
jne 0x14001102e
mov eax, 0xc000000d
jmp 0x1400111e9
xorps xmm0, xmm0
mov dword [rbp - 0x19], 0x7e007c
lea rax, [0x140011c40]
mov dword [rbp + 7], 0x160014
mov qword [rbp - 0x11], rax
lea r8, [rbp + 0x17]
lea rax, [0x140011cc0]
mov dword [rbp - 9], 0x80006
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x6f]
lea rax, [0x140011ce0]
mov qword [rbp + 0x6f], rbx
mov qword [rbp - 1], rax
mov edx, 0x20019
lea rax, [rbp - 0x19]
mov qword [rbp + 0x17], 0x30
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp + 0x2f], 0x240
mov qword [rbp + 0x1f], rbx
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
test eax, eax
js 0x1400111c7
mov edx, 0x1000
mov ecx, 1
mov r8d, 0x6274754f
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [rbp + 0x67], ebx
mov rdi, rax
test rax, rax
je 0x1400111b6
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 9]
mov r9, rdi
mov dword [rsp + 0x20], 0x1000
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
lfence
test eax, eax
js 0x140011111
mov eax, dword [rdi + 8]
mov ecx, dword [rax + rdi]
mov dword [r14], ecx
jmp 0x1400111a6
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 7]
mov r9, rdi
mov dword [rsp + 0x20], 0x1000
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test eax, eax
js 0x1400111a6
lfence
mov r8d, dword [rdi + 0x10]
mov edx, dword [rdi + 0xc]
add r8, rdi
test edx, edx
je 0x1400111a6
mov r9d, ebx
cmp word [r8 + r9*2 + 0x14], 0x2e
jne 0x140011170
lea ecx, [rbx + 1]
jmp 0x14001116c
cmp word [r8 + rcx*2 + 0x14], 0x2e
je 0x140011178
inc ecx
cmp ecx, edx
jb 0x140011161
inc ebx
cmp ebx, edx
jb 0x140011150
jmp 0x1400111a6
add r8, 0x16
sub cx, bx
add cx, cx
mov edx, 0xa
mov word [rbp - 0x27], cx
mov word [rbp - 0x29], cx
lea rcx, [rbp - 0x29]
lea rax, [r8 + r9*2]
mov r8, r14
mov qword [rbp - 0x21], rax
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToInteger]
mov esi, eax
mov edx, 0x6274754f
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400111bb
mov esi, 0xc0000017
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400111e7
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140011cf0]
lea r8, [0x140011d00]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, esi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140011778
Capabilities:
Access pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15, qword [rsp + 0xa0]
mov rbp, r9
mov r12b, r8b
mov r13, rdx
test r15, r15
jne 0x1400117b8
mov eax, 0xc000000d
jmp 0x140011850
xor ecx, ecx
call fcn.14000bc48
mov rbx, rax
test rax, rax
je 0x14001184b
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
test rax, rax
jne 0x1400117e3
mov eax, 0xc000007b
jmp 0x140011850
lea r14, [rax + 0x108]
movzx eax, word [rax + 6]
mov rdi, r14
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp r14, rax
jae 0x14001184b
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
je 0x14001186e
movzx eax, word [rsi + 6]
add rdi, 0x28
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
cmp rdi, rax
jb 0x1400117fe
mov eax, 0xc0000225
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r9d, dword [rdi + 0xc]
lea rcx, [rsp + 0xa0]
mov eax, dword [rdi + 8]
add r9, rbx
and qword [rsp + 0xa0], 0
mov r8, rbp
mov qword [rsp + 0x28], rcx
mov dl, r12b
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140001fbc
test eax, eax
js 0x140011850
mov ecx, dword [rsp + 0xa0]
sub ecx, ebx
mov dword [r15], ecx
jmp 0x140011850
Function at 0x1400118b4
Capabilities:
Create device object

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x60
and qword [rax + 0x18], 0
mov rdi, rcx
call fcn.14000197c
lea rcx, [0x140005560]
call fcn.140011204
mov ebx, eax
test eax, eax
jns 0x14001190b
lfence
cmp eax, 0xc00000bb
jne 0x140011a6a
xor edx, edx
lea r9, [0x140011ae0]
lea r8, [0x140011af0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140011a6a
mov rcx, qword [rdi + 0x28]
call fcn.140008680
test eax, eax
jns 0x140011920
lfence
jmp 0x140011a6c
and qword [rsp + 0x20], 0
lea rax, [0x140005490]
lea r9, [0x14000c000]
mov qword [0x140005498], rax
lea r8, [0x14000bfa0]
mov qword [0x140005490], rax
lea rdx, [0x14000bfc0]
lea rcx, [0x1400054e0]
call qword [sym.imp.ntoskrnl.exe_RtlInitializeGenericTableAvl]
lea rcx, [0x1400054a0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeGuardedMutex]
xor edx, edx
lea rcx, [0x14000bb80]
call qword [sym.imp.ntoskrnl.exe_PsSetCreateProcessNotifyRoutine]
mov ebx, eax
test eax, eax
jns 0x1400119a4
lea r8, [0x140011b30]
lea r9, [0x140011ae0]
mov dword [rsp + 0x20], ebx
lfence
xor edx, edx
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x140011a6a
lea rdx, [0x140011b70]
lea rcx, [rsp + 0x40]
call fcn.140001050
lea rax, [rsp + 0x80]
mov r9d, 0x8005
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jns 0x1400119f1
lea r8, [0x140011b90]
jmp 0x140011986
lea rax, section.PAGE
mov qword [rdi + 0xe0], rax
lea rdx, [0x140011bd0]
mov qword [rdi + 0x80], rax
lea rcx, [rsp + 0x50]
mov qword [rdi + 0x70], rax
lea rax, section..text
mov qword [rdi + 0x68], rax
call fcn.140001050
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140011a6a
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140011ae0]
lea r8, [0x140011c00]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180004850
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1800671c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov byte [rsp + 0x28], 0
mov rbx, rcx
mov qword [rsp + 0x39], rax
xorps xmm0, xmm0
mov dword [rsp + 0x41], eax
lea rcx, [rsp + 0x28]
mov word [rsp + 0x45], ax
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x47], al
movups xmmword [rsp + 0x29], xmm0
mov dword [rsp + 0x20], 0x20
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
test eax, eax
je 0x1800048d2
xor eax, eax
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rax, [rsp + 0x28]
inc r8
cmp byte [rax + r8], 0
jne 0x1800048c1
lea rdx, [rsp + 0x28]
jmp 0x1800048e7
xor eax, eax
lea rdx, [0x1800564c4]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea r8d, [rax + 1]
mov rcx, rbx
call fcn.180017290
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18004f0a0
add rsp, 0x50
pop rbx
ret
Function at 0x18000f6c0
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 0x18000f6e8
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 0x18000f70e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000f710
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000f769
test ecx, ecx
jle 0x18000f749
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 0x18000f769
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000f769
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 0x18000f790
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 0x18000f7b2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000f7c8
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 0x18000f7e4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000f7e6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000f822
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 0x18000f8be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000f85d
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 0x18000f89e
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 0x18000f8be
cmp rbx, rax
ja 0x18000f870
test rbx, rbx
je 0x18000f8be
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 0x18000fd30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800671c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000fd5d
xor eax, eax
jmp 0x18000feba
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x18000fd88
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x18000fd88
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 0x18000feba
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000fead
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18000fdcb
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 0x18000fdf6
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 0x18000feb2
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 0x18000fe65
sub eax, 1
je 0x18000fe65
cmp eax, 2
jne 0x18000fead
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 0x18000feb2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000fe93
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 0x18000fead
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000feb2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18004f0a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800107f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1800671c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x180010821
xor eax, eax
jmp 0x18001095e
mov rdx, qword [rcx + 0x40]
mov rcx, qword [rdx]
test rcx, rcx
je 0x180010851
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rcx + r8*2]
cmp rcx, rdx
jae 0x180010851
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], di
movzx eax, di
jmp 0x18001095e
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x180010953
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180010898
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800108a6
movzx ecx, di
jmp 0x1800108fa
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
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_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180010913
sub eax, 1
je 0x180010913
cmp eax, 2
jne 0x180010953
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x180010956
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x180010941
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x180010953
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18004f0a0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x180014090
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800671c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180014163
cmp byte [rcx + 0x71], 0
je 0x180014163
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18001415f
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 0x180014124
sub eax, 1
je 0x180014128
cmp eax, 2
jne 0x18001415f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004f0a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180014156
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 0x18001415f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18001410c
xor al, al
jmp 0x18001410c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004f0a0
add rsp, 0x60
pop rbx
ret

Function at 0x180014390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800671c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180014465
cmp byte [rcx + 0x72], 0
je 0x180014465
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x180014461
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180014426
sub eax, 1
je 0x18001442a
cmp eax, 2
jne 0x180014461
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004f0a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180014458
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 0x180014461
cmp byte [rbx + 0x72], 0
sete al
jmp 0x18001440e
xor al, al
jmp 0x18001440e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004f0a0
add rsp, 0x60
pop rbx
ret
Function at 0x1800496f0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x180049727
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x180049710
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x180049818
sub rcx, r10
cmp r9, 8
jb 0x1800497f9
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x180049780
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x180049818
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x180049800
test r8d, r8d
sete al
ret
Function at 0x180049820
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x1800499c4
cmp r9, 4
jb 0x18004986a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x180049850
xor r11d, r11d
test r9, r9
je 0x1800499c4
cmp r9, 8
jb 0x18004999d
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x18004989c
cmp rdx, r8
jae 0x18004999d
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x1800498b1
cmp rdx, r10
jae 0x18004999d
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x180049957
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x1800498f0
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x18004998f
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax + rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x180049970
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x1800499c4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x1800499b0
add rsp, 8
ret