joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180068c10
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rdx + 0x10]
lea rdx, [rsi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
call fcn.1800632e0
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180068c5b
mov r8, qword [rdi]
xor edx, edx
lea r9, [rsi - 2]
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_wb
test r9, r9
je 0x180068d2f
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180068c7e
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [r8], al
cmp qword [rbx + 0x18], 0xf
jbe 0x180068c9e
mov rax, qword [rbx]
lea rcx, [rdx + rax]
jmp 0x180068ca5
lea rcx, [rbx + rdx]
mov rax, rbx
movsx rcx, byte [rcx]
and ecx, 3
shl rcx, 4
movzx eax, byte [rax + rdx + 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 1], al
cmp qword [rbx + 0x18], 0xf
jbe 0x180068cd5
mov rax, qword [rbx]
lea rcx, [rax + 1]
jmp 0x180068cdc
lea rcx, [rbx + 1]
mov rax, rbx
add rcx, rdx
movsx rcx, byte [rcx]
and ecx, 0xf
shl rcx, 2
movzx eax, byte [rax + rdx + 2]
shr rax, 6
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180068d0c
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 2]
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [r8 + 3], al
add r8, 4
add rdx, 3
cmp rdx, r9
jb 0x180068c71
cmp rdx, rsi
jae 0x180068de8
mov rax, rbx
lea r9, [rbx + 0x18]
cmp qword [rbx + 0x18], 0xf
jbe 0x180068d49
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r11]
mov byte [r8], al
lea rax, [rsi - 1]
cmp rdx, rax
jne 0x180068d8b
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x180068d6f
mov rax, qword [rbx]
movsx rax, byte [rax + rdx]
and eax, 3
add rax, rax
movzx eax, byte [r11 + rax*8]
mov byte [r8 + 1], al
mov al, 0x3d
add r8, 2
jmp 0x180068de0
cmp qword [rbx + 0x18], 0xf
jbe 0x180068d9b
mov rax, qword [rbx]
lea rcx, [rdx + rax]
jmp 0x180068da2
lea rcx, [rdx + rbx]
mov rax, rbx
movsx rcx, byte [rcx]
and ecx, 3
shl rcx, 4
movzx eax, byte [rax + rdx + 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r11]
mov byte [r8 + 1], al
add r8, 2
mov rax, rbx
cmp qword [r9], 0xf
jbe 0x180068dd2
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 1]
and eax, 0xf
movzx eax, byte [r11 + rax*4]
mov byte [r8], al
mov byte [r8 + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x180068e1e
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180068e19
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180068e44
mov rcx, r8
call fcn.180082be4
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x180068e50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor edi, edi
mov dword [rsp + 0x24], 0x869190fe
mov eax, edi
mov dword [rsp + 0x28], 0x849082
mov rbx, rcx
mov byte [rsp + 0x2c], 1
nop word [rax + rax]
lea ecx, [rax - 0x41]
xor byte [rsp + rax + 0x24], cl
inc rax
cmp rax, 7
jb 0x180068e80
lea r8, [rsp + 0x24]
mov byte [rsp + 0x2c], dil
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
xorps xmm0, xmm0
test eax, eax
je 0x180068ed1
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov rax, rbx
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rdx, qword [rsp + 0x68]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], dil
jne 0x180068ef0
lea rcx, [rsp + 0x30]
call fcn.1800024b0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [rsp + 0x30]
mov rax, rbx
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180069910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x180069a03
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180069a03
movsxd rbx, dword [rdi + 0x3c]
mov edx, 0x108
add rbx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180069a03
cmp dword [rbx], 0x4550
jne 0x180069a03
mov rcx, qword [rbx + 0x88]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x180069a03
test ecx, ecx
je 0x180069a03
mov ebx, ecx
mov edx, 0x28
add rbx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180069a03
mov ebp, dword [rbx + 0x1c]
xor r9d, r9d
mov r10d, dword [rbx + 0x20]
add rbp, rdi
mov r14d, dword [rbx + 0x24]
add r10, rdi
mov r11d, dword [rbx + 0x14]
add r14, rdi
test r11d, r11d
je 0x180069a03
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10]
mov r8, rsi
add rax, rdi
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800699f3
inc rax
test ecx, ecx
jne 0x1800699e0
test edx, edx
je 0x180069a20
inc r9d
add r10, 4
cmp r9d, r11d
jb 0x1800699d0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
movzx ecx, word [r14 + r9*2]
mov eax, dword [rbp + rcx*4]
add rax, rdi
jmp 0x180069a05
Function at 0x18006ad00
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1130
call fcn.180082f50
sub rsp, rax
mov r14, rcx
lea r8, [rsp + 0x1168]
lea rcx, [rsp + 0x130]
mov edx, 0x1000
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x18006ae09
mov ebp, dword [rsp + 0x1168]
xor edi, edi
shr ebp, 2
test ebp, ebp
je 0x18006ae09
lea rsi, [rsp + 0x130]
mov ebx, dword [rsi]
test ebx, ebx
je 0x18006adfb
movsd xmm0, qword [str._unknown_]
lea rcx, [rsp + 0x2a]
movzx eax, word [0x1801035a8]
xor edx, edx
mov r8d, 0xfa
movsd qword [rsp + 0x20], xmm0
mov word [rsp + 0x28], ax
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18006adfb
lea r9, [rsp + 0x1170]
mov r8d, 8
lea rdx, [rsp + 0x1178]
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x18006ade0
mov rdx, qword [rsp + 0x1178]
lea r8, [rsp + 0x20]
mov r9d, 0x104
mov rcx, rbx
call sub.KERNEL32.dll_K32GetModuleBaseNameA
mov rdx, r14
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, rbx
test eax, eax
je 0x18006ae19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
add rsi, 4
cmp edi, ebp
jb 0x18006ad55
xor al, al
add rsp, 0x1130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x1130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18006cca0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18006cd69
cmp byte [rcx + 0x71], 0
je 0x18006cd69
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18006cd5c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x18006cd18
sub eax, 1
je 0x18006cd1c
cmp eax, 2
jne 0x18006cd5c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x18006cd4a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18006cd5c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x18006d4a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x18006d501
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x18006d4c0
mov ecx, dword [r9]
jmp 0x18006d5eb
cmp ecx, 0x4e0
jb 0x18006d5eb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18006d520
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18006d570
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x18006d630
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x18006d691
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x18006d650
mov ecx, dword [r9]
jmp 0x18006d77b
cmp ecx, 0x4e0
jb 0x18006d77b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18006d6b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18006d700
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
add rsp, 8
ret
Function at 0x18006d7e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, r9d
mov r15, r8
mov r14, rdx
mov rsi, rcx
call fcn.18006d630
mov rdi, rax
add ebp, 0xffffffff
je 0x18006d9bf
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r12
xor r12d, r12d
nop dword [rax]
mov r9, qword [rsi]
shl rdi, 0x20
mov ecx, dword [r9]
cmp ecx, 0x270
jne 0x18006d884
lea rax, [r9 + 8]
mov r10d, ecx
nop dword [rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r10, 1
jne 0x18006d840
mov ecx, dword [r9]
jmp 0x18006d966
cmp ecx, 0x4e0
jb 0x18006d966
lea r10, [r9 + 0x9c4]
mov r11d, 0xe3
mov ebx, dword [r10]
mov eax, ebx
mov r8, r10
mov ebx, dword [r10 + 4]
mov edx, eax
xor edx, ebx
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x18006d8a0
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov ebx, dword [r10]
nop dword [rax]
mov eax, ebx
mov r8, r10
mov ebx, dword [r10 + 4]
mov edx, eax
xor edx, ebx
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub r11, 1
jne 0x18006d8f0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
mov ecx, r12d
mov dword [r9], r12d
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
or rdi, rax
add ebp, 0xffffffff
jne 0x18006d820
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rax, r15
mov rsi, qword [rsp + 0x58]
mul rdi
mov qword [r14], rax
mov rax, r14
mov qword [r14 + 8], rdx
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18006ef30
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x12], 0
je 0x18006ef53
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x41]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x11
jb 0x18006ef40
mov byte [rcx + 0x12], 0
mov rax, rcx
ret

Function at 0x18006ef60
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x15], 0
je 0x18006ef83
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x41]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x14
jb 0x18006ef70
mov byte [rcx + 0x15], 0
mov rax, rcx
ret
Function at 0x180074160
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov ebx, edx
mov rdi, rcx
xor esi, esi
mov dword [rbp - 0x39], esi
movdqa xmm0, xmmword [0x1801052b0]
movdqu xmmword [rbp - 0x11], xmm0
movdqa xmm1, xmmword [0x1801052a0]
movdqu xmmword [rbp - 1], xmm1
movdqa xmm0, xmmword [0x180105260]
movdqu xmmword [rbp + 0xf], xmm0
mov dword [rbp + 0x1f], 0xa2bebea2
mov dword [rbp + 0x23], 0xa2a6a6a2
mov dword [rbp + 0x27], 0xa2aeaea2
mov dword [rbp + 0x2b], 0x100a6a2
mov eax, esi
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax - 0x41]
xor byte [rbp + rax - 0x11], cl
inc rax
cmp rax, 0x3e
jb 0x1800741e0
mov byte [rbp + 0x2e], sil
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
lea rax, [rbp - 0x11]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], sil
jne 0x180074210
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x31]
call fcn.1800024b0
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov dword [rbp - 0x39], 1
movsxd rdx, ebx
cmp rdx, 0xf
jbe 0x18007425d
movzx r8d, byte [rbp + 0x6f]
mov rcx, rdi
call fcn.180047640
mov qword [rdi + 0x10], rsi
mov r15, qword [rbp - 0x19]
mov r14, qword [rbp - 0x31]
test ebx, ebx
jle 0x1800742d5
mov rsi, rbx
mov r12, qword [rbp - 0x21]
movzx ebx, byte [rbp + 0x6f]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div r12
lea rax, [rbp - 0x31]
cmp r15, 0xf
cmova rax, r14
movzx r9d, byte [rax + rdx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1800742be
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1800742b3
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1800742cf
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.180002d30
sub rsi, 1
jne 0x180074274
cmp r15, 0xf
jbe 0x18007430f
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x180074307
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180074307
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.180082be4
mov rax, rdi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x18007ae30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x18007ae54
xor eax, eax
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 0x80], 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 0x18007ae94
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 0x18007ae94
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 0x18007afc1
cmp qword [rdi + 0x80], 0
je 0x18007afbc
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 0x18007aece
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 0x18007aef9
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
cmove esi, ecx
mov eax, esi
jmp 0x18007afc1
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x18007af6e
sub eax, 1
je 0x18007af6e
cmp eax, 2
jne 0x18007afbc
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
cmove esi, ecx
mov eax, esi
jmp 0x18007afc1
mov rbx, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rbx, rax
je 0x18007af9f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18007afbc
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x18007afc1
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x1800826a0
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 0x1800826d1
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 case.default.0x1800826e8
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 0x180082739
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 0x1800827b1
mov rcx, rbp
call fcn.18006e570
cmp rbx, 0xfff
jbe 0x180082791
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 0x1800827d2
cmp rbx, rax
ja 0x180082760
test rdi, rdi
je 0x1800827b1
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 0x1800827b4