joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045288
Capabilities:
Hook routines via microsoft detours

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, 0x20
mov rdx, qword [0x140069ef8]
lea rax, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
mov ebp, 0x10000
mov rsi, 0xfffffffffff80000
mov rbx, rcx
cmova rbp, rax
cmp rcx, 0xffffffff80000000
lea rax, [rcx + 0x7ff80000]
cmovb rsi, rax
mov rax, qword [0x140069ef0]
xor edi, edi
test rdx, rdx
jne 0x1400452f8
test rax, rax
je 0x14004530e
mov rdx, rax
mov qword [0x140069ef8], rax
cmp qword [rdx + 0x10], rdi
je 0x14004530e
cmp qword [rdx + 0x10], rbp
jb 0x14004530e
cmp qword [rdx + 0x10], rsi
jbe 0x140045449
mov qword [0x140069ef8], rax
mov rdx, rax
test rax, rax
je 0x140045348
test rax, rax
je 0x140045338
cmp qword [rdx + 0x10], rdi
je 0x140045338
cmp qword [rdx + 0x10], rbp
jb 0x140045338
cmp qword [rdx + 0x10], rsi
jbe 0x140045449
mov rdx, qword [rdx + 8]
mov qword [0x140069ef8], rdx
test rdx, rdx
jne 0x140045322
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x140045372
lea rdx, [rbx - 0x40000000]
mov rcx, rbp
call fcn.1400450d0
mov rdx, rax
test rax, rax
jne 0x1400453fa
movabs r14, 0xffffffff40000000
cmp rbx, r14
jae 0x140045398
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.1400451b0
mov rdx, rax
test rax, rax
jne 0x1400453fa
cmp rbx, 0x40000000
jbe 0x1400453b8
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.1400451b0
mov rdx, rax
test rax, rax
jne 0x1400453fa
cmp rbx, r14
jae 0x1400453d4
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.1400450d0
mov rdx, rax
test rax, rax
jne 0x1400453fa
mov rdx, rbx
mov rcx, rbp
call fcn.1400450d0
mov rdx, rax
test rax, rax
jne 0x1400453fa
mov rdx, rsi
mov rcx, rbx
call fcn.1400451b0
mov rdx, rax
test rax, rax
je 0x140045475
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
mov qword [rdx + 0x10], rdi
mov r8d, 0x2a7
mov rax, qword [0x140069ef0]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x140069ef0], rdx
mov qword [0x140069ef8], rdx
mov qword [rcx], rdi
mov rdi, rax
sub rax, 0x60
lea rcx, [rcx - 0x60]
sub r8, 1
jne 0x140045431
mov qword [rdx + 0x10], rdi
mov rbx, qword [rdx + 0x10]
cmp rbx, rbp
jb 0x140045475
cmp rbx, rsi
ja 0x140045475
mov rcx, qword [rbx + 0x48]
mov qword [rdx + 0x10], rcx
mov edx, 0xcc
mov rcx, rbx
lea r8d, [rdx - 0x6c]
call fcn.1400261f0
mov rax, rbx
jmp 0x140045477
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14004567c
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x1400456aa
xor al, al
jmp 0x1400456e8
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1400456bb
xor al, al
jmp 0x1400456e8
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1400456e2
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1400456e2
mov al, 1
jmp 0x1400456e8
xor al, al
jmp 0x1400456e8
add rsp, 0x50
pop rbx
ret
Function at 0x140045bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140069f08], eax
je 0x140045c02
mov eax, 0x10dd
jmp 0x140045d13
mov eax, dword [0x140069f0c]
test eax, eax
jne 0x140045d13
test rbp, rbp
jne 0x140045c1d
lea eax, [rbp + 0x57]
jmp 0x140045d13
test rsi, rsi
jne 0x140045c2a
lea eax, [rsi + 6]
jmp 0x140045d13
cmp qword [rsi], 0
jne 0x140045c40
mov eax, 6
mov dword [0x140069f0c], eax
jmp 0x140045d0c
mov ecx, 0x30
call fcn.1400246c8
mov rbx, rax
test rax, rax
jne 0x140045c5a
lea edi, [rax + 8]
jmp 0x140045cf2
mov rcx, qword [rsi]
xor edx, edx
call fcn.14004574c
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.14004574c
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x140045ce4
mov edx, ecx
cmp rcx, 0x1e
ja 0x140045ce4
cmp qword [rdi + 0x50], rax
jne 0x140045ce4
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140045cb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140045cf2
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [0x140069f20]
mov qword [rbx], rax
xor eax, eax
mov qword [0x140069f20], rbx
jmp 0x140045d13
cmp dword [0x140069f00], 0
mov edi, 9
jne 0x140045cfd
mov dword [0x140069f0c], edi
test rbx, rbx
je 0x140045d0a
mov edx, 0x30
mov rcx, rbx
call fcn.1400246c0
mov eax, edi
mov qword [0x140069f10], rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140045d28
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x140069f08], eax
je 0x140045d4f
mov eax, 0x10dd
jmp 0x140045e12
mov rdi, qword [0x140069f20]
test rdi, rdi
je 0x140045dc6
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x3e]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [rdi + 8], 0
jne 0x140045dae
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x140045dae
xor edx, edx
mov rbx, rsi
mov rcx, rsi
and rbx, 0xffffffffffff0000
lea r8d, [rdx + 0x60]
call fcn.1400261f0
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
and qword [rdi + 0x20], 0
mov rbx, qword [rdi]
mov edx, 0x30
mov rcx, rdi
call fcn.1400246c0
mov rdi, rbx
test rbx, rbx
jne 0x140045d5b
and qword [0x140069f20], 0
call fcn.1400456f0
mov rdi, qword [0x140069f18]
test rdi, rdi
je 0x140045e01
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rdi
call fcn.1400246c0
mov rdi, rbx
test rbx, rbx
jne 0x140045ddf
and qword [0x140069f18], 0
and dword [0x140069f08], 0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140045e24
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x140069f08], ebx
jne 0x140045ea4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x140069f08], ecx
jne 0x140045ea4
mov rdi, qword [0x140069ef0]
mov qword [0x140069f20], rbx
mov qword [0x140069f18], rbx
mov qword [0x140069f10], rbx
jmp 0x140045e8b
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140045e92
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140045e6a
jmp 0x140045e9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x140069f0c], ebx
mov eax, ebx
jmp 0x140045ea9
mov eax, 0x10dd
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140046294
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x140069f0c]
mov rdi, rcx
test eax, eax
jne 0x140046313
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x1400462ba
xor eax, eax
jmp 0x140046313
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400246c8
mov rbx, rax
test rax, rax
je 0x140046300
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1400462e9
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.1400246c0
jmp 0x1400462b6
mov rax, qword [0x140069f18]
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [0x140069f18], rbx
jmp 0x1400462b6
and qword [0x140069f10], 0
mov eax, 8
mov dword [0x140069f0c], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001330
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
mov ecx, 0x1014
call fcn.14001f308
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001367
xor eax, eax
jmp 0x14000142a
mov dword [rsp + 0x24], 0
jmp 0x14000137b
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100e
jge 0x1400013e4
mov byte [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov edx, 1
mov rcx, rax
call fcn.140001300
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
cmp eax, 0xc3
je 0x1400013c3
movzx eax, byte [rsp + 0x20]
cmp eax, 0xcc
jne 0x1400013c5
jmp 0x1400013e4
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp + 0x20]
mov byte [rcx + rax + 4], dl
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x140001371
mov dword [rsp + 0x24], 0
jmp 0x1400013f8
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 7
jge 0x14000141a
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax + 4], 0xcc
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x1400013ee
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x140003340
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400032f0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140005840
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x30], eax
xor eax, eax
cmp eax, 1
je 0x1400058d2
mov rcx, qword [rsp + 0x80]
call fcn.1400075a0
mov dword [0x14017f7fc], eax
cmp dword [0x14017f7fc], 0
je 0x1400058aa
jmp 0x1400058d2
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x30]
cmp eax, 0x989680
jbe 0x1400058d0
mov dword [rsp + 0x34], 1
jmp 0x1400058d2
jmp 0x140005885
cmp dword [rsp + 0x34], 0
je 0x1400058f4
mov dword [rsp + 0x3c], 2
mov rcx, qword [rsp + 0x88]
call fcn.140003d00
mov eax, dword [rsp + 0x3c]
jmp 0x140005966
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x88]
call fcn.140006000
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x88]
call fcn.140005530
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140004f00
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x88]
call fcn.140003d00
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x1400061c0
Capabilities:
Hide graphical window
Set console window title

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xd8
mov edx, 0xc
lea rcx, [rsp + 0x90]
call fcn.140007660
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400052b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [rsp + 0x90]
call fcn.140003c90
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x48], rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_ShowWindow]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x12c
mov r9d, 0x258
mov r8d, dword [rsp + 0x64]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_MoveWindow]
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0xe8]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x88], rax
lea rcx, [0x1400396a8]
call fcn.14001f7a8
call fcn.1400078f0
lea rcx, [0x1400396ac]
call fcn.14001f7a8
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.DeadByDaylight_EGS_Shipping.exe
lea rcx, [0x14017f898]
call fcn.140003ed0
lea rcx, [0x14017f898]
call fcn.1400052b0
mov qword [0x14017f808], rax
lea rcx, [rsp + 0x70]
call fcn.140003430
nop
mov qword [rsp + 0x30], 0
jmp 0x1400062f2
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov eax, dword [section..data]
cmp qword [rsp + 0x30], rax
jae 0x14000631a
lea rax, [0x140054010]
add rax, qword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140005e90
jmp 0x1400062e5
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call fcn.140003380
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.1400059e0
nop
lea rcx, [rsp + 0x70]
call fcn.140003d00
xor eax, eax
add rsp, 0xd8
ret

Function at 0x1400067f0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp], 0
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov dword [rsp], 0
jmp 0x14000683c
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 0x28
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp], eax
jge 0x1400068a1
mov qword [rsp + 0x10], 0
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
jne 0x140006875
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x10]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
cmp qword [rsp + 0x30], rax
jb 0x14000689f
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0x10]
cmp qword [rsp + 0x30], rax
jae 0x14000689f
mov rax, qword [rsp + 8]
jmp 0x1400068a3
jmp 0x140006826
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400075a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0x130
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x14000760f
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x5c]
call fcn.14001f9c8
test eax, eax
jne 0x14000760d
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x1400075dc
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x168
ret
Function at 0x140014530
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014554
xor eax, eax
jmp 0x140014582
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x14001457d
xor eax, eax
jmp 0x140014582
mov rax, qword [rsp + 8]
add rsp, 0x18
ret
Function at 0x140015430
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [0x140043690]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14001545d
xor al, al
jmp 0x1400155c5
mov r8, qword [rsp + 0xb0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x70]
call fcn.140014fc0
nop
lea rcx, [rsp + 0x70]
call fcn.14000f050
mov rdx, rax
lea rcx, [rsp + 0x90]
call sub.ntdll.dll_RtlInitUnicodeString
mov r8, qword [rsp + 0xb0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x50]
call fcn.140014fc0
nop
lea rcx, [rsp + 0x50]
call fcn.14000f050
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140015524
cmp dword [rsp + 0x24], 2
jne 0x140015500
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x50]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x70]
call fcn.14000ada0
movzx eax, byte [rsp + 0x20]
jmp 0x1400155c5
mov byte [rsp + 0x21], 0
lea rcx, [rsp + 0x50]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x70]
call fcn.14000ada0
movzx eax, byte [rsp + 0x21]
jmp 0x1400155c5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x90]
call qword [rsp + 0x48]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x50]
call fcn.14000f050
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400155a6
mov byte [rsp + 0x22], 0
lea rcx, [rsp + 0x50]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x70]
call fcn.14000ada0
movzx eax, byte [rsp + 0x22]
jmp 0x1400155c5
mov byte [rsp + 0x23], 1
lea rcx, [rsp + 0x50]
call fcn.14000ada0
nop
lea rcx, [rsp + 0x70]
call fcn.14000ada0
movzx eax, byte [rsp + 0x23]
add rsp, 0xa8
ret
Function at 0x140015b20
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x140015b49
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x140015bb3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x140015c79
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.14001b240
test eax, eax
jne 0x140015c74
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
cmp byte [rax + rcx], 0
jne 0x140015c0f
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
jne 0x140015c74
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x140015c3f
xor eax, eax
jmp 0x140015c7b
cmp qword [rsp + 0x90], 0
je 0x140015c5c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
jmp 0x140015c7b
jmp 0x140015ba9
xor eax, eax
add rsp, 0x78
ret
Function at 0x140015c80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140015ccb
cmp dword [rsp + 0x24], 0x105
jbe 0x140015d20
lea rdx, str.____Failed_to_get_temp_path
lea rcx, [0x140181120]
call fcn.1400155d0
mov qword [rsp + 0x38], rax
lea rdx, [0x140009810]
mov rcx, qword [rsp + 0x38]
call fcn.14000b0c0
lea rdx, [0x140043820]
mov rcx, qword [rsp + 0x270]
call fcn.14000a030
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x270]
jmp 0x140015db2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp word [rax + rcx*2], 0
jne 0x140015d33
mov rax, qword [rsp + 0x28]
movzx eax, word [rsp + rax*2 + 0x4e]
cmp eax, 0x5c
jne 0x140015d8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp word [rax + rcx*2], 0
jne 0x140015d6b
mov rax, qword [rsp + 0x30]
xor ecx, ecx
mov word [rsp + rax*2 + 0x4e], cx
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x270]
call fcn.14000a030
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140015dc0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140015e55
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov ecx, 0xb
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x30], eax
jmp 0x140015dfa
cmp dword [rsp + 0x30], 0
jge 0x140015e7e
cmp qword [rsp + 0x28], 0
je 0x140015e77
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140015f98
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140015e97
xor eax, eax
jmp 0x140015f98
mov dword [rsp + 0x20], 0
jmp 0x140015eab
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x140015f83
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 8]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400031b0
mov rcx, qword [rsp + 0x90]
call fcn.1400052b0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x60]
call fcn.1400052b0
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.14001f9c8
test eax, eax
jne 0x140015f74
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.140003c90
mov rax, qword [rsp + 0x58]
jmp 0x140015f98
lea rcx, [rsp + 0x60]
call fcn.140003c90
jmp 0x140015ea1
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x88
ret

Function at 0x14001979c
Capabilities:
Parse pe header

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