joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031230
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r13, rcx
mov r12, rdx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x54]
xor edx, edx
mov eax, 0x40000000
xor edi, edi
div rsi
mov r14d, edi
lea ebp, [rdi + 1]
mov r15, rax
shl r15, 2
test r15, r15
je 0x14003130a
mov qword [rsp + 0xb0], rbx
nop dword [rax]
mov rdx, rdi
lea r8, [rsp + 0x20]
imul rdx, rsi
mov r9d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor edx, edx
test rax, rax
je 0x1400312ef
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x1400312ef
div rsi
cmp dword [rsp + 0x40], 0x1000
mov rbx, rax
jne 0x1400312fa
mov r8, qword [rsp + 0x28]
cmp r8, r14
jbe 0x1400312fa
mov r9d, ebp
mov rdx, r12
mov rcx, r13
mov r14, r8
call fcn.140030e90
test al, al
je 0x1400312fa
inc ebp
jmp 0x1400312fa
mov eax, 0x10000
div rsi
mov rbx, rax
add rdi, rbx
cmp rdi, r15
jb 0x140031290
mov rbx, qword [rsp + 0xb0]
lea r11, [rsp + 0x80]
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 0x140031330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
lea rdx, [0x1400818a0]
call fcn.140039020
lea rdx, str.Context:_r_n
mov rcx, rdi
call fcn.140039020
mov rax, qword [rbx + 0x78]
lea rdx, str.RDI:____0x_016llx__RSI:_0x_016llx__RAX:___0x_016llx_r_n
mov r9, qword [rbx + 0xa8]
mov rcx, rdi
mov r8, qword [rbx + 0xb0]
mov qword [rsp + 0x20], rax
call fcn.140039020
mov rax, qword [rbx + 0x88]
lea rdx, str.RBX:____0x_016llx__RCX:_0x_016llx__RDX:___0x_016llx_r_n
mov r9, qword [rbx + 0x80]
mov rcx, rdi
mov r8, qword [rbx + 0x90]
mov qword [rsp + 0x20], rax
call fcn.140039020
movzx eax, word [rbx + 0x38]
lea rdx, str.RIP:____0x_016llx__RBP:_0x_016llx__SegCs:_0x_016llx_r_n
mov r9, qword [rbx + 0xa0]
mov rcx, rdi
mov r8, qword [rbx + 0xf8]
mov dword [rsp + 0x20], eax
call fcn.140039020
movzx eax, word [rbx + 0x42]
lea rdx, str.EFlags:_0x_016llx__RSP:_0x_016llx__SegSs:_0x_016llx_r_n
mov r9, qword [rbx + 0x98]
mov rcx, rdi
mov r8d, dword [rbx + 0x44]
mov dword [rsp + 0x20], eax
call fcn.140039020
mov rax, qword [rbx + 0xc8]
lea rdx, str.R8:_____0x_016llx__R9:__0x_016llx__R10:___0x_016llx_r_n
mov r9, qword [rbx + 0xc0]
mov rcx, rdi
mov r8, qword [rbx + 0xb8]
mov qword [rsp + 0x20], rax
call fcn.140039020
mov rax, qword [rbx + 0xe0]
lea rdx, str.R11:____0x_016llx__R12:_0x_016llx__R13:___0x_016llx_r_n
mov r9, qword [rbx + 0xd8]
mov rcx, rdi
mov r8, qword [rbx + 0xd0]
mov qword [rsp + 0x20], rax
call fcn.140039020
mov r9, qword [rbx + 0xf0]
lea rdx, str.R14:____0x_016llx__R15:_0x_016llx_r_n
mov r8, qword [rbx + 0xe8]
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140039020
Function at 0x140033dc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r14d, r14d
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
mov ebx, r14d
test r8, r8
je 0x140033e3e
mov r15d, 0xffffffff
nop dword [rax]
nop word [rax + rax]
mov rax, rsi
mov dword [rsp + 0x58], r14d
sub rax, rbx
mov qword [rsp + 0x20], r14
cmp rax, r15
lea r9, [rsp + 0x58]
mov rdx, rdi
mov rcx, rbp
cmova eax, r15d
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033e59
mov eax, dword [rsp + 0x58]
add rbx, rax
add rdi, rax
cmp rbx, rsi
jb 0x140033e00
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
xor al, al
jmp 0x140033e40
Function at 0x1400349b0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rsi, rdx
movsxd rbx, ecx
xor edx, edx
lea rcx, [rbp + 0x94]
lea r8d, [rdx + 0x64]
call fcn.140042b90
xor eax, eax
mov dword [rbp + 0x90], 0x68
mov r14d, 1
mov qword [rsp + 0x70], rax
mov r8d, r14d
mov qword [rsp + 0x78], rax
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x80], rax
lea edx, [rax + 3]
call fcn.140019a10
xor r15d, r15d
mov rdi, rbx
test ebx, ebx
jle 0x140034a63
mov ebx, r15d
nop word [rax + rax]
lea rdx, [0x140086390]
lea rcx, [rbp - 0x60]
call fcn.14002c360
mov rdx, qword [rsi + rbx*8]
mov rcx, rax
call fcn.14002c360
mov rcx, rax
lea rdx, [0x14008791c]
call fcn.14002c360
inc rbx
cmp rbx, rdi
jl 0x140034a30
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, qword [str.X_b_]
mov rcx, rax
mov rbx, rax
call fcn.1400432b0
test rax, rax
je 0x140034a90
mov rdx, qword [str.X_b_]
lea rcx, [rbp - 0x60]
call fcn.14002c360
mov rdx, qword [str.p_b_]
mov rcx, rbx
call fcn.1400432b0
test rax, rax
je 0x140034ab4
mov rdx, qword [str.p_b_]
lea rcx, [rbp - 0x60]
call fcn.14002c360
mov rcx, qword [rbp + 0x18]
movdqa xmm0, xmmword [0x1400839d0]
mov word [rsp + 0x50], r15w
movdqu xmmword [rsp + 0x60], xmm0
test cl, 2
jne 0x140034af2
mov rax, qword [rbp - 0x18]
mov r8, qword [rax]
test r8, r8
je 0x140034af2
cmp r8, qword [rbp + 0x10]
mov rax, qword [rbp - 0x38]
cmovb r8, qword [rbp + 0x10]
mov rdx, qword [rax]
sub r8, rdx
jmp 0x140034b1a
test cl, 4
jne 0x140034b27
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x140034b27
mov rax, qword [rbp - 0x40]
mov rdx, qword [rax]
mov rax, qword [rbp - 8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x50]
call fcn.140029c00
cmp qword [rsp + 0x68], 8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
cmovae rdx, qword [rsp + 0x50]
lea rax, [rbp + 0x90]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], r15
xor r8d, r8d
mov qword [rsp + 0x30], r15
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140034b8d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, r15d
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140034bcb
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140034bc6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034c08
call fcn.14003e020
movdqa xmm0, xmmword [0x1400839d0]
lea rcx, [rbp - 0x70]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r15w
call fcn.14001b070
lea r11, [rsp + 0x200]
mov eax, r14d
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140049988
int3
Function at 0x140035700
Capabilities:
Terminate thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rcx
je 0x140035830
mov rcx, qword [rcx]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rdi]
mov byte [rdi + 0x40], 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Kernel32.dll
mov qword [rdi], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.CancelSynchronousIo
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400357c5
mov rcx, qword [rdi + 8]
call rbx
test eax, eax
jne 0x14003579b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14003579b
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003579b
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140035763
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x30]
jmp 0x140035815
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400357f3
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x38]
xor ebx, ebx
mov dword [rsp + 0x38], ebx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ebx, dword [rsp + 0x38]
jmp 0x140035815
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140038fc0
Capabilities:
Write file on windows

Disassembly:
cmp rcx, 0xffffffffffffffff
je 0x140039014
push rbx
sub rsp, 0x30
cmp dword [0x1400b0a28], 0
mov rbx, rcx
jle 0x14003900f
lea rcx, [0x1400b0a50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [0x1400b0a50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x1400b0a28], 0
add rsp, 0x30
pop rbx
ret

Function at 0x140039020
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x60
lea rax, [rcx - 1]
mov r8, rdx
mov rbx, rcx
cmp rax, 0xfffffffffffffffd
ja 0x1400390e7
mov eax, dword [0x1400b0a28]
mov qword [rsp + 0x58], rdi
lea rdi, [0x1400b0a50]
cmp eax, 0x1c00
jle 0x140039094
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x78]
xor eax, eax
mov dword [0x1400b0a28], eax
cdqe
lea r9, [rsp + 0x80]
mov qword [rsp + 0x30], r9
mov edx, 0x2000
mov qword [rsp + 0x28], r8
sub rdx, rax
xor r9d, r9d
mov qword [rsp + 0x40], 0
lea rcx, [rax + rdi]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
call fcn.140035840
test eax, eax
js 0x1400390e2
mov eax, dword [rsp + 0x40]
sub eax, edi
mov dword [0x1400b0a28], eax
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop rbx
ret

Function at 0x140039770
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14003979a
mov edx, eax
lea rcx, str.CoInitializeEx_failed_with_code_0x_0x_n
call fcn.140001f60
mov eax, 1
add rsp, 0x38
ret
mov ecx, 3
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [0x140032870]
call fcn.140049a00
mov edx, 2
mov ecx, edx
call fcn.140045368
lea rdx, [0x1400302a0]
mov ecx, 0x16
call fcn.14004d544
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rcx, qword [str.X_b_]
lea rdx, [rsp + 0x20]
mov r8, rax
mov rbx, rax
call fcn.140020110
test al, al
je 0x14003980f
call fcn.14001f510
mov rcx, qword [str.p_b_]
lea rdx, [rsp + 0x20]
mov r8, rbx
call fcn.140020110
test al, al
je 0x14003982c
call fcn.140021570
mov r8, rbx
lea rdx, [rsp + 0x20]
lea rcx, str.__attach
call fcn.140020110
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
test al, al
je 0x140039878
mov qword [rsp + 0x30], rdi
call fcn.14001bbb0
mov edi, eax
test eax, eax
js 0x140039867
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
call fcn.1400349b0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
call fcn.1400342f0
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x140008764
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
xor r15d, r15d
mov r12d, 0x5c
test rbx, rbx
je 0x1400087e8
cmp word [rbx], r15w
je 0x1400087e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x1400087e8
cmp word [rbx], 0x7f
jae 0x1400087d7
cmp word [rbx + 2], 0x3a
je 0x1400088d2
cmp word [rbx], r12w
jne 0x1400087e8
cmp word [rbx + 2], r12w
je 0x1400088d2
cmp byte [0x1400100da], r15b
mov ebp, r15d
jne 0x140008869
cmp byte [0x14000fdc4], r15b
je 0x140008869
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x1400088d2
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x105
test rax, rax
jne 0x14000883b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, r15d
jmp 0x140008854
mov edx, esi
lea rcx, [rsp + 0x20]
call qword [0x14000a618]
mov edi, eax
test eax, eax
jne 0x140008856
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000887d
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x1400088d2
lea ecx, [rdi + 2]
cmp ecx, esi
ja 0x1400088d2
mov ecx, edi
lea eax, [rdi + 1]
mov r8, rbx
mov rdx, rsi
mov word [rsp + rcx*2 + 0x20], r12w
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x20], r15w
call fcn.1400011a4
test eax, eax
js 0x1400088d2
lea r8, str..DLL
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400011a4
test eax, eax
js 0x1400088d2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1400088d4
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140008ea0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400092f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000933c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009334
cmp dword [rcx + 0x3c], edx
jl 0x140009334
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009334
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000933c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400019ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019f8
xor al, al
add rsp, 0x28
ret
Function at 0x140004e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x24], 0
mov byte [rsp + 0x23], 1
mov dword [rsp + 0x2c], 9
mov rcx, qword [rsp + 0x60]
call fcn.14000cf70
cmp dword [rsp + 0x2c], 0
jle 0x140004f3d
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 4
jge 0x140004f09
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x21], al
mov dl, 1
movzx ecx, byte [rsp + 0x21]
call fcn.14000c400
mov byte [rsp + 0x21], al
movsxd rax, dword [rsp + 0x28]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx + rax]
call fcn.14000cf90
movzx eax, byte [rsp + 0x23]
mov ecx, dword [rsp + 0x28]
lea eax, [rax + rcx + 1]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
and eax, 3
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 0x20]
add eax, ecx
movzx ecx, byte [rsp + 0x21]
add eax, ecx
mov byte [rsp + 0x22], al
mov dl, 1
movzx ecx, byte [rsp + 0x22]
call fcn.14000c400
mov byte [rsp + 0x22], al
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x22]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x140004e51
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.14000c540
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
movzx ecx, byte [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov byte [rsp + 0x24], al
mov eax, dword [rsp + 0x2c]
dec eax
mov dword [rsp + 0x2c], eax
jmp 0x140004e3e
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx]
mov eax, dword [rax]
xor eax, ecx
mov rcx, qword [rsp + 0x50]
mov dword [rcx], eax
movzx eax, byte [rsp + 0x24]
add rsp, 0x48
ret
Function at 0x140005260
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x58]
call fcn.140004300
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 1]
mov byte [rsp + 0x24], al
cmp byte [rsp + 0x24], 0
je 0x140005333
cmp byte [rsp + 0x24], 1
je 0x140005333
cmp byte [rsp + 0x24], 2
je 0x1400052c4
cmp byte [rsp + 0x24], 3
je 0x140005329
jmp 0x140005333
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x140005309
cmp dword [rsp + 0x2c], 1
je 0x1400052dc
jmp 0x14000531f
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PoSetPowerState]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x1c], ecx
mov dword [rsp + 0x20], 0
jmp 0x140005327
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x18], ecx
mov dword [rsp + 0x20], 0
jmp 0x140005327
mov dword [rsp + 0x20], 0xc00000bb
jmp 0x14000533b
mov dword [rsp + 0x20], 0
jmp 0x14000533b
mov dword [rsp + 0x20], 0xc00000bb
cmp dword [rsp + 0x20], 0xc00000bb
je 0x140005351
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PoStartNextPowerIrp]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x1400058f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xc0000034
je 0x140005969
cmp dword [rsp + 0x30], 0
jne 0x140005973
mov eax, 0xc0000034
jmp 0x140005a2f
mov eax, dword [rsp + 0x30]
mov r8d, 0x4d525356
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400059a1
mov eax, 0xc000009a
jmp 0x140005a2f
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x1400059f8
cmp qword [rsp + 0x38], 0
je 0x1400059f1
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc000000d
jmp 0x140005a2f
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
add rcx, 0xc
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x70]
call fcn.140001880
cmp qword [rsp + 0x38], 0
je 0x140005a2d
mov edx, 0x4d525356
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
add rsp, 0x58
ret

Function at 0x140005a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov dword [rsp], 7
jmp 0x140005a6e
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jl 0x140005ad6
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
shl eax, 1
movzx ecx, byte [rsp + 0x20]
mov dword [rsp + 4], ecx
mov edx, dword [rsp]
movzx ecx, dl
mov edx, dword [rsp + 4]
sar edx, cl
mov ecx, edx
and ecx, 1
or eax, ecx
mov rcx, qword [rsp + 0x28]
mov byte [rcx], al
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
and eax, 0x10
test eax, eax
je 0x140005ac2
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
xor eax, 0xd
mov rcx, qword [rsp + 0x28]
mov byte [rcx], al
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
and eax, 0xf
mov rcx, qword [rsp + 0x28]
mov byte [rcx], al
jmp 0x140005a66
add rsp, 0x18
ret
Function at 0x140016c70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
call fcn.140005a40
mov byte [rsp + 0x40], al
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140016ca7
mov eax, 1
jmp 0x140016dea
mov r8d, 0x100
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140001bd0
mov rax, qword [rsp + 0x1d8]
add rax, 0x14f8
mov qword [rsp + 0x38], rax
lea rax, str.RegistryMACHINESystemCurrentControlSet_aaa
mov qword [rsp + 0x30], rax
lea rax, [0x1400010d8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
xor r9d, r9d
xor r8d, r8d
mov edx, 0x100
lea rcx, [rsp + 0xb0]
call fcn.1400043a0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x88]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x58]
mov edx, 0x20006
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140016dcd
mov rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x44], 0
jl 0x140016dde
mov dword [rsp + 0x48], 0
jmp 0x140016de6
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
add rsp, 0x1b8
ret