joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fd0d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fd122
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400fd122
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400fd122
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fd122
cmp dword [rcx + 0x84], 0xe
jbe 0x1400fd122
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400fd124
xor al, al
add rsp, 0x28
ret

Function at 0x1400fd938
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400fd9bc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401a6220]
cmp byte [rcx + rax], 0
je 0x1400fd9bc
dec r8
sub rdx, 1
jne 0x1400fd9a2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

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

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1401014fe
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1401014e1
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1401014cc
Function at 0x140002b40
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 0x140002b68
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 0x140002b8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002b90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002be9
test ecx, ecx
jle 0x140002bc9
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 0x140002be9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002be9
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 0x140002c10
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 0x140002c32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002c48
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 0x140002c64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002c66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002ca2
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 0x140002d3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002cdd
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 0x140002d1e
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 0x140002d3e
cmp rbx, rax
ja 0x140002cf0
test rbx, rbx
je 0x140002d3e
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 0x140003170
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000319d
xor eax, eax
jmp 0x1400032fa
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400031c8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400031c8
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 0x1400032fa
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400032ed
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000320b
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 0x140003236
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 0x1400032f2
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 0x1400032a5
sub eax, 1
je 0x1400032a5
cmp eax, 2
jne 0x1400032ed
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 0x1400032f2
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400032d3
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 0x1400032ed
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032f2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004430
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400037f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400038c3
cmp byte [rcx + 0x71], 0
je 0x1400038c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400038bf
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 0x140003884
sub eax, 1
je 0x140003888
cmp eax, 2
jne 0x1400038bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004430
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400038b6
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 0x1400038bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000386c
xor al, al
jmp 0x14000386c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004430
add rsp, 0x60
pop rbx
ret

Function at 0x140004dc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004e0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004e0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004e0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004e0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140004e0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004e10
xor al, al
add rsp, 0x28
ret
Function at 0x140005cc0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push r14
sub rsp, 0x30
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov esi, ecx
mov qword [rsp + 0x20], rdx
call fcn.1400065e0
test rax, rax
je 0x140005d5b
test rbx, rbx
jne 0x140005d0a
mov ecx, esi
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140005d5b
and rdi, 0xfffffffffffff000
mov rsi, qword [rsp + 0x68]
mov qword [rsi], rdi
xor eax, eax
mov rdi, qword [rsp + 0x60]
mov qword [rdi], rax
mov dword [r14], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rdx, r14
mov rcx, qword [rsi]
call fcn.140005500
sub rax, qword [rsi]
mov qword [rdi], rax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
test rbx, rbx
jne 0x140005d59
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140005d5b
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140006100
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push r12
push r14
push r15
sub rsp, 0x30
mov r15d, r9d
mov rbx, r8
mov rsi, rdx
mov eax, ecx
mov rcx, rdx
mov qword [rsp + 0x28], rdx
mov r12d, 0xc0000001
mov edi, r12d
test rdx, rdx
jne 0x14000615c
mov ecx, eax
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140006157
xor al, al
jmp 0x140006230
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rcx, rbx
call fcn.140005d80
test al, al
je 0x140006209
lea rcx, [rbx - 1]
add rcx, r15
call fcn.140005d80
test al, al
je 0x140006209
cmp dword [0x140018fdc], 0
je 0x1400061a3
call fcn.1400017e0
call fcn.14000a4c0
cmp dword [0x140018fdc], 0
jne 0x1400061cd
movabs rax, 0x8000000000000000
cmp rbx, rax
jb 0x1400061cd
mov r8d, r15d
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call fcn.1400069d0
xor edi, edi
cmp eax, r15d
cmovne edi, r12d
jmp 0x1400061df
mov r8, r15
mov rdx, rbx
mov rcx, qword [rsp + 0x70]
call fcn.14000c8c0
xor edi, edi
mov dword [rsp + 0x20], edi
cmp dword [0x140018fdc], 0
je 0x140006209
call fcn.14000a560
mov rbx, rax
call fcn.14000a510
call fcn.1400017f0
test rbx, rbx
cmovne edi, r12d
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
jmp 0x14000621b
test rsi, rsi
jne 0x14000622b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test edi, edi
setns al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1400062d0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13d, r9d
mov r14, r8
mov r15, rdx
mov eax, ecx
mov rcx, rdx
mov qword [rsp + 0x28], rdx
mov ebx, 0xc0000001
test rdx, rdx
jne 0x140006326
mov ecx, eax
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140006321
xor al, al
jmp 0x140006466
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
nop
mov rcx, r14
call fcn.140005d80
test al, al
je 0x14000643f
lea rcx, [r14 - 1]
add rcx, r13
call fcn.140005d80
test al, al
je 0x14000643f
xor esi, esi
mov edi, esi
mov dword [rsp + 0x24], esi
cmp dword [0x140018fdc], esi
jne 0x140006369
cmp dword [0x140018f9c], esi
je 0x14000639e
call fcn.1400017e0
cmp dword [0x140018fdc], esi
je 0x14000637b
call fcn.14000a4c0
cmp dword [0x140018f9c], esi
je 0x14000639e
call fcn.140001b70
btr rax, 0x10
mov rcx, rax
call fcn.140001c20
mov edi, 1
mov dword [rsp + 0x24], edi
cmp dword [0x140018fdc], esi
jne 0x1400063d9
movabs rax, 0x8000000000000000
cmp r14, rax
jb 0x1400063d9
mov r8d, r13d
mov rdx, qword [rsp + 0x80]
mov rcx, r14
call fcn.1400069d0
mov ebx, esi
cmp eax, r13d
mov r14d, 0xc0000001
cmovne ebx, r14d
jmp 0x1400063f4
mov r8, r13
mov rdx, qword [rsp + 0x80]
mov rcx, r14
call fcn.14000c8c0
mov ebx, esi
mov r14d, 0xc0000001
mov dword [rsp + 0x20], ebx
cmp dword [0x140018fdc], esi
jne 0x140006404
test edi, edi
je 0x14000643f
test edi, edi
je 0x14000641a
call fcn.140001b70
bts rax, 0x10
mov rcx, rax
call fcn.140001c20
cmp dword [0x140018fdc], esi
je 0x14000642f
call fcn.14000a560
mov rsi, rax
call fcn.14000a510
call fcn.1400017f0
test rsi, rsi
cmovne ebx, r14d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
jmp 0x140006451
test r15, r15
jne 0x140006461
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test ebx, ebx
setns al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400065e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14000f090]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [0x14000f118]
test rcx, rcx
jne 0x1400066aa
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
je 0x14000663a
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000c600
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 0xa
jb 0x140006699
cmp dword [rsp + 0x2c], 0x3839
jb 0x140006699
call fcn.140001b90
and rax, 0xfffffffffffff000
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmGetVirtualForPhysical]
mov rcx, rax
movabs rax, 0xffffff8000000000
and rcx, rax
movabs rax, 0x7ffffffff8
add rax, rcx
mov qword [0x140018fc0], rax
movabs rax, 0x7b7ffffff8
add rax, rcx
mov qword [0x140018fc8], rax
jmp 0x1400066a3
movabs rcx, 0xfffff68000000000
mov qword [0x14000f118], rcx
mov rax, rcx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000c600
add rsp, 0x158
ret
Function at 0x140007480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
xor dil, dil
mov r15d, r12d
call fcn.1400017a0
movsxd rcx, eax
lea r13, [0x140017d60]
mov rbx, qword [r13 + rcx*8]
call fcn.1400017a0
cdqe
mov r14d, r12d
mov rax, qword [r13 + rax*8]
mov rcx, qword [rax + 8]
cmp rcx, qword [rbx + 0x18]
setae r14b
jb 0x1400074db
call fcn.14000a2f0
call fcn.1400017a0
movsxd rcx, eax
mov rbx, qword [r13 + rcx*8]
call fcn.1400017a0
mov rsi, qword [rbx + 8]
cdqe
mov rax, qword [r13 + rax*8]
sub rsi, qword [rax]
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
cmp al, 2
jae 0x14000751d
mov r15d, 1
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx edi, al
mov eax, 2
mov cr8, rax
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbp, rax
test rax, rax
je 0x1400076a1
call fcn.1400017a0
movsxd rcx, eax
mov r8, rsi
mov rdx, qword [r13 + rcx*8]
mov rcx, rbp
mov rdx, qword [rdx]
call fcn.14000c8c0
call fcn.1400017a0
movsxd rcx, eax
mov rbx, qword [r13 + rcx*8]
call fcn.1400017a0
movsxd rcx, eax
mov rax, qword [rbx]
mov rdx, qword [r13 + rcx*8]
mov qword [rdx + 8], rax
test r15d, r15d
je 0x14000757d
movzx eax, dil
mov cr8, rax
cmp dword [0x1400123c8], r12d
je 0x1400075bd
mov rcx, qword [0x1400123c0]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor edx, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
jmp 0x1400076a9
cmp qword [0x140012348], r12
je 0x1400076a9
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea rcx, [0x1400123a0]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
test eax, eax
jne 0x1400076a9
lea rcx, [0x140012360]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
mov rax, qword [0x140012348]
test rax, rax
je 0x140007692
mov edx, dword [0x14000f008]
mov ecx, r12d
test edx, edx
jle 0x140007692
cmp dword [rax], r12d
jne 0x140007634
inc ecx
add rax, 0x30
cmp ecx, edx
jl 0x140007616
lea rcx, [0x140012360]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
jmp 0x1400076a9
movsxd rax, ecx
lea rbx, [rax + rax*2]
mov rax, qword [0x140012348]
shl rbx, 4
mov dword [rbx + rax], r12d
test ecx, ecx
js 0x140007692
mov rax, qword [0x140012348]
mov qword [rbx + rax + 8], rbp
mov rax, qword [0x140012348]
mov dword [rbx + rax + 0x10], esi
call fcn.1400017a0
mov r8, qword [0x140012348]
mov edx, 1
mov dword [rbx + r8 + 0x14], eax
xor r8d, r8d
mov rcx, qword [0x140012348]
add rcx, 0x18
add rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
lea rcx, [0x140012360]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
jmp 0x1400076a9
movzx eax, dil
mov cr8, rax
call fcn.1400017e0
lea r11, [rsp + 0x60]
mov eax, r14d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140009330
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14000f090]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [0x14000f4e0]
lea r9, [0x14000f500]
movsxd rdx, ecx
lea r8, str._sCPU_d.trace
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0xb0]
mov rbx, qword [rax + rdx*8]
mov edx, 0xc8
call sub.ntoskrnl.exe_swprintf_s
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x60], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
xor edi, edi
mov dword [rsp + 0x78], 0x240
movdqu xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x68], rdi
lea rcx, [rsp + 0x60]
mov qword [rbx + 0x110], rdi
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov dword [rsp + 0x50], edi
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x48], rdi
lea r8, [rsp + 0x60]
mov dword [rsp + 0x40], 0x24
lea rcx, [rbx + 0x110]
mov dword [rsp + 0x38], edi
mov edx, 0x10100005
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c600
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140001180
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rdi
mov eax, 0x13e0
call fcn.14000e520
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea rdi, [rax + 0x1388]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp rax, rdi
jae 0x140001379
mov qword [rsp + 0x13f0], rbx
movaps xmmword [rsp + 0x13d0], xmm6
xorps xmm6, xmm6
movaps xmmword [rsp + 0x13c0], xmm7
movsd xmm7, qword [0x1400178d8]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
xorps xmm0, xmm0
test rax, rax
js 0x1400011f8
cvtsi2sd xmm0, rax
jmp 0x14000120a
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 0x1571
mov dword [rsp + 0x24], 0x1571
mov ecx, 1
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x24], edx
inc rcx
cmp rcx, 0x270
jb 0x140001230
mov dword [rsp + 0x20], 0x270
lea r8, [rsp + 0x28]
mov r9d, 0x270
nop dword [rax]
nop word [rax + 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 r9, 1
jne 0x140001270
mov ecx, dword [rsp + 0x20]
mov edx, dword [rsp + rcx*4 + 0x24]
mov eax, edx
shr eax, 0xb
inc ecx
and eax, dword [rsp + 0x13a4]
xor edx, eax
mov dword [rsp + 0x20], ecx
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 rbx, rcx
shr rbx, 0x12
xor rbx, rcx
lea rcx, [rsp + 0x20]
shr rbx, 0xb
call fcn.140001630
mov eax, eax
xorps xmm1, xmm1
shl rax, 0x15
add rbx, rax
js 0x14000130e
cvtsi2sd xmm1, rbx
jmp 0x140001323
mov rax, rbx
and ebx, 1
shr rax, 1
or rax, rbx
cvtsi2sd xmm1, rax
addsd xmm1, xmm1
mulsd xmm1, xmm7
subsd xmm0, xmm6
mulsd xmm1, xmm0
xorps xmm0, xmm0
addsd xmm1, xmm6
ucomisd xmm0, xmm1
ja 0x140001342
sqrtpd xmm0, xmm1
jmp 0x14000134a
movaps xmm0, xmm1
call fcn.14000e63c
ucomisd xmm0, xmm6
jp 0x140001352
je 0x140001361
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp rax, rdi
jb 0x1400011e0
movaps xmm6, xmmword [rsp + 0x13d0]
mov rbx, qword [rsp + 0x13f0]
movaps xmm7, xmmword [rsp + 0x13c0]
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400017f0
add rsp, 0x13e0
pop rdi
ret