joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009731c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x140097380
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x14009736e
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x140097367
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x14009733b
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1400d5bd8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140097390
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x1400d5c40]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x1400973c9
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400973fc
mov eax, 0xa
jmp 0x140097449
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x140097418
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140097878
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x14009788f
cmp r8b, 0x90
je 0x14009788f
cmp r8b, 0xcc
jne 0x1400978b1
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1400978ad
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1400978b1
add edx, r10d
cmp edx, r9d
jb 0x14009789d
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x140097c18
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x140097c62
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1400d5c30]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x140097c9b
cmp rbx, r14
jb 0x140097c98
cmp rbx, r12
jae 0x140097c98
cmp qword [rbx + 8], rsi
jne 0x140097dfd
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140097c84
mov r15, rdi
cmp rdi, r14
jb 0x140097db7
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x140097ce7
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140097d21
cmp dword [rbp - 0x10], 0x10000
je 0x140097cf1
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x140097d21
sub r15, r13
cmp r15, r14
jae 0x140097cbd
jmp 0x140097d21
test r15, r15
je 0x140097d21
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140097dc2
cmp r15, r14
jae 0x140097cac
test rbx, rbx
jmp 0x140097db5
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x140097dfd
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140097dfd
cmp dword [rbp - 0x10], 0x10000
je 0x140097d90
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x140097d4d
jmp 0x140097dfd
test rdi, rdi
je 0x140097dfd
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140097dc2
cmp rdi, r12
jbe 0x140097d29
jmp 0x140097dfd
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x140097dce
mov rax, qword [0x1400d5c30]
mov qword [rbx], rax
mov qword [0x1400d5c30], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
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 0x14009915c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14003fda0], eax
call fcn.14002b940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003fda0], 0
jne case.default.0x14002b20e
mov ecx, 1
call fcn.14002b940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
jg 0x14006fad9
push 0x7c
lodsd eax, dword [rsi]
xor ebx, dword [rbp - 0x5c17add6]
cmp esp, dword [rax]
pop rbp
sub edx, dword [rbp - 0x63e806ce]
in al, 0xfc
jl 0x14006fb0e
jl 0x14006fb0e
or dword [rsi - 0x33158102], 0x1785b4e4
mov ah, 0x8c
invalid
mov edx, 0xd36329d5
adc eax, esp
movsd dword [rdi], dword [rsi]
cwde
sub al, 0x2a
adc eax, 0xe0ac0b39
jae 0x14006fb0d
push rbp
sub dword [rcx], ecx
mov edx, esp
cli
or ch, byte [rbx + 0x3e]
jbe 0x14006fb06
adc al, 0x54
scasb al, byte [rdi]
xchg ebx, eax
adc dword [rax], ebx
out dx, eax
dec dh
mov edx, 0x9b04c382
invalid
Function at 0x14000d730
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp dword [0x140036074], 0
je 0x14000d830
cmp dword [0x140036070], 0
je 0x14000d78d
mov dword [0x14003612c], ecx
mov ecx, 0xaede7345
mov dword [0x140036130], edx
call fcn.14000dce0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000e460
add rsp, 0xd8
ret
xorps xmm0, xmm0
mov dword [rsp + 0x20], edx
xor eax, eax
lea r8, str.km.move__d___d__r
mov r9d, ecx
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
lea edx, [rax + 0x78]
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call fcn.14000d6d0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000d7f0
mov rcx, qword [0x140036068]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000e460
add rsp, 0xd8
ret
mov qword [rsp + 0xf0], rbx
mov rbx, qword [0x140035d20]
mov qword [rsp + 0xd0], rdi
test rbx, rbx
je 0x14000d883
mov rdi, qword [0x140035dc0]
movd xmm0, edx
movd xmm1, ecx
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x34], xmm0
movss dword [rsp + 0x30], xmm1
call fcn.14000d470
test eax, eax
je 0x14000d8ed
lea r9, [rsp + 0x30]
mov edx, ebx
lea r8, [rdi - 4]
jmp 0x14000d8d8
mov rbx, qword [0x140035d38]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
test rbx, rbx
je 0x14000d8b3
mov edi, dword [0x140035edc]
add edi, dword [0x140035e7c]
call fcn.14000d470
test eax, eax
je 0x14000d8ed
mov r8d, edi
mov edx, ebx
jmp 0x14000d8d3
mov rbx, qword [0x140035fc0]
mov rdi, qword [0x140035d40]
call fcn.14000d470
test eax, eax
je 0x14000d8ed
lea r8, [rbx + 0x1eb0]
mov edx, edi
lea r9, [rsp + 0x30]
mov rcx, qword [0x140036060]
mov dword [rsp + 0x20], 8
call qword [sym.imp.VMM.dll_VMMDLL_MemWrite]
mov rbx, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000e460
add rsp, 0xd8
ret
Function at 0x14000dbc0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xc8
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x140036070], 0
je 0x14000dc38
test ecx, ecx
je 0x14000dc0f
or dword [0x140036128], 1
mov ecx, 0x9823ae8d
call fcn.14000dce0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000e460
add rsp, 0xc8
ret
and dword [0x140036128], 0xfffffffe
mov ecx, 0x9823ae8d
call fcn.14000dce0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000e460
add rsp, 0xc8
ret
xorps xmm0, xmm0
lea r8, str.km.left__d__r
xor eax, eax
mov r9d, ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0xa0], rax
movups xmmword [rsp + 0x30], xmm0
lea edx, [rax + 0x78]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
call fcn.14000d6d0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000dc91
mov rcx, qword [0x140036068]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000e460
add rsp, 0xc8
ret

Function at 0x14000dce0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0x48], rax
inc dword [0x1400360e8]
mov dword [0x1400360ec], ecx
call fcn.1400159f8
movups xmm0, xmmword [0x140036128]
mov rcx, qword [0x140036078]
xor r9d, r9d
movups xmm1, xmmword [0x140036138]
lea rdx, [0x1400360e0]
mov dword [0x1400360e4], eax
movaps xmmword [0x1400360f0], xmm0
lea rax, [0x140036080]
movups xmm0, xmmword [0x140036148]
lea r8d, [r9 + 0x48]
mov dword [rsp + 0x28], socket
movaps xmmword [0x140036100], xmm1
movsd xmm1, qword [0x140036158]
movaps xmmword [0x140036110], xmm0
movsd qword [0x140036120], xmm1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140036078]
lea rdx, [0x140036090]
xor eax, eax
mov dword [rsp + 0x30], socket
mov qword [0x14003612c], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, 0x400
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000e460
add rsp, 0x58
ret
Function at 0x14000ef24
Capabilities:
Parse pe header

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

Function at 0x140016f58
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016d54
Function at 0x14001c6e0
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 0x14001c710
xor eax, eax
jmp 0x14001c7d3
mov rbp, rbx
cmp word [rax], si
je 0x14001c735
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001c71c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001c718
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.14001c600
movsxd r14, eax
test eax, eax
jne 0x14001c773
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001c709
mov rcx, r14
call fcn.140018a2c
mov rdi, rax
test rax, rax
jne 0x14001c78c
xor ecx, ecx
call fcn.140017db4
jmp 0x14001c768
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.14001c600
test eax, eax
jne 0x14001c7bd
mov rcx, rdi
call fcn.140017db4
jmp 0x14001c7c7
xor ecx, ecx
call fcn.140017db4
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 0x140020afc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140020b12
mov al, 1
jmp 0x140020b72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140020b23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140020b70
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d000
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140020b70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140020b70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140020b70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140020b72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400217f4
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.140015a3c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002187e
cmp byte [rbp - 0x21], r15b
je 0x140021879
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400218b4
call fcn.140018004
test eax, eax
jne 0x1400218a0
cmp byte [rbp - 0x21], r15b
je 0x140021898
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400218b4
cmp byte [rbp - 0x21], r15b
je 0x1400218b1
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.14001ad4c
test eax, eax
jne 0x140021954
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015a3c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400218f3
cmp byte [rbp - 0x21], r15b
je 0x140021928
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021928
call fcn.140018004
test eax, eax
jne 0x140021914
cmp byte [rbp - 0x21], r15b
je 0x14002190d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140021928
cmp byte [rbp - 0x21], r15b
je 0x140021925
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.14001ad4c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140021954
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140021957
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140021965
mov rcx, rdi
call fcn.140017db4
cmp byte [rbp + 0x3f], r15b
je 0x140021974
mov rcx, qword [rbp + 0x27]
call fcn.140017db4
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 0x140023f80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023fa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140023fa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400110b9
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
jmp 0x1400118c0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x148]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x1400250a6]
call fcn.1400113f2
mov qword [rbp + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 8]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r8d, 1
lea rdx, str.SeDebugPrivilege
mov rcx, qword [rbp + 8]
call fcn.1400112b2
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x120], 0
je 0x140011966
cmp dword [rbp + 0x24], 0
jne 0x140011966
lea rcx, str.SetPrivilege_failed_to_enable_SeDebugPrivilege._Run_it_as_an_Administrator._Exiting..._n
call fcn.1400111c2
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001be10]
call fcn.140011366
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011230
Capabilities:
Terminate process

Disassembly:
jmp 0x140013f70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112c6
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400152f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015310
xor al, al
jmp 0x140015391
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015323
xor al, al
jmp 0x140015391
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001534d
xor al, al
jmp 0x140015391
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015361
xor al, al
jmp 0x140015391
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015373
xor al, al
jmp 0x140015391
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001538f
xor al, al
jmp 0x140015391
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113e3
Capabilities:
Terminate process

Disassembly:
jmp 0x140011ab0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1f8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x1400250a6]
call fcn.1400113f2
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0x10000
mov eax, 0xa
mov word [rbp + 0x88], ax
mov eax, 0xc
mov word [rbp + 0x8a], ax
lea rax, str.Token
mov qword [rbp + 0x90], rax
lea rdx, [rbp + 0x64]
lea rcx, [rbp + 0x88]
call fcn.14001127b
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140011b69
mov edx, dword [rbp + 0x44]
lea rcx, str.GetTypeIndexByName_failed_0x_08x_n
call fcn.1400111c2
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xb8], rax
mov eax, dword [rbp + 0x24]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, 0x10
call qword [rbp + 0xb8]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x140011bdb
mov eax, dword [rbp + 0x24]
shl eax, 1
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov edx, eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_realloc]
mov qword [rbp + 8], rax
jmp 0x140011b9c
mov dword [rbp + 0xd4], 0
jmp 0x140011bf5
mov eax, dword [rbp + 0xd4]
inc eax
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 8]
mov eax, dword [rax]
cmp dword [rbp + 0xd4], eax
jae 0x140011c76
mov eax, dword [rbp + 0xd4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 8]
movzx eax, byte [rcx + rax + 0xc]
cmp eax, dword [rbp + 0x64]
jne 0x140011c71
mov eax, dword [rbp + 0xd4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax + 8]
cmp eax, dword [rbp + 0x1d0]
jne 0x140011c71
mov eax, dword [rbp + 0xd4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 8]
movzx eax, word [rcx + rax + 0xe]
mov rcx, qword [rbp + 0x1e0]
mov ecx, dword [rcx]
mov rdx, qword [rbp + 0x1d8]
mov qword [rdx + rcx*8], rax
mov rax, qword [rbp + 0x1e0]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x1e0]
mov dword [rcx], eax
jmp 0x140011be7
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_free]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001c100]
call fcn.140011366
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.1400111e0
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret