joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.140073c80
test rax, rax
je 0x140001bf2
mov qword [rax], rdi
mov qword [rsp + 0x40], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140002760]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140001c32
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140005300
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x160
mov rax, qword [0x140094260]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rsi, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140005344
xor eax, eax
jmp 0x140005435
mov qword [rsp + 0x170], rbx
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov qword [rsp + 0x178], rdi
call sub.KERNEL32.dll_Process32First
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140005370
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
mov rdi, qword [rsi + 0x10]
jb 0x14000538a
mov rcx, qword [rsi]
cmp rbx, rdi
lea rdx, [rsp + 0x4c]
mov r8, rdi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400053ad
cmp rdi, rbx
jb 0x1400053ad
jbe 0x140005456
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x14000541a
nop
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400053d0
cmp qword [rsi + 0x18], 0x10
mov rcx, rsi
mov rdi, qword [rsi + 0x10]
jb 0x1400053ea
mov rcx, qword [rsi]
cmp rbx, rdi
lea rdx, [rsp + 0x4c]
mov r8, rdi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140005409
cmp rdi, rbx
jb 0x140005409
jbe 0x140005456
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400053c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400740b0
mov rbp, qword [rsp + 0x180]
add rsp, 0x160
pop rsi
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140005425
Function at 0x140005470
Capabilities:
Encode data using xor
Enumerate processes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x140094260]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
mov qword [rsp + 0x38], rsp
mov dword [r11 - 0x38], 0x2f325a55
mov dword [r11 - 0x34], 0x77772f27
mov dword [r11 - 0x30], 0x25242368
mov word [r11 - 0x2c], 0x100
xor esi, esi
mov ecx, esi
nop dword [rax]
lea eax, [rcx + 0x3e]
xor byte [rsp + rcx + 0x290], al
inc rcx
cmp rcx, 0xc
jb 0x1400054c0
mov byte [rsp + 0x29d], sil
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movdqa xmm0, xmmword [0x140079460]
movdqu xmmword [rsp + 0x2a0], xmm0
mov word [rsp + 0x2b0], Ordinal_60
mov byte [rsp + 0x2b2], 1
mov rdx, rsi
nop
lea ecx, [rdx + 0x3e]
xor byte [rsp + rdx + 0x2a0], cl
inc rdx
cmp rdx, 0x11
jb 0x140005510
mov byte [rsp + 0x2b2], sil
lea rdx, [rsp + 0x2a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov qword [rsp + 0x290], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], eax
nop
mov r8d, dword [rsp + 0x58]
cmp eax, r8d
jne 0x14000559b
lea rdx, [0x140005608]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400055c6
lea rdx, [0x140005608]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1400055f7
lea rdx, [0x140005608]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov eax, dword [rdi]
cmp dword [rsp + 0x30], eax
jne 0x140005663
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14000562e
xor esi, esi
mov rdi, qword [rsp + 0x290]
mov eax, dword [rsp + 0x34]
jmp 0x140005580
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000563e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.1400740b0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140008500
nop
int3
Function at 0x140007420
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140094260]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400074f3
cmp byte [rcx + 0x71], 0
je 0x1400074f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400074ef
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 0x1400074b4
sub eax, 1
je 0x1400074b8
cmp eax, 2
jne 0x1400074ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400740b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400074e6
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 0x1400074ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000749c
xor al, al
jmp 0x14000749c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400740b0
add rsp, 0x60
pop rbx
ret

Function at 0x140007e40
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
sub rsp, 0xb8
mov rax, qword [0x140094260]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movdqa xmm0, xmmword [0x140079620]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x140079510]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x140079440]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x1400793f0]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [0x1400797f0]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1400797e0]
movdqa xmmword [r11 - 0x38], xmm1
mov dword [r11 - 0x28], 0xd285ecbb
mov dword [r11 - 0x24], 0xd681d087
mov dword [r11 - 0x20], 0xda8dd483
mov dword [r11 - 0x1c], 0x100d88f
xor eax, eax
mov qword [rsp + 0x20], rax
cmp rax, 0x6e
jae 0x140007eed
lea ecx, [rax + 0x3e]
xor cl, byte [rsp + rax + 0x30]
mov byte [rsp + rax + 0x30], cl
inc rax
jmp 0x140007ed2
mov byte [rsp + 0x9f], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x140007f02
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400740b0
add rsp, 0xb8
ret
Function at 0x1400087b0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 6], 0
je 0x1400087d3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 5
jb 0x1400087c0
mov byte [rcx + 6], 0
mov rax, rcx
ret

Function at 0x1400087e0
Capabilities:
Encode data using xor

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

Function at 0x140008810
Capabilities:
Encode data using xor

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

Function at 0x140008840
Capabilities:
Encode data using xor

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

Function at 0x140008870
Capabilities:
Encode data using xor

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

Function at 0x1400088a0
Capabilities:
Encode data using xor

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

Function at 0x1400088d0
Capabilities:
Encode data using xor

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

Function at 0x140008900
Capabilities:
Encode data using xor

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

Function at 0x140008930
Capabilities:
Encode data using xor

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

Function at 0x140008960
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x17], 0
je 0x140008983
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x16
jb 0x140008970
mov byte [rcx + 0x17], 0
mov rax, rcx
ret

Function at 0x140008990
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1b], 0
je 0x1400089b3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1a
jb 0x1400089a0
mov byte [rcx + 0x1b], 0
mov rax, rcx
ret
Function at 0x1400089c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x1f], 0
je 0x1400089e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x1e
jb 0x1400089d0
mov byte [rcx + 0x1f], 0
mov rax, rcx
ret

Function at 0x1400089f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x21], 0
je 0x140008a13
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x20
jb 0x140008a00
mov byte [rcx + 0x21], 0
mov rax, rcx
ret

Function at 0x140008a20
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x26], 0
je 0x140008a43
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x25
jb 0x140008a30
mov byte [rcx + 0x26], 0
mov rax, rcx
ret

Function at 0x140008a50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x65], 0
je 0x140008a73
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x64
jb 0x140008a60
mov byte [rcx + 0x65], 0
mov rax, rcx
ret

Function at 0x140008a80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xe], 0
je 0x140008aa3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x3e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xd
jb 0x140008a90
mov byte [rcx + 0xe], 0
mov rax, rcx
ret
Function at 0x1400097d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140094260]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor edi, edi
mov dword [rbp - 0x49], 0x1d6e6362
mov ecx, edi
mov dword [rbp - 0x45], 0x31372729
mov dword [rbp - 0x41], 0x2c23292f
mov word [rbp - 0x3d], gethostname
mov byte [rbp - 0x3b], 1
nop dword [rax + rax]
lea eax, [rcx + 0x3e]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xd
jb 0x140009820
lea rax, [rbp - 0x49]
mov dword [rbp - 0x49], 0x1d6e6362
mov qword [rbp + 0x37], rax
mov rcx, rdi
mov dword [rbp - 0x45], 0x22032a0c
mov dword [rbp - 0x41], 0x1003503
lea eax, [rcx + 0x3e]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xa
jb 0x140009850
lea rax, [rbp - 0x49]
mov dword [rbp - 0x49], 0x1d6e6362
mov qword [rbp + 0x3f], rax
mov rcx, rdi
mov dword [rbp - 0x45], 0x30003009
mov dword [rbp - 0x41], 0x3b2d372b
mov word [rbp - 0x3d], 0x100
nop word [rax + rax]
lea eax, [rcx + 0x3e]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x140009890
lea rax, [rbp - 0x49]
mov rbx, rdi
mov qword [rbp + 0x47], rax
nop dword [rax + rax]
mov rcx, qword [rbp + rbx*8 + 0x37]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x14000990c
inc rbx
cmp rbx, 3
jl 0x1400098b0
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400740b0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
movdqa xmm0, xmmword [0x1400793e0]
lea rcx, [rbp - 0x39]
movdqa xmm1, xmmword [0x140079400]
movdqa xmmword [rbp - 0x39], xmm0
movdqa xmm0, xmmword [0x140079430]
movdqa xmmword [rbp - 0x29], xmm1
movdqa xmm1, xmmword [0x1400795a0]
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm0, xmmword [0x1400797d0]
movdqa xmmword [rbp - 9], xmm1
movdqa xmm1, xmmword [0x1400797c0]
movdqa xmmword [rbp + 7], xmm0
movdqa xmmword [rbp + 0x17], xmm1
mov dword [rbp + 0x27], 0xcdd5f1a0
mov word [rbp + 0x2b], 0x100
call fcn.140008a50
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140008500
int3
Function at 0x14000b050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140094260]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14000b07d
xor eax, eax
jmp 0x14000b1e6
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 0x14000b0bd
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 0x14000b0bd
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 0x14000b1de
cmp qword [rdi + 0x80], 0
je 0x14000b1d9
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 0x14000b0f7
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 0x14000b122
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 0x14000b1de
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 0x14000b191
sub eax, 1
je 0x14000b191
cmp eax, 2
jne 0x14000b1d9
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 0x14000b1de
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000b1bf
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 0x14000b1d9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000b1de
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400740b0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000c160
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 0x14000c191
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 0x14000c1af
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 0x14000c1f9
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 0x14000c271
mov rcx, rbp
call fcn.140007970
cmp rbx, 0xfff
jbe 0x14000c251
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 0x14000c292
cmp rbx, rax
ja 0x14000c220
test rdi, rdi
je 0x14000c271
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 0x14000c274
Function at 0x14000c2a0
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 0x14000c2c8
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 0x14000c33c
test rax, rax
jle 0x14000c31c
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 0x14000c33c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000c33c
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
Function at 0x140010fe0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 7], dil
je 0x140011014
mov eax, edi
nop dword [rax]
lea ecx, [rax + 0x58]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x140011000
mov byte [r8 + 7], dil
lea rax, [r8 + 6]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140011044
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x14001105e
mov qword [rsp + 0x30], 6
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
movzx eax, word [r8 + 4]
mov word [rsp + 0x24], ax
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14001106c
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001ecb0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400110e6
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400110e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400110e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073cbc
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140011100
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 9], dil
je 0x140011134
mov eax, edi
nop dword [rax]
lea ecx, [rax + 0x58]
xor byte [r8 + rax], cl
inc rax
cmp rax, 8
jb 0x140011120
mov byte [r8 + 9], dil
lea rax, [r8 + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140011164
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x140011175
mov qword [rsp + 0x30], 8
mov rax, qword [r8]
mov qword [rsp + 0x20], rax
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140011183
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001ecb0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400111fd
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400111f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400111f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073cbc
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret