joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18017dff0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18017e021
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x180226348]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180226358]
lea rdx, [rdi + rdi]
call fcn.18008f9d0
mov rax, qword [0x180226348]
lea r9, [rdi - 1]
mov qword [0x180226370], r9
mov qword [0x180226378], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18017e194
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180226358]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18017e0e0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18017e155
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18017e11d
mov r10, qword [rdx]
cmp r10, rax
je 0x18017e117
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18017e155
cmp r9, rdx
je 0x18017e131
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18017e169
cmp r9, rdx
jne 0x18017e122
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18017e18f
mov r9, qword [0x180226370]
jmp 0x18017e091
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18017e155
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18017e9c0
Capabilities:
Enumerate gui resources
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
sub rsp, 0x48
mov qword [rax + 0x18], rbx
mov rbx, r8
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
test r8, r8
jne 0x18017e9fa
lea r8, [rax + 0x10]
lea rdx, [rax - 0x28]
call fcn.18017eb10
mov edx, dword [rsp + 0x58]
mov rbx, qword [rax]
add rbx, 0x18
mov qword [rsp + 0x40], rbp
test edx, edx
je 0x18017eace
mov ecx, edx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18017eace
cmp qword [0x18022d230], 0
jne 0x18017ea49
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea rcx, [0x18017b280]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x50]
mov qword [0x18022d230], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x18022d230]
jne 0x18017eace
cmp byte [rbx], 0
mov dil, 1
jne 0x18017ead1
movzx esi, dil
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
lea r8, [rbx + 8]
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r8]
add rax, 0xfa
cmp rdx, rax
jge 0x18017eaf8
movzx ecx, dil
xor al, al
mov rbp, qword [rsp + 0x40]
test sil, sil
mov byte [rbx], dil
mov rdi, qword [rsp + 0x30]
mov byte [rbx + 1], sil
mov rsi, qword [rsp + 0x38]
mov byte [rbx + 2], cl
mov byte [rbx + 3], al
mov rbx, qword [rsp + 0x60]
je 0x18017eac9
mov qword [r8], rdx
add rsp, 0x48
ret
xor dil, dil
xor sil, sil
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
xor cl, cl
lea r8, [rbx + 8]
test dil, dil
jne 0x18017ea9e
cmp byte [rbx], cl
je 0x18017ea9e
mov al, 1
jmp 0x18017eaa0
Function at 0x18017ee00
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18017ee31
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x180226418]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x180226428]
lea rdx, [rdi + rdi]
call fcn.18008f9d0
mov rax, qword [0x180226418]
lea r9, [rdi - 1]
mov qword [0x180226440], r9
mov qword [0x180226448], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18017efa4
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x180226428]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18017eef0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18017ef65
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18017ef2d
mov r10, qword [rdx]
cmp r10, rax
je 0x18017ef27
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18017ef65
cmp r9, rdx
je 0x18017ef41
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18017ef79
cmp r9, rdx
jne 0x18017ef32
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18017ef9f
mov r9, qword [0x180226440]
jmp 0x18017eea1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18017ef65
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18017f3f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x80
mov rbp, r8
mov r15, rdx
mov esi, 0x811c9dc5
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rcx + r8], 0
jne 0x18017f412
xor edx, edx
test rcx, rcx
je 0x18017f445
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rdx + r8]
inc rdx
xor eax, esi
imul esi, eax, 0x1000193
cmp rdx, rcx
jb 0x18017f430
xor edi, edi
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], r14
cmp dword [r15 + 8], edi
jle 0x18017f4d8
xor r14d, r14d
mov rbx, qword [r15]
mov r9d, 0x811c9dc5
mov rax, 0xffffffffffffffff
movups xmm1, xmmword [rbx + r14 + 0x40]
mov r8, qword [rbx + r14]
nop word [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x18017f480
xor edx, edx
test rax, rax
je 0x18017f4a8
movsx ecx, byte [rdx + r8]
inc rdx
xor ecx, r9d
imul r9d, ecx, 0x1000193
cmp rdx, rax
jb 0x18017f491
cmp esi, r9d
je 0x18017f507
movq rdx, xmm1
test rdx, rdx
je 0x18017f4cc
mov r8, rbp
lea rcx, [0x18022cba8]
call fcn.18017f3f0
mov ecx, eax
test eax, eax
jne 0x18017f4fe
inc edi
add r14, 0x60
cmp edi, dword [r15 + 8]
jl 0x18017f460
xor eax, eax
mov r14, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop rdi
pop rsi
ret
mov eax, dword [rbx + r14 + 0x48]
add eax, ecx
jmp 0x18017f4da
psrldq xmm1, 8
movd eax, xmm1
jmp 0x18017f4da

Function at 0x18018137c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1801813b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1801813bb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180181404
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1801af2c0]
cmp byte [rcx + rax], 0
je 0x180181404
dec r8
sub rdx, 1
jne 0x1801813ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180001d10
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp edx, 1
jne 0x180001d5d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x180001cd0]
mov rdi, rcx
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test rsi, rsi
je 0x180001d5d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x180005080
Capabilities:
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov eax, dword [0x18000f59c]
test rax, rax
je 0x1800050c8
mov edi, ecx
mov r14d, 0x20
mov rcx, qword [0x18000f590]
xor ebx, ebx
nop dword [rax]
mov edx, dword [rcx + r14]
shr edx, 1
and edx, 1
cmp edx, edi
jne 0x1800050cf
add r14, 0x38
inc rbx
cmp eax, ebx
jne 0x1800050b0
xor esi, esi
jmp 0x1800051bd
xor r8d, r8d
test edi, edi
setne r8b
lea rcx, [rsp + 0x28]
mov edx, 0xffffffff
call fcn.180005650
mov esi, eax
test eax, eax
jne 0x1800051bd
mov eax, dword [0x18000f59c]
xor esi, esi
cmp ebx, eax
jae 0x180005149
mov rcx, qword [0x18000f590]
jmp 0x18000511e
inc rbx
mov edx, eax
add r14, 0x38
cmp rbx, rdx
jae 0x180005149
mov edx, dword [rcx + r14]
shr edx, 1
and edx, 1
cmp edx, edi
je 0x180005110
mov ecx, ebx
mov edx, edi
call fcn.180005a00
test eax, eax
jne 0x180005147
mov rcx, qword [0x18000f590]
mov eax, dword [0x18000f59c]
jmp 0x180005110
mov esi, eax
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x1800051bd
mov r14d, dword [rsp + 0x34]
test r14, r14
je 0x1800051ab
xor r15d, r15d
mov r12, qword [sym.imp.KERNEL32.dll_OpenThread]
mov r13, qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180005188
inc r15
cmp r14, r15
je 0x1800051ab
mov r8d, dword [rdi + r15*4]
mov ecx, 0x5a
xor edx, edx
call r12
test rax, rax
je 0x180005180
mov rbx, rax
mov rcx, rax
call r13
mov rcx, rbx
call rbp
jmp 0x180005180
mov rcx, qword [0x18000f588]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180005430
Capabilities:
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, rcx
mov esi, 1
xor eax, eax
lock cmpxchg dword [0x18000f580], esi
je 0x18000547b
xor ebx, ebx
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax]
xor ecx, ecx
cmp rbx, 0x20
setae cl
call r14
inc rbx
xor eax, eax
lock cmpxchg dword [0x18000f580], esi
jne 0x180005460
cmp qword [0x18000f588], 0
je 0x1800054c6
mov edx, dword [0x18000f59c]
mov eax, 4
test rdx, rdx
je 0x180005628
mov rcx, qword [0x18000f590]
imul rdx, rdx, 0x38
xor esi, esi
xor r14d, r14d
nop dword [rax]
cmp qword [rcx + r14], rdi
je 0x1800054d0
add r14, 0x38
dec esi
cmp rdx, r14
jne 0x1800054b0
jmp 0x180005628
mov eax, 2
jmp 0x180005628
cmp esi, 1
je 0x180005628
neg esi
test byte [rcx + r14 + 0x20], 2
jne 0x180005587
mov rcx, qword [rcx + r14 + 0x10]
call fcn.180006790
mov ecx, dword [0x18000f59c]
dec ecx
cmp ecx, esi
jbe 0x180005533
mov rax, qword [0x18000f590]
mov edx, ecx
imul rdx, rdx, 0x38
mov r8, qword [rax + rdx + 0x30]
mov qword [rax + r14 + 0x30], r8
movups xmm0, xmmword [rax + rdx]
movups xmm1, xmmword [rax + rdx + 0x10]
movups xmm2, xmmword [rax + rdx + 0x20]
movups xmmword [rax + r14 + 0x20], xmm2
movups xmmword [rax + r14 + 0x10], xmm1
movups xmmword [rax + r14], xmm0
mov dword [0x18000f59c], ecx
mov edx, dword [0x18000f598]
xor eax, eax
cmp edx, 0x40
jb 0x180005628
shr edx, 1
cmp edx, ecx
jb 0x180005628
imul r9, rdx, 0x38
mov r8, qword [0x18000f590]
mov rcx, qword [0x18000f588]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180005580
shr dword [0x18000f598], 1
mov qword [0x18000f590], rax
xor eax, eax
jmp 0x180005628
lea rcx, [rsp + 0x28]
mov edx, esi
xor r8d, r8d
call fcn.180005650
test eax, eax
jne 0x180005628
mov ecx, esi
xor edx, edx
call fcn.180005a00
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x180005624
mov dword [rsp + 0x24], eax
mov r15d, dword [rsp + 0x34]
test r15, r15
je 0x18000560e
xor r12d, r12d
mov r13, qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800055e8
inc r12
cmp r15, r12
je 0x18000560e
mov r8d, dword [rdi + r12*4]
mov ecx, 0x5a
xor edx, edx
call r13
test rax, rax
je 0x1800055e0
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call rbp
jmp 0x1800055e0
mov rcx, qword [0x18000f588]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x24]
test eax, eax
je 0x180005641
xor ecx, ecx
xchg dword [0x18000f580], ecx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [0x18000f590]
jmp 0x1800054e7
Function at 0x180005a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov esi, edx
mov r15, qword [0x18000f590]
mov eax, ecx
imul r12, rax, 0x38
mov rax, qword [r15 + r12]
movzx ecx, byte [r15 + r12 + 0x20]
xor edx, edx
test cl, 1
sete dl
lea rdx, [rdx + rdx*4]
lea rdi, [rax + rdx]
add rdi, 0xfffffffffffffffb
and ecx, 1
lea rbx, [rcx*2 + 5]
lea r9, [rsp + 0x24]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180005a8f
lea r14, [r15 + r12]
add r14, 0x20
test esi, esi
je 0x180005a96
mov byte [rdi], 0xe9
mov eax, dword [r15 + r12 + 8]
sub eax, edi
add eax, 0xfffffffb
mov dword [rdi + 1], eax
test byte [r14], 1
je 0x180005ab8
add r15, r12
mov rax, qword [r15]
mov word [rax], 0xf9eb
jmp 0x180005ab8
mov eax, 0xa
jmp 0x180005afe
test byte [r14], 1
lea rax, [r15 + r12 + 0x18]
jne 0x180005aae
movzx ecx, byte [rax + 4]
mov byte [rdi + 4], cl
mov eax, dword [rax]
mov dword [rdi], eax
jmp 0x180005ab8
mov ecx, dword [rax]
mov eax, dword [rax + 3]
mov dword [rdi + 3], eax
mov dword [rdi], ecx
mov r8d, dword [rsp + 0x24]
lea r9, [rsp + 0x24]
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [r14]
and sil, 1
lea ecx, [rsi + rsi]
and al, 0xf9
or al, cl
shl sil, 2
or sil, al
mov byte [r14], sil
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1800083ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800083e6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800083eb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180008434
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18000a5d0]
cmp byte [rcx + rax], 0
je 0x180008434
dec r8
sub rdx, 1
jne 0x18000841a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001228
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rdi, rax
test rax, rax
je 0x140001297
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, qword [rdi + 0x18]
test rdi, rdi
je 0x140001287
add rdi, 0x10
mov rbx, qword [rdi]
jmp 0x140001282
lea rcx, [rbx + 0x58]
mov r8b, 1
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x1400012a7
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000126b
xor ebx, ebx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rbx + 0x30]
jmp 0x140001289

Function at 0x1400012b0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x140001306
lea r8, [0x140001990]
xor edx, edx
lea ecx, [rbx + 0x42]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, rax
xor ecx, ecx
mov r8d, 0x4e554c4c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x1400012f4
lfence
mov r8d, dword [rdi]
xor ebx, ebx
xor ecx, ecx
test r8d, r8d
je 0x14000137e
mov eax, ecx
mov r10, rsi
imul r11, rax, 0x128
lea rax, [rdi + 0x30]
add rax, r11
sub r10, rax
movzx edx, byte [rax]
movzx r9d, byte [rax + r10]
sub edx, r9d
jne 0x14000136c
inc rax
test r9d, r9d
jne 0x140001357
test edx, edx
je 0x140001379
inc ecx
cmp ecx, r8d
jb 0x140001341
jmp 0x14000137e
mov rbx, qword [r11 + rdi + 0x18]
lfence
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x1400012f4
lfence
mov rax, rbx
jmp 0x1400012f6

Function at 0x1400013cc
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, r9
mov rdi, r8
mov rsi, rdx
test rdx, rdx
je 0x140001438
test r8, r8
je 0x140001438
test rbx, rbx
je 0x140001438
and qword [rax + 0x10], 0
lea rdx, [rax - 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x68]
mov r9, rdi
mov qword [rsp + 0x30], rcx
mov r8, rax
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
test eax, eax
js 0x140001438
mov al, 1
jmp 0x14000143a
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000144c
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x90
mov rdi, r9
mov rsi, r8
mov rbx, rdx
test rdx, rdx
je 0x140001528
test r8, r8
je 0x140001528
test r9, r9
je 0x140001528
lea rdx, [rax + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0xa8]
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], 0x30
mov rdx, rbx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
test eax, eax
js 0x14000151d
mov rdx, qword [rsp + 0x48]
lea rax, [rbx + rdi]
add rdx, qword [rsp + 0x30]
cmp rdx, rax
jb 0x14000151d
test dword [rsp + 0x50], 0x1000
je 0x14000151d
mov eax, dword [rsp + 0x54]
test eax, 0x101
jne 0x14000151d
test al, 0x40
jne 0x140001500
test al, al
js 0x140001500
test al, 4
jne 0x140001500
test al, 8
je 0x14000150e
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140001680
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
jmp 0x14000152a
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001740
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rdx
cmp qword [rcx + 8], 0
je 0x1400017e2
mov rdi, rcx
mov ecx, 0xfffffff4
call fcn.1400188a0
mov rbx, rax
xor r15d, r15d
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov dword [rsp + 0x2c], 0
mov r12, qword [rdi + 8]
test r12, r12
jle 0x1400017ec
xor r15d, r15d
mov ebp, 0x40000000
lea r14, [rsp + 0x2c]
nop dword [rax]
mov r8d, r12d
sub r8d, r15d
cmp r8d, 0x40000000
cmovge r8d, ebp
mov rdx, qword [rdi]
add rdx, r15
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov r9, r14
call sub.KERNEL32.dll_WriteFile
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
je 0x1400017e7
test eax, eax
je 0x1400017e7
add r15, rcx
cmp r15, r12
jl 0x1400017a0
jmp 0x1400017ec
xor r15d, r15d
jmp 0x1400017ec
call sub.KERNEL32.dll_GetLastError
mov qword [rsi], r15
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140019040
Capabilities:
Parse pe header

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

Function at 0x14001c6e8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001c757
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c757
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001c757
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001c757
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001c757
cmp dword [rcx + 0x84], 0xe
jbe 0x14001c757
cmp dword [rcx + 0xf8], 0
je 0x14001c757
mov ecx, ebx
call fcn.14001c808
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14001c5e4
nop
cmp dword [rbp + 0x20], 0
je 0x14001c7a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001c7b0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001c6e8

Function at 0x14001c8ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c6e8