joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b23b
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x140055840], eax
mov eax, dword [0x140055840]
cmp eax, 0xffffffff
jne 0x14004b262
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x14004b415
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14006a070]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140055840]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14004b468
mov rax, qword [rbp - 0x10]
jmp 0x14004b5c8
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14004b484
cmp qword [rbp - 0x10], 0
jne 0x14004b48e
mov eax, 0
jmp 0x14004b5c8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14004b569
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x140055840]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14004b5c4
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14004b6c2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14004b72f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x140055840]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14004b873
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14004b7cc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14004b787
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140055840]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14004b873
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14004b806
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14004b873
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140055840]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14004c4b5
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x140055850]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14006a070]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140055840]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14004c5ca
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x140055850]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14004c598
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x140055850]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14004c5d9
lea rax, [0x140055850]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14004c615
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14004c683
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x140055840]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14004c6cd
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14004c6cd
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x140055850]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14004c6bf
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14000196c
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x60
and qword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
and qword [rbp + 0x28], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [0x140011088]
test eax, eax
jns 0x1400019a4
xor eax, eax
jmp 0x140001a1e
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessExitStatus]
mov rcx, qword [rbp + 0x20]
cmp eax, 0x103
je 0x1400019c1
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400019a0
lea rdx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9, [rbp + 0x18]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp + 0x28]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001a10
mov r8, qword [rbp + 0x18]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.14000f8c0
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.14000af2c
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [rbp + 0x28]
add rsp, 0x60
pop rbp
ret
Function at 0x14000201c
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
and qword [rbp + 0xf], 0
xorps xmm0, xmm0
and qword [rbp + 0x17], 0
mov r14, rdx
and qword [rbp + 7], 0
lea rdx, [rbp + 0xf]
movups xmmword [rbp + 0x1f], xmm0
mov rdi, r9
mov rsi, r8
movups xmmword [rbp + 0x2f], xmm0
movups xmmword [rbp + 0x3f], xmm0
call qword [0x140011088]
test eax, eax
jns 0x14000207a
mov eax, 0xc0000001
jmp 0x14000217f
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0xf]
lea rdx, [rbp + 0x1f]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp + 0x17]
xor edx, edx
mov qword [rsp + 0x28], rax
mov r9d, 0x240
and dword [rsp + 0x20], 0
mov r8d, 0x1fffff
or rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwGetNextThread
mov ebx, eax
test eax, eax
jns 0x1400020ce
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
jmp 0x14000217f
mov r8, qword [0x1400110c0]
lea rax, [rbp + 7]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x17]
mov edx, 0x1fffff
mov qword [rsp + 0x20], rax
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_NtClose]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp qword [rbp + 7], 0
je 0x1400020c7
mov edx, 0x58
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x14000213a
mov eax, 0xc0000017
jmp 0x14000217f
and qword [rsp + 0x38], 0
mov r9, r14
mov rdx, qword [rbp + 7]
xor r8d, r8d
mov byte [rsp + 0x30], 0
mov rcx, rbx
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call sub.ntoskrnl.exe_KeInitializeApc
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.ntoskrnl.exe_KeInsertQueueApc
neg al
sbb eax, eax
not eax
and eax, 0xc0000001
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400047a4
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov rsi, rdx
mov rcx, r8
call fcn.14000dfa8
mov rbx, rax
test rax, rax
je 0x14000481a
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140004cc4
test rax, rax
je 0x14000481a
mov rdx, rdi
mov rcx, rax
call fcn.140004870
lea rcx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
jmp 0x14000481c
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140004870
Capabilities:
Resolve function by parsing pe exports

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
push r15
movsxd rax, dword [rcx + 0x3c]
xor r8d, r8d
mov r15, rdx
mov r11d, r8d
mov r9d, dword [rax + rcx + 0x88]
add r9, rcx
mov r14d, dword [r9 + 0x18]
test r14d, r14d
je 0x140004905
mov esi, dword [r9 + 0x1c]
mov edi, r8d
mov r10d, dword [r9 + 0x20]
add rsi, rcx
add r10, rcx
movsxd rax, dword [r10]
mov rbp, r15
add rax, rcx
sub rbp, rax
movzx edx, byte [rax]
movzx ebx, byte [rax + rbp]
sub edx, ebx
jne 0x1400048d7
inc rax
test ebx, ebx
jne 0x1400048c5
test edx, edx
jne 0x1400048ec
mov eax, dword [r9 + 0x24]
add rax, rdi
movsx rdx, word [rax + rcx]
cmp edx, 0xffffffff
jne 0x1400048fe
inc r11d
add r10, 4
add rdi, 2
cmp r11d, r14d
jae 0x140004905
jmp 0x1400048b9
movsxd r8, dword [rsi + rdx*4]
add r8, rcx
mov rbx, qword [rsp + 0x18]
mov rax, r8
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret

Function at 0x140004928
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
xor esi, esi
call sub.ntoskrnl.exe_PsGetProcessPeb
mov rdi, rax
test rax, rax
je 0x140004a6c
and qword [rsp + 0xb8], rsi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov r9, rdi
mov byte [rsp + 0x28], 1
mov r8, rbx
mov rdx, rdi
mov qword [rsp + 0x20], 4
mov rcx, rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
xorps xmm0, xmm0
lea rdx, [rsp + 0x50]
mov rcx, rbx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004a51
mov rdx, qword [rdi + 0x18]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov r9, rdx
mov byte [rsp + 0x28], 1
mov r8, rbx
mov rcx, rbx
mov qword [rsp + 0x20], 8
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004a51
mov rdi, qword [rdi + 0x18]
lea rdx, [rsp + 0x40]
add rdi, 0x10
mov rcx, r15
mov rbx, qword [rdi]
call fcn.140004834
test eax, eax
js 0x140004a51
jmp 0x140004a38
lea rcx, [rbx + 0x58]
mov r8b, 1
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140004a3f
mov rbx, qword [rbx]
cmp rdi, rbx
jne 0x140004a1f
jmp 0x140004a46
mov rbp, qword [rbx + 0x30]
mov esi, dword [rbx + 0x40]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test rsi, rsi
je 0x140004a69
test r14, r14
je 0x140004a69
mov qword [r14], rsi
mov rax, rbp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140004a90
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov r15, r8
mov r12, rdx
mov rbx, rcx
xor r14d, r14d
xor edi, edi
call sub.ntoskrnl.exe_PsGetProcessWow64Process
mov rsi, rax
test rax, rax
je 0x140004bd9
and qword [rbp + 0x7f], rdi
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x30], rax
mov r9, rsi
mov byte [rsp + 0x28], 1
mov r8, rbx
mov rdx, rsi
mov qword [rsp + 0x20], 4
mov rcx, rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
xorps xmm0, xmm0
lea rdx, [rbp + 7]
mov rcx, rbx
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004bbf
mov r13d, dword [rsi + 0xc]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x30], rax
mov r9d, r13d
mov byte [rsp + 0x28], 1
mov r8, rbx
mov edx, r13d
mov qword [rsp + 0x20], 8
mov rcx, rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov ecx, dword [rsi + 0xc]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140004bbf
lea rsi, [r13 + 0xc]
mov rcx, r12
mov ebx, dword [rsi]
lea rdx, [rbp - 9]
call fcn.140004834
test eax, eax
js 0x140004bbf
jmp 0x140004ba7
xorps xmm0, xmm0
lea rcx, [rbp - 0x19]
movups xmmword [rbp - 0x19], xmm0
mov edx, dword [rbx + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x140004bae
mov ebx, dword [rbx]
cmp rsi, rbx
jne 0x140004b7c
jmp 0x140004bb5
mov r14d, dword [rbx + 0x18]
mov edi, dword [rbx + 0x20]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test rdi, rdi
je 0x140004bd6
test r15, r15
je 0x140004bd6
mov qword [r15], rdi
mov rax, r14
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140003100
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Enumerate gui resources

Disassembly:
push rbp
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14, rcx
lea rdx, [0x140001e90]
mov rcx, qword [0x140029e38]
xor r15d, r15d
xor r8d, r8d
mov dword [rsp + 0x30], r15d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov rbp, qword [0x140029e28]
test rbp, rbp
je 0x140003360
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd8], r12
mov r12d, 0x8664
mov qword [rsp + 0x90], r13
mov r13d, 0x2000
mov qword [rsp + 0xd0], rsi
mov rbx, qword [0x140029d08]
lea r8, [0x1400247f0]
movzx edx, word [rbp]
mov rcx, rbx
call fcn.140007b20
test rax, rax
je 0x140003333
mov esi, dword [rax]
add rsi, qword [rbx + 8]
je 0x140003333
mov eax, dword [rax + 4]
mov ecx, eax
mov dword [rsp + 0x30], eax
call fcn.14000c018
mov rbx, rax
test rax, rax
je 0x140003333
mov r8d, dword [rsp + 0x30]
mov rdx, rsi
mov rcx, rax
call fcn.14000b3e0
movups xmm1, xmmword [r14 + 0x10]
mov rcx, qword [0x140029ef0]
lea rax, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov dword [rsp + 0x40], 1
movups xmmword [rsp + 0x78], xmm0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], 0x208
movups xmm0, xmmword [r14]
lea r8d, [r9 + 0x2c]
mov dword [rsp + 0x4c], 0x6610
mov dword [rsp + 0x50], 0x20
movups xmmword [rsp + 0x54], xmm0
mov dword [rsp + 0x20], r15d
movups xmmword [rsp + 0x64], xmm1
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x14000332b
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003320
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x78]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140003320
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edx, dword [rsp + 0x30]
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140003309
cmp edx, 0x130
jb 0x140003309
movsxd r8, dword [rbx + 0x3c]
cmp edx, dword [r8 + rbx + 0x54]
jb 0x140003309
lea rcx, [r8 + 0x108]
cmp rdx, rcx
jb 0x140003309
cmp word [r8 + rbx + 4], r12w
jne 0x140003309
test word [r8 + rbx + 0x16], r13w
je 0x140003309
mov rcx, rbx
call fcn.140007550
test rax, rax
je 0x140003333
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400012f0
jmp 0x140003318
lea r8, [rbx + 0x10]
add edx, 0xfffffff0
mov rcx, rbx
call fcn.140003fa0
test eax, eax
jne 0x14000332b
inc edi
jmp 0x14000332b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000c004
mov rbp, qword [rbp + 8]
test rbp, rbp
jne 0x140003181
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140007c70
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ee9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000ec8c
Function at 0x140013c78
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013ca8
xor eax, eax
jmp 0x140013d6b
mov rbp, rbx
cmp word [rax], si
je 0x140013ccd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013cb4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013cb0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013bc8
movsxd r14, eax
test eax, eax
jne 0x140013d0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013ca1
mov rcx, r14
call fcn.1400105b0
mov rdi, rax
test rax, rax
jne 0x140013d24
xor ecx, ecx
call fcn.140010574
jmp 0x140013d00
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013bc8
test eax, eax
jne 0x140013d55
mov rcx, rdi
call fcn.140010574
jmp 0x140013d5f
xor ecx, ecx
call fcn.140010574
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret