joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d40
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
and qword [rsp + 0x20], 0
mov rbx, rdx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001dc7
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x28]
mov r9d, 0x8000
lea rdx, [rsp + 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov edx, eax
lea rcx, [0x1400028c0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400020d0
add rsp, 0x70
pop rbx
ret

Function at 0x140001de0
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov ebp, r9d
lea rcx, [0x1400028e0]
mov rsi, r8
mov rdi, rdx
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x140001e44
lea rcx, [0x1400028b0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001ea3
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x38]
mov r9d, ebp
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov edx, eax
lea rcx, [0x140002900]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400020d0
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001ed0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x140002920]
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140001f13
lea rcx, [0x1400028b0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001f66
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x1fffff
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor r8d, r8d
mov byte [rsp + 0x28], 0
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edx, eax
lea rcx, [0x140002940]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

Function at 0x140001f80
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140001fb4
xor eax, eax
jmp 0x140001ff1
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, rsi
mov rcx, rax
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140002010
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140002044
xor eax, eax
jmp 0x140002081
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400291bc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c7b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c7b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002930c
cmp rax, 0xffffffffffffffff
je 0x14002930c
xor edi, edi
test rbp, rbp
jle 0x1400292b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f0c8
mov rbx, rax
test rax, rax
jne 0x140029244
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400292ad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a0e8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d490
cmp eax, 0xffffffff
je 0x14002928d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029254
mov edx, r15d
mov ecx, r14d
call fcn.14001a0e8
jmp 0x1400292ad
cmp byte [rsi + 0x38], dil
je 0x1400292a4
cmp dword [rsi + 0x34], 5
jne 0x1400292a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400292ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001ae7c
jmp 0x140029320
jns 0x140029320
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c7b4
cmp rax, 0xffffffffffffffff
jne 0x1400292d8
cmp byte [rsi + 0x30], dil
je 0x140029320
mov edi, dword [rsi + 0x2c]
jmp 0x140029320
mov ecx, r14d
call fcn.1400185a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029320
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029319
mov eax, dword [rsi + 0x2c]
jmp 0x14002931e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c7b4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1406c10b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406c1237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
Function at 0x18000d5d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, edx
cmp qword [rcx + 0x20], rbx
je 0x18000d64d
lea rdx, str.CreateInterface
call fcn.18000d65c
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000d650
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.18000d8a8
mov rcx, rax
call fcn.18000d8d8
mov rcx, qword [rax]
jmp 0x18000d641
mov rdx, qword [rcx + 8]
mov r8d, 0x811c9dc5
jmp 0x18000d632
movzx eax, al
xor eax, r8d
imul r8d, eax, 0x1000193
inc rdx
mov al, byte [rdx]
test al, al
jne 0x18000d622
cmp r8d, edi
je 0x18000d648
mov rcx, qword [rcx + 0x10]
test rcx, rcx
jne 0x18000d616
jmp 0x18000d64d
call qword [rcx]
mov rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18000e610
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18000e653
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
and qword [rsp + 0x28], 0
lea r8, [0x18000e66c]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18000e661
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000e661
test edx, edx
jne 0x18000e661
test r8, r8
jne 0x18000e661
call fcn.1800a8080
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180010278
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, str.mp_teammates_are_enemies
mov esi, 0x811c9dc5
mov al, 0x6d
movzx eax, al
inc rdx
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [rdx]
test al, al
jne 0x180010298
call fcn.1800101b8
mov rbx, rax
mov rdx, rbx
mov rcx, rdi
call fcn.180010240
mov rcx, rax
test rax, rax
je 0x1800102ed
mov rdx, qword [rax]
mov r8d, 0x811c9dc5
jmp 0x1800102e2
movzx eax, al
xor eax, r8d
imul r8d, eax, 0x1000193
inc rdx
mov al, byte [rdx]
test al, al
jne 0x1800102d2
cmp r8d, esi
je 0x180010313
mov rdx, rbx
mov rcx, rdi
call fcn.1800101f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800102b4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, rcx
jmp 0x180010303
Function at 0x180016938
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r9d, eax
and r9d, 7
je 0x18001696d
cmp eax, r9d
jge 0x18001695b
call fcn.180016244
mov eax, dword [rbx + 0x14]
mov ecx, r9d
shr eax, cl
sub dword [rbx + 0x10], r9d
mov dword [rbx + 0x14], eax
mov eax, dword [rbx + 0x10]
xor edx, edx
mov ecx, eax
test eax, eax
jle 0x18001699b
mov r8d, dword [rbx + 0x14]
lea r9, [rsp + 0x30]
mov al, byte [rbx + 0x14]
inc edx
shr r8d, 8
sub ecx, 8
mov byte [r9], al
inc r9
mov dword [rbx + 0x14], r8d
test ecx, ecx
jg 0x18001697e
mov dword [rbx + 0x10], ecx
test ecx, ecx
jns 0x1800169b0
lea rcx, str.zlib_corrupt
call fcn.1800108f4
jmp 0x180016a55
movsxd rax, edx
cmp rax, 4
jge 0x1800169db
mov rcx, qword [rbx]
cmp rcx, qword [rbx + 8]
jb 0x1800169c6
xor dl, dl
jmp 0x1800169ce
mov dl, byte [rcx]
inc rcx
mov qword [rbx], rcx
mov byte [rsp + rax + 0x30], dl
inc rax
cmp rax, 4
jl 0x1800169bc
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x18001699f
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180016a20
lea rcx, str.read_past_buffer
jmp 0x1800169a6
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x180016a3a
mov rcx, rbx
call fcn.180016370
test eax, eax
je 0x180016a55
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18001ef24
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
and dword [rbp + 0x17], 0
lea rax, [0x18001f2bc]
and dword [rbp + 0x1b], 0
mov rbx, rcx
xor ecx, ecx
mov qword [rbp + 0xf], rax
mov dword [rbp + 7], 0x50
mov dword [rbp + 0xb], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdi, [rbx + 0xc0]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp + 0x1f], rax
cmp qword [rdi + 0x18], 7
mov rax, rdi
movdqa xmmword [rbp + 0x27], xmm0
movdqa xmmword [rbp + 0x37], xmm1
jbe 0x18001ef93
mov rax, qword [rdi]
and qword [rbp + 0x4f], 0
lea rcx, [rbp + 7]
mov qword [rbp + 0x47], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
cmp dword [rbx + 0x1b0], 1
lea rsi, [rbx + 0x80]
jne 0x18001f034
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp qword [rsi + 0x18], 7
jbe 0x18001efc8
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 7
jbe 0x18001efd2
mov rdi, qword [rdi]
and qword [rsp + 0x58], 0
mov r9d, 0x80000000
mov qword [rsp + 0x50], rax
mov r8, rsi
and qword [rsp + 0x48], 0
mov eax, 0x64
and qword [rsp + 0x40], 0
mov rdx, rdi
mov dword [rsp + 0x38], eax
mov ecx, 0x28
mov dword [rsp + 0x30], eax
mov eax, 0x80000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r9d, 2
mov r8b, 0xff
mov rcx, rax
mov qword [rbx + 0x50], rax
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
jmp 0x18001f0af
cmp qword [rsi + 0x18], 7
cvttss2si ecx, dword [rbx + 0xec]
cvttss2si edx, dword [rbx + 0xe8]
cvttss2si r8d, dword [rbx + 0xe4]
cvttss2si r9d, dword [rbx + 0xe0]
jbe 0x18001f060
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 7
jbe 0x18001f06a
mov rdi, qword [rdi]
and qword [rsp + 0x58], 0
mov rax, qword [rbp + 0x1f]
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov dword [rsp + 0x38], ecx
xor ecx, ecx
mov dword [rsp + 0x30], edx
mov rdx, rdi
mov dword [rsp + 0x28], r8d
mov r8, rsi
mov dword [rsp + 0x20], r9d
mov r9d, 0xa0000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbx + 0x50], rax
mov rax, qword [rbp + 0x1f]
mov rdx, qword [rbx + 0x50]
mov qword [rbx + 0x58], rax
call fcn.18001e7bc
test al, al
jne 0x18001f0db
call fcn.18001e918
mov rdx, qword [rbp + 0x1f]
mov rcx, qword [rbp + 0x47]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor al, al
jmp 0x18001f0fc
mov rcx, qword [rbx + 0x50]
mov edx, 0xa
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp qword [rbx + 0x50], 0
setne al
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1800211d4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rcx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [r8 + rdx]
movabs r9, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r9
cmp r8, 4
jb 0x1800211b1
mov rax, rcx
ret
mov rdx, rcx
jmp 0x1800211a4
Function at 0x18002340c
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
mov rbx, r8
mov rdi, rdx
call fcn.1800106ec
mov rdx, rbx
mov rcx, rax
call fcn.180010768
test rax, rax
je 0x1800234c1
mov rdx, rsi
mov rcx, rax
call fcn.1800107a4
mov r8, rax
test rax, rax
je 0x1800234c1
mov rcx, qword [rsp + 0x50]
mov ebx, 0x811c9dc5
mov r9d, ebx
jmp 0x18002346f
movzx eax, dl
xor eax, r9d
imul r9d, eax, 0x1000193
inc rcx
mov dl, byte [rcx]
test dl, dl
jne 0x18002345f
mov rcx, qword [r8 + 0x28]
xor edx, edx
test rcx, rcx
je 0x1800234c1
movzx r11d, byte [r8 + 0x1c]
cmp edx, r11d
jge 0x1800234c1
mov r8, qword [rcx]
mov r10d, ebx
jmp 0x1800234a2
movzx eax, al
xor eax, r10d
imul r10d, eax, 0x1000193
inc r8
mov al, byte [r8]
test al, al
jne 0x180023492
cmp r10d, r9d
je 0x1800234b6
inc edx
add rcx, 0x20
jmp 0x180023485
mov eax, dword [rcx + 0x10]
mov dword [rdi], eax
mov byte [rdi + 4], 1
jmp 0x1800234c5
mov byte [rdi + 4], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180027d5c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180027d8c
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 0x180027e04
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180027da3
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180027da5
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180027dfe
test ecx, ecx
jle 0x180027dde
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 0x180027dfe
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180027dfe
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x180027e20
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180027e4e
xor eax, eax
jmp 0x180027f37
cmp qword [rcx + 0x68], 0
je 0x180027e60
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 0x180027f37
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180027e77
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180027e79
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180027eab
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180027f31
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180027ee2
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180027f0c
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180027f31
cmp rsi, rbx
ja 0x180027ee9
test rsi, rsi
je 0x180027f31
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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
Function at 0x1800282fc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
or esi, 0xffffffff
mov edi, edx
mov rbx, rcx
cmp edx, esi
jne 0x180028324
xor eax, eax
jmp 0x180028444
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x18002835e
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x18002835e
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], dil
mov eax, edi
jmp 0x180028444
cmp qword [rbx + 0x80], 0
je 0x180028442
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180028399
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x1800283ba
movsx ecx, dil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
cmove edi, esi
jmp 0x180028357
lea rax, [rbp + 0x30]
mov byte [rbp - 0x30], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x38]
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 0x180028408
sub eax, 1
je 0x180028408
cmp eax, 2
jne 0x180028442
movsx ecx, byte [rbp - 0x30]
jmp 0x1800283a6
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x180028433
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x180028442
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x38], rax
cmovne esi, edi
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180028cdc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180028d38
cmp byte [rcx + 0x71], 0
je 0x180028d38
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180028d80
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 0x180028d45
sub eax, 1
je 0x180028d49
cmp eax, 2
jne 0x180028d80
mov byte [rbx + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x180028d77
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 0x180028d80
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180028d3a
xor al, al
jmp 0x180028d3a

Function at 0x180032a60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rdi, rdx
mov rbp, rcx
mov rcx, r8
mov rax, 0xfffffffffffff000
and rcx, rax
mov rsi, r8
mov qword [rdx], rcx
mov rdx, r8
sub rdx, rcx
lea r9, [rdi + 0x10]
add rdx, 0x1004
mov r8d, 0x40
and rdx, rax
mov qword [rdi + 8], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180032ae0
mov r9, qword [rdi + 8]
lea rdx, str.__unprotect_memory__p__size_llu______p__size_llu__n
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180031bfc
xor eax, eax
jmp 0x180032b2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.1800322f8
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rdi + 8]
lea rdx, str.Failed_to_unprotect_memory__p__size_llu______p__size_llu__error_lu__s__
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180031c24
mov eax, 9
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18003529c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
movzx eax, byte [rcx]
inc rcx
movzx r9d, r8b
xor r9, rax
shr r8d, 8
lea rax, [0x18010e7d0]
xor r8d, dword [rax + r9*4]
sub rdx, 1
jne 0x18003529f
not r8d
mov eax, r8d
ret