joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400097ec
Capabilities:
Attach user process memory

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x140012738]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov qword [rbp - 0x19], r8
xor esi, esi
mov qword [rbp - 0x21], r9
lea rdx, [rbp - 9]
mov dword [rbp - 0x29], esi
mov dword [rbp - 0x25], esi
mov rbx, rcx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x29]
or rcx, 0xffffffffffffffff
lea r9d, [rsi + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x140009889
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbp - 0x19]
mov rdx, rdi
mov r8, rax
mov rcx, rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x21]
mov byte [rsp + 0x28], sil
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_MmCopyVirtualMemory
test eax, eax
mov ebx, 0xc0000022
cmovns ebx, esi
jmp 0x14000988e
mov ebx, 0xc0000022
mov r9d, dword [rbp - 0x29]
lea rax, [rbp - 0x25]
lea r8, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x19]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000dd80
add rsp, 0xa8
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140009950
Capabilities:
Attach user process memory

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140012738]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rdx
mov qword [rbp - 0x29], r8
mov rbx, rcx
mov qword [rbp - 0x31], r9
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 9]
mov qword [rbp - 0x19], rcx
xor r14d, r14d
mov rcx, qword [rbp - 0x31]
mov rsi, rax
mov qword [rbp - 0x21], rcx
mov rcx, rbx
mov dword [rbp - 0x39], r14d
mov dword [rbp - 0x35], r14d
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 0x39]
or rcx, 0xffffffffffffffff
lea r9d, [r14 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
test eax, eax
js 0x140009a34
mov r9, qword [rbp - 0x29]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
mov r8, rbx
mov rax, qword [rbp - 0x31]
mov rdx, rdi
mov byte [rsp + 0x28], r14b
mov rcx, rsi
mov qword [rsp + 0x20], rax
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov r9d, dword [rbp - 0x39]
lea r8, [rbp - 0x31]
test eax, eax
lea rdx, [rbp - 0x29]
lea rax, [rbp - 0x35]
mov ebx, 0xc0000022
cmovns ebx, r14d
mov qword [rsp + 0x20], rax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, ebx
jmp 0x140009a39
mov eax, 0xc0000022
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000dd80
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140009ad8
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov ebx, ecx
mov ecx, ecx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140009b50
lea rax, [rsp + 0x60]
mov r9d, 0x19
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor edx, edx
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jne 0x140009b50
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwTerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, ebx
call fcn.140009f60
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140009f98
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
and dword [rsp + 0x50], 0
and qword [rsp + 0x28], 0
mov rax, qword [0x1400127d0]
test rax, rax
jne 0x14000a0a5
lea rdx, str.NtOpenFile
lea rcx, [rsp + 0x30]
call fcn.14000a784
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdi, rax
test rax, rax
je 0x14000a0a5
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x14000a009
xor eax, eax
jmp 0x14000a0a5
mov rdx, rax
xor ecx, ecx
mov r8d, 0x6a6e494b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call fcn.14000dfc0
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000a084
xor ecx, ecx
mov dword [rsp + 0x20], ecx
cmp ecx, dword [rbx]
jae 0x14000a084
mov eax, ecx
imul r8, rax, 0x128
mov rdx, qword [r8 + rbx + 0x18]
cmp rdi, rdx
jb 0x14000a080
mov eax, dword [r8 + rbx + 0x20]
add rax, rdx
cmp rdi, rax
jae 0x14000a080
mov qword [0x1400127d0], rdx
jmp 0x14000a084
inc ecx
jmp 0x14000a04f
jmp 0x14000a08b
test rbx, rbx
je 0x14000a09e
mov edx, 0x6a6e494b
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x1400127d0]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000a0b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
xor eax, eax
xor ebx, ebx
mov r14, rcx
mov word [rbp - 9], bx
xor edx, edx
mov qword [rbp - 7], rax
lea rcx, [rbp + 0x1f]
mov dword [rbp + 1], eax
lea r8d, [rbx + 0x28]
mov word [rbp + 5], ax
mov word [rbp + 7], bx
mov qword [rbp + 9], rax
mov dword [rbp + 0x11], eax
mov word [rbp + 0x15], ax
mov word [rbp - 0x19], bx
mov qword [rbp - 0x17], rax
mov dword [rbp - 0xf], eax
mov word [rbp - 0xb], ax
mov qword [rbp + 0x6f], rbx
mov dword [rbp + 0x17], ebx
call fcn.14000dfc0
test r14, r14
jne 0x14000a123
mov eax, 0xc000000d
jmp 0x14000a259
lea rdx, str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersion
lea rcx, [rbp - 9]
call fcn.14000a784
lea rdx, str.BuildLabEx
lea rcx, [rbp + 7]
call fcn.14000a784
lea rax, [rbp - 9]
mov dword [rbp + 0x17], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x27], rax
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rbx
mov edx, 0x20019
mov dword [rbp + 0x2f], 0x240
lea rcx, [rbp + 0x6f]
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
test eax, eax
js 0x14000a257
mov esi, 0x1000
mov r8d, 0x6a6e494b
mov edx, esi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [rbp + 0x67], ebx
mov rdi, rax
test rax, rax
je 0x14000a248
mov rcx, qword [rbp + 0x6f]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 7]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov esi, eax
test eax, eax
js 0x14000a238
mov r8d, dword [rdi + 0x10]
mov ecx, dword [rdi + 0xc]
add r8, rdi
test ecx, ecx
je 0x14000a238
mov eax, ebx
cmp word [r8 + rax*2 + 0x14], 0x2e
jne 0x14000a200
lea edx, [rbx + 1]
jmp 0x14000a1fc
cmp word [r8 + rdx*2 + 0x14], 0x2e
je 0x14000a208
inc edx
cmp edx, ecx
jb 0x14000a1f1
inc ebx
cmp ebx, ecx
jae 0x14000a238
jmp 0x14000a1e1
add r8, 0x16
mov eax, ebx
sub dx, bx
add dx, dx
mov word [rbp - 0x17], dx
lea rcx, [r8 + rax*2]
mov word [rbp - 0x19], dx
mov qword [rbp - 0x11], rcx
mov r8, r14
lea rcx, [rbp - 0x19]
mov edx, 0xa
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToInteger]
mov esi, eax
mov edx, 0x6a6e494b
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000a24d
mov esi, 0xc0000017
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a834
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140012738]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
mov r14, rdx
lea rdx, [rbp - 0x50]
xor sil, sil
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rdi, qword [rbp - 0x50]
mov ebx, eax
test eax, eax
js 0x14000a8cc
test rdi, rdi
je 0x14000a8cc
and dword [rbp - 0x48], 0
xor eax, eax
mov dword [rbp - 0x44], eax
xor r9d, r9d
lea rax, [rbp - 0x48]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rbp - 0x50]
test eax, eax
jne 0x14000a8b9
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ebx, 0xc000010a
jmp 0x14000a976
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov rdi, qword [rbp - 0x50]
test rax, rax
setne sil
jmp 0x14000a8d1
mov ebx, 0xc0000225
test ebx, ebx
js 0x14000a976
xor edx, edx
lea rcx, [rbp - 0x38]
lea r8d, [rdx + 0x30]
call fcn.14000dfc0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x50]
mov dl, sil
call fcn.14000cc08
test rax, rax
je 0x14000a962
and qword [rbp - 0x40], 0
lea rcx, [rbp - 0x48]
and qword [rbp - 0x48], 0
lea r9, [rbp - 0x40]
mov qword [rsp + 0x20], rcx
mov r8b, sil
mov rcx, r14
mov rdx, rax
call fcn.14000a99c
mov ebx, eax
test eax, eax
js 0x14000a962
mov r9, qword [rbp - 0x48]
mov dl, sil
mov r8, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x50]
call fcn.140008b60
mov ebx, eax
test eax, eax
jns 0x14000a962
mov r9d, 0x10000
lea rdx, [rbp - 0x40]
xor r8d, r8d
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000dd80
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a99c
Capabilities:
Allocate or change rwx 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
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x30], 0
mov r15, r9
mov r12b, r8b
mov dword [rax - 0x60], 0x40
mov rsi, rdx
mov qword [rbp - 0x20], 0x1000
mov r13, rcx
mov dword [rax - 0x68], 0x3000
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, [rbp - 0x30]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov edi, eax
test eax, eax
js 0x14000aace
mov rcx, qword [rbp - 0x30]
lea rdx, [0x14000f3d8]
mov al, r12b
neg al
sbb r14, r14
xor eax, eax
mov qword [rbp - 0x16], rax
and r14, 0xfffffffffffffff4
mov dword [rbp - 0x26], eax
add r14, 0x23
movzx eax, word [r13]
mov r8, r14
mov word [rbp - 0x16], ax
mov word [rbp - 0x18], ax
mov word [rbp - 0x26], ax
mov word [rbp - 0x28], ax
lea rax, [rcx + 0x10]
add rax, r14
mov qword [rbp - 0x10], rax
lea eax, [rcx + 8]
add eax, r14d
mov dword [rbp - 0x24], eax
mov al, r12b
neg al
lea rax, [0x14000f3c0]
sbb rbx, rbx
and rbx, 0xfffffffffffffff8
add rbx, 0x10
test r12b, r12b
cmovne rdx, rax
call fcn.14000e0c0
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x18]
test r12b, r12b
lea rdx, [rbp - 0x28]
mov r8, rbx
cmove rdx, rax
add rcx, r14
call fcn.14000e0c0
movzx r8d, word [r13]
lea rcx, [rbx + r14]
add rcx, qword [rbp - 0x30]
mov rdx, qword [r13 + 8]
call fcn.14000e0c0
mov rax, qword [rbp - 0x30]
test r12b, r12b
je 0x14000aab6
mov dword [rax + 1], esi
jmp 0x14000aaba
mov qword [rax + 2], rsi
mov rax, qword [rbp - 0x30]
mov qword [r15], rax
lea rcx, [r14 + rax]
mov rax, qword [rbp + 0x50]
mov qword [rax], rcx
mov eax, edi
lea r11, [rsp + 0x60]
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 0x14000cb00
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x14000cb89
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
lea eax, [r8 + 1]
mov r10d, r8d
movzx eax, al
xor r11d, r11d
imul ebp, eax, 0x33
mov edi, edx
mov al, r10b
mov rsi, rcx
shl al, 2
lea ebx, [rax + r8]
mov r9b, r11b
movzx ecx, bpl
inc r11d
xor edx, edx
lea eax, [r9 + 1]
movzx r8d, al
mov eax, r10d
div r11d
imul r8d, ecx
mov al, r9b
add r9b, r9b
add al, r9b
add r8b, dl
add r8b, al
add r8b, bl
xor byte [rsi], r8b
inc rsi
cmp r11d, edi
jb 0x14000cb3a
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x14000ccdc
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r9, rdx
mov rsi, rcx
mov eax, 0x5a4d
xor ebx, ebx
cmp word [rcx], ax
jne 0x14000ce3b
mov eax, dword [rcx + 0x3c]
test eax, eax
je 0x14000ce3b
add rax, rcx
je 0x14000ce3b
cmp dword [rax], 0x4550
jne 0x14000ce3b
movzx ecx, word [rax + 0x18]
mov edx, 0x20b
cmp cx, dx
jne 0x14000cd3b
mov ecx, 0x88
jmp 0x14000cd4e
mov edx, 0x10b
cmp cx, dx
jne 0x14000ce3b
mov ecx, 0x78
mov edx, dword [rcx + rax + 4]
mov dword [rsp + 0x80], edx
mov edx, dword [rcx + rax]
test edx, edx
je 0x14000ce3b
mov edi, edx
add rdi, rsi
je 0x14000ce3b
mov eax, dword [rdi + 0x20]
test eax, eax
mov r15, rbx
je 0x14000cd7d
lea r15, [rsi + rax]
mov eax, dword [rdi + 0x1c]
test eax, eax
mov r12, rbx
je 0x14000cd8b
lea r12, [rsi + rax]
mov eax, dword [rdi + 0x24]
test eax, eax
mov r13, rbx
je 0x14000cd99
lea r13, [rsi + rax]
test r15, r15
je 0x14000ce3b
test r12, r12
je 0x14000ce3b
test r13, r13
je 0x14000ce3b
mov r14d, ebx
mov dword [rsp + 0x20], ebx
cmp r14d, dword [rdi + 0x18]
jae 0x14000ce3b
mov eax, r14d
mov qword [rsp + 0x88], rax
mov ecx, dword [r15 + rax*4]
test ecx, ecx
je 0x14000ce31
mov edx, ecx
add rdx, rsi
je 0x14000ce31
mov r8d, 0x100
mov rcx, r9
call sub.ntoskrnl.exe_strncmp
test eax, eax
jne 0x14000ce2c
mov rax, qword [rsp + 0x88]
movzx ecx, word [r13 + rax*2]
cmp ecx, dword [rdi + 0x14]
jae 0x14000ce3b
movzx eax, cx
mov ecx, dword [r12 + rax*4]
test ecx, ecx
jne 0x14000ce10
mov rcx, rbx
jmp 0x14000ce13
add rcx, rsi
cmp rcx, rdi
jb 0x14000ce27
mov eax, dword [rsp + 0x80]
add rax, rdi
cmp rcx, rax
jbe 0x14000ce3b
mov rbx, rcx
jmp 0x14000ce3b
mov r9, qword [rsp + 0x78]
inc r14d
mov dword [rsp + 0x20], r14d
jmp 0x14000cdbb
mov rax, rbx
jmp 0x14000ce42
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400070f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000713a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000713a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000713a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000713a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000713a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000713c
xor al, al
add rsp, 0x28
ret
Function at 0x180001120
Capabilities:
Allocate or change rwx memory
Enumerate processes via ntquerysysteminformation
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18135e6d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea r9, [rsp + 0x30]
mov rsi, rdx
mov dword [rsp + 0x30], ebx
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea ecx, [rbx + 5]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1800011ca
mov eax, dword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, [rbx - 1]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
cmovns rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1800011ca
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbx
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x1800011f0
mov rcx, rbx
call fcn.1800010d0
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800055f0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdx, rsi
mov rcx, rbx
call rdi
test al, al
je 0x180001206
mov eax, dword [rbx]
add rbx, rax
cmp dword [rbx], 0
jne 0x1800011f0
mov rcx, rbx
call fcn.1800010d0
mov al, 1
jmp 0x1800011cc
Function at 0x180001a40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18135e6d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
test rcx, rcx
je 0x180001bc1
mov eax, dword [rcx - 8]
lea rbx, [rcx - 0x20]
mov qword [rbp - 0x50], rax
lea r8, [rbp - 0x50]
mov rax, qword [rbx + 0x10]
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], rax
mov r9d, 0x40
lea rax, [rbp - 0x28]
mov dword [rbp - 0x28], 0
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
js 0x180001bc1
call fcn.180001330
mov r8, qword [rbx + 0x10]
xor eax, eax
cmp dword [rbx + 0x1c], eax
jbe 0x180001ae0
nop word [rax + rax]
movzx ecx, byte [rax + rbx + 0x40]
mov byte [rax + r8], cl
inc eax
cmp eax, dword [rbx + 0x1c]
jb 0x180001ad0
mov eax, dword [rbx + 0x18]
lea r8, [rbp - 0x20]
mov r9d, dword [rbp - 0x28]
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x20], rax
mov rcx, 0xffffffffffffffff
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov rax, qword gs:[0x30]
lea rdx, [rbp - 0x48]
mov ecx, dword [rax + 0x40]
mov dword [rbp - 0x48], ecx
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov rax, qword [rbx + 0x10]
mov qword [rbp - 0x38], rax
mov eax, dword [rbx + 0x18]
mov dword [rbp - 0x44], ecx
lea rcx, [0x180001570]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x40], rdi
call fcn.180001120
xor edx, edx
xor r8d, r8d
lea rcx, [rdx - 1]
call qword [sym.imp.ntdll.dll_NtFlushInstructionCache]
mov rax, qword gs:[0x30]
lea rcx, [0x180001220]
mov edx, dword [rax + 0x40]
mov dword [rbp - 0x18], edx
mov rax, qword gs:[0x30]
mov edx, dword [rax + 0x48]
mov dword [rbp - 0x14], edx
lea rdx, [rbp - 0x18]
mov dword [rbp - 0x10], 1
call fcn.180001120
mov r9d, 0x8000
mov qword [rbp - 0x50], rbx
lea r8, [rbp - 0x20]
mov qword [rbp - 0x20], 0
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov al, 1
jmp 0x180001bc3
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800055f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180004610
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
sub edx, 1
je 0x180004635
cmp edx, 5
jne 0x180004666
test r8, r8
je 0x180004666
mov rax, qword [0x18135e820]
mov qword [r8], rax
lea eax, [rdx - 4]
add rsp, 0x38
ret
mov qword [0x18135e820], rcx
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea r8, [0x180002c40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180004b00
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov rbx, qword [rdx + 0x10]
test rbx, rbx
je 0x180004b9b
cmp qword [rbx + 0x30], 0
je 0x180004b9b
movzx r8d, word [rbx + 0x58]
dec r8
cmp r8, 0xffffffffffffffff
je 0x180004b53
mov rax, qword [rbx + 0x60]
lea rcx, [rax + r8*2]
cmp word [rcx], 0x2e
je 0x180004b76
dec r8
sub rcx, 2
cmp r8, 0xffffffffffffffff
jne 0x180004b40
mov rax, qword [rbx + 0x60]
mov rdx, rdi
sub rdx, rax
nop dword [rax]
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x180004b8a
add rax, 2
test cx, cx
jne 0x180004b60
xor eax, eax
jmp 0x180004b8f
cmp r8, 0xffffffffffffffff
je 0x180004b57
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
jmp 0x180004b8f
sbb eax, eax
or eax, 1
test eax, eax
je 0x180004ba8
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180004b23
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x30]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180004bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
movsxd r8, dword [rcx + 0x3c]
lea rax, [rsp]
add r8, rcx
lea rax, [rax + 0x80]
mov r11, rcx
mov rbp, rdx
movups xmm0, xmmword [r8 + 0x18]
movups xmm1, xmmword [r8 + 0x28]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [r8 + 0x38]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [r8 + 0x48]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [r8 + 0x58]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [r8 + 0x68]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [r8 + 0x78]
movups xmmword [rax - 0x30], xmm1
movups xmmword [rax - 0x20], xmm0
movups xmm0, xmmword [r8 + 0x88]
add r8, 0x98
movups xmmword [rax - 0x10], xmm0
movups xmm1, xmmword [r8]
movups xmm0, xmmword [r8 + 0x10]
movups xmmword [rax], xmm1
movups xmm1, xmmword [r8 + 0x20]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [r8 + 0x30]
movups xmmword [rax + 0x20], xmm1
movups xmm1, xmmword [r8 + 0x40]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [r8 + 0x50]
movups xmmword [rax + 0x40], xmm1
movups xmm1, xmmword [r8 + 0x60]
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm1
mov rcx, qword [rsp + 0x70]
mov rax, rcx
shr rax, 0x20
test eax, eax
je 0x180004ce3
mov eax, ecx
xor r10d, r10d
mov ecx, dword [rax + r11 + 0x20]
mov edi, dword [rax + r11 + 0x14]
mov ebx, dword [rax + r11 + 0x1c]
lea r9, [rcx + r11]
test rdi, rdi
je 0x180004ce3
sub rbx, rcx
nop
mov r8d, dword [r9]
mov rax, rbp
mov esi, dword [r9 + rbx]
add r8, r11
sub r8, rbp
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180004cd3
inc rax
test ecx, ecx
jne 0x180004cc0
test edx, edx
je 0x180004cfe
inc r10
add r9, 4
cmp r10, rdi
jb 0x180004cb0
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rax, [r11 + rsi]
jmp 0x180004ce5
Function at 0x140001b18
Capabilities:
Parse pe header

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

Function at 0x140478189
Capabilities:
Encode data using xor

Disassembly:
pop r10
mov qword [rsp + rax*2 - 0x3716ad42], 0xffffffff9d32cfb5
lea rax, [0x14047a540]
lea rsp, [rsp + 8]
mov r10d, 0xfd17e02e
sal r10d, 0x5d
xor r10d, 0x1c24780e
movzx r10d, byte [rdi]
xor r10d, esi
push 0xffffffff91ad1a0f
and r10d, 0xff
shl byte [rsp + 5], 0x81
mov r10d, dword [rax + r10*4]
neg byte [rsp]
ror qword [rsp], 0xc5
shr esi, 8
xor esi, r10d
inc rdi
dec dword [rsp]
xor esi, 0x3e197e11
push 0xffffffffed081400
dec rcx
push 0xfffffffff2a16123
lea rsp, [rsp + 0x18]
jne 0x1404781a1
mov r10d, 0xe006f289
jmp 0x14045419d