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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x180185594], edi
je 0x1800df8b9
cmp rbx, 0x20
jae 0x1800df8a2
xor ecx, ecx
jmp 0x1800df8a4
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180185594], edi
jne 0x1800df898
cmp qword [0x1801855b8], r14
mov qword [rsp + 0x60], r13
je 0x1800dfa5b
mov ecx, dword [0x18018689c]
mov ebx, r15d
test ecx, ecx
je 0x1800df8f1
mov rdx, qword [0x180186890]
mov rax, rdx
cmp qword [rax], r14
je 0x1800df8fc
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800df8e2
mov r14d, 4
jmp 0x1800dfa61
cmp ebx, 0xffffffff
je 0x1800df8f1
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800df9c0
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800df1f0
mov r14d, eax
test eax, eax
jne 0x1800dfa61
xor edx, edx
mov ecx, ebx
call fcn.1800df2d0
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800df9b0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800df99c
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop dword [rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800df988
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x1800df960
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801855b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x1800dfa61
mov rdx, qword [0x180186890]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.1800de630
mov edx, dword [0x18018689c]
dec edx
cmp ebx, edx
jae 0x1800dfa0f
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x180186890]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x180186898]
mov eax, ecx
mov dword [0x18018689c], edx
shr eax, 1
cmp eax, 0x20
jb 0x1800dfa61
cmp eax, edx
jb 0x1800dfa61
mov r8, qword [0x180186890]
mov eax, ecx
mov rcx, qword [0x1801855b8]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x1800dfa61
shr dword [0x180186898], 1
mov qword [0x180186890], rax
jmp 0x1800dfa61
mov r14d, 2
xchg dword [0x180185594], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800dfa80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180185594], ebp
je 0x1800dfad7
cmp rbx, 0x20
jae 0x1800dfac0
xor ecx, ecx
jmp 0x1800dfac2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180185594], ebp
jne 0x1800dfab6
cmp qword [0x1801855b8], r15
je 0x1800dfbd1
test rdi, rdi
jne 0x1800dfaf7
mov ecx, esi
call fcn.1800df400
mov edi, eax
jmp 0x1800dfbd6
mov ecx, dword [0x18018689c]
mov ebx, r15d
test ecx, ecx
je 0x1800dfb1f
mov rdx, qword [0x180186890]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x1800dfb29
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800dfb10
mov edi, 4
jmp 0x1800dfbd6
cmp ebx, 0xffffffff
je 0x1800dfb1f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800dfbc8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800df1f0
mov edi, eax
test eax, eax
jne 0x1800dfbd6
mov edx, esi
mov ecx, ebx
call fcn.1800df2d0
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x1800dfbd6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800dfbb2
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800dfba8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800dfb80
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801855b8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800dfbd6
neg esi
sbb edi, edi
add edi, 6
jmp 0x1800dfbd6
mov edi, 2
xchg dword [0x180185594], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x1800e00b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
xor r13d, r13d
mov rbp, rdx
mov r14, rcx
cmp word [rdx], ax
jne 0x1800e0141
movsxd rsi, dword [rdx + 0x3c]
add rsi, rdx
cmp dword [rsi], 0x4550
jne 0x1800e0141
mov r15, qword [r8 + 8]
mov eax, 8
movzx ebx, word [rsi + 0x14]
cmp r15, rax
mov edi, r13d
cmova r15, rax
add rbx, 0x18
add rbx, rsi
cmp r13w, word [rsi + 6]
jae 0x1800e0141
mov r12, qword [r8]
nop word [rax + rax]
mov r8, r15
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1800e0168
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jl 0x1800e0120
mov qword [r14], r13
mov qword [r14 + 8], r13
mov rbx, qword [rsp + 0x50]
mov rax, r14
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [rbx + 0xc]
add rax, rbp
mov qword [r14], rax
mov eax, dword [rbx + 8]
mov qword [r14 + 8], rax
jmp 0x1800e0148

Function at 0x1800e19c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800e19fe
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800e1a03
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800e1a4c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x1800e1a4c
dec r8
sub rdx, 1
jne 0x1800e1a32
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140083210
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140087ed0
sub rsp, rax
mov rax, qword [0x1400c8540]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x1400832d2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140096db4
cmp rax, 1
jne 0x14008332e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1400832af
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1400832a3
cmp rcx, 1
jb 0x14008332e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140083270
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140083303
lea rcx, [rsp + 0x80]
call fcn.1400999e8
jmp 0x140083305
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140087c00
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14008b390
int3
Function at 0x140087720
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1400c8540]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1400877d1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140096db4
cmp rax, 1
jne 0x140087807
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1400877ad
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1400877a0
cmp rcx, 1
jb 0x140087807
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140087770
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140087c00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14008b390
int3

Function at 0x140087a80
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400c8540]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x140087b2f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140096db4
cmp rax, 1
jne 0x140087b65
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140087b0c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140087b00
cmp rcx, 1
jb 0x140087b65
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140087ad0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140087c00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14008b390
int3

Function at 0x140088634
Capabilities:
Parse pe header

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

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

Function at 0x14008cc08
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14008ca73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008ca73
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008ca73
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008ca73
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008ca73
cmp dword [rcx + 0x84], 0xe
jbe 0x14008ca73
cmp dword [rcx + 0xf8], 0
je 0x14008ca73
mov ecx, ebx
call fcn.14008cb24
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14008c900
nop
cmp dword [rbp + 0x20], 0
je 0x14008cac1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14008cacc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14008ca04
Function at 0x14009e940
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14009e9c7
mov rsi, rbx
cmp word [rax], bp
je 0x14009e986
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009e970
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009e96c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140099ec0
mov rdi, rax
test rax, rax
je 0x14009e9b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a4cc0
mov rbp, rdi
xor ecx, ecx
call fcn.14009aa08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a10cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a10e2
mov al, 1
jmp 0x1400a1142
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a10f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a1140
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009f0e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a1140
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a1140
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a1140
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a1142
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400a4aa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a4ac8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a4ac8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x16800
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0xe8
lea rdx, str.DevicePhysicalMemory
lea rcx, [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0xd0]
mov qword [rsp + 0xa0], r11
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x200
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
lea r8, [rsp + 0x90]
mov edx, 7
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ntoskrnl.exe_ZwOpenSection]
mov dword [rsp + 0xc8], eax
mov qword [rsp + 0x58], 0
mov eax, dword [rsp + 0xf8]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 0
cmp dword [rsp + 0xc8], 0
jl 0x169d0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 7
mov rcx, qword [rsp + 0x108]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0
jl 0x169a5
mov ecx, dword [rsp + 0xf8]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x108]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov dword [rsp + 0xc8], eax
mov rcx, qword [rsp + 0x108]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r11, qword [rsp + 0x100]
mov rax, qword [rsp + 0x58]
mov qword [r11], rax
mov eax, dword [rsp + 0xc8]
jmp 0x169e6
mov rcx, qword [rsp + 0x108]
mov rcx, qword [rcx]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov r11, qword [rsp + 0x100]
mov qword [r11], 0
mov eax, dword [rsp + 0xc8]
jmp 0x169e6
mov rax, qword [rsp + 0x100]
mov qword [rax], 0
mov eax, dword [rsp + 0xc8]
add rsp, 0xe8
ret
Function at 0x170a0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
lea rdx, str.DeviceATSZIO
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdi, [rsp + 0x88]
lea rsi, [rsp + 0x58]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x8807
lea r8, [rsp + 0x88]
mov edx, 0x38
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jge 0x17120
mov eax, dword [rsp + 0x78]
jmp 0x17234
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x30]
or ecx, 4
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x40]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x80]
lea rsi, [rsp + 0x58]
add rdi, 8
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x30], 0
lea rdx, str.BaseNamedObjectsWaitForIoAccess
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [rsp + 0x80]
add rdx, 0x30
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_IoCreateSynchronizationEvent]
mov rdx, rax
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x28], rdx
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x28], 0
jne 0x171dc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [rsp + 0x78], 0xc0000001
mov eax, dword [rsp + 0x78]
jmp 0x17234
lea rdx, str.__ATSZIO
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdi, qword [rsp + 0x80]
lea rsi, [rsp + 0x68]
add rdi, 0x18
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jge 0x17232
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x78]
jmp 0x17234
xor eax, eax
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x140001020
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor r8d, r8d
mov edi, 1
mov edx, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
lea r8d, [rdi + 3]
lea rdx, [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jne 0x140001082
mov edx, dword [rsp + 0x28]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
xor edi, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400010c0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001988
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x100cc73ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100cc73bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100cc73a5
lea eax, [rcx + 1]
jmp 0x100cc73cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100cc73de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100cc73c4
sub eax, 3
jb 0x100cc73fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100cc744d
sar eax, 1
movsxd rbp, eax
jb 0x100cc7434
jmp 0x100cc740c
add ebx, ebx
jne 0x100cc740a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100cc7434
inc ecx
add ebx, ebx
jne 0x100cc741a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100cc7434
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100cc742d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100cc741c
add ecx, 2
jmp 0x100cc7439
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100cc7362
jmp 0x100cc73ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x499030
mov dl, 0x6a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x100cc7499
cmp rsi, rcx
jae 0x100cc74a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x100cc7480
cmp al, 0x8f
ja 0x100cc7480
cmp byte [rsi - 2], 0xf
je 0x100cc7486
sub al, 0xe8
cmp al, 1
ja 0x100cc746a
cmp rsi, rcx
jae 0x100cc74a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x100cc7470
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x100cc74a1
lodsb al, byte [rsi]
jmp 0x100cc7480
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xcc3000]
mov eax, dword [rdi]
or eax, eax
je 0x100cc74fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xccb758]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100cc74ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100cc74f8
mov qword [rbx], rax
add rbx, 8
jmp 0x100cc74ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100cc7581], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100cc7581
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100cc7571
sub rsp, 0xffffffffffffff80
jmp 0x1000032a0