joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800788a0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [0x180156878], 0
jne 0x180078a44
lea rcx, [0x1801566f0]
mov edi, 1
mov dword [0x1801566f0], 0x94
mov dword [0x180156878], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor r11d, r11d
cmp dword [0x180156700], 2
sete r11b
mov dword [0x180134240], r11d
test r11d, r11d
je 0x180078a28
lea rcx, [0x180156790]
mov qword [rsp + 0x160], rbx
mov dword [0x180156790], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProductInfo
mov rcx, rbx
mov qword [0x1801566e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x180156830]
mov qword [0x180156860], rax
mov rax, qword [0x1801566e8]
test rax, rax
je 0x18007897c
call rax
jmp 0x180078982
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x180156794]
cmp eax, 6
jae 0x18007899b
cmp eax, 5
jne 0x1800789b2
cmp dword [0x180156798], 2
jb 0x1800789b2
mov eax, dword [0x1801566e0]
cmp word [0x180156830], 9
cmove eax, edi
mov dword [0x1801566e0], eax
lea rcx, str.Ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800789e0
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x180156868], rax
jmp 0x1800789e7
mov rbx, qword [0x180156868]
test rbx, rbx
je 0x180078a20
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x110
call fcn.18004a760
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call rbx
mov ecx, dword [0x1801566fc]
test eax, eax
cmove ecx, dword [rsp + 0x2c]
mov dword [0x1801566fc], ecx
mov rbx, qword [rsp + 0x160]
lea rdx, [0x1801566f8]
lea rcx, [0x1801566f4]
call fcn.180078760
call fcn.1800784a0
mov eax, edi
jmp 0x180078a49
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18004ac60
add rsp, 0x150
pop rdi
ret
Function at 0x18007ba80
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x2f0
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, qword [rsp + 0x350]
mov rbp, rcx
mov r12, r8
mov r13, rdx
xor r14d, r14d
lea rcx, [rsp + 0xe1]
mov ebx, r14d
mov r8d, 0x1f3
xor edx, edx
mov byte [rsp + 0xe0], bl
mov rsi, r9
call fcn.18004a760
test r12, r12
je 0x18007bb05
lea r8, [rsp + 0xe0]
mov r9d, 0x1f3
or edx, 0xffffffff
mov rcx, r12
mov dword [rsp + 0x20], r14d
call fcn.18003fba0
lea rbx, [rsp + 0xe0]
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], WSAGetLastError
lea r8d, [rdx + 0x60]
call fcn.18004a760
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov rdx, rbx
mov rcx, r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test eax, eax
je 0x18007bba6
test rsi, rsi
je 0x18007bb79
mov ecx, dword [rsp + 0x60]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x18007bb93
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18007bbaf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18007bbaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 8], eax
mov eax, ebx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.18004ac60
add rsp, 0x2f0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007cb80
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x808]
sub rsp, 0x908
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
mov rsi, qword [rbp + 0x870]
mov rdi, qword [rbp + 0x878]
xor eax, eax
mov rbx, r8
mov r15, rcx
mov qword [rsp + 0x68], rdx
lea r8d, [rax + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
mov r12, r9
mov r14d, eax
mov r13d, eax
mov dword [rsp + 0x70], WSAGetLastError
call fcn.18004a760
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x50], rcx
mov word [rbp + 0x1f0], cx
lea rcx, [rbp + 0x1f2]
xor edx, edx
mov r8d, 0x206
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.18004a760
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x18007cc45
lea r8, [rbp + 0x1f0]
mov r9d, 0x104
or edx, 0xffffffff
mov rcx, rax
mov dword [rsp + 0x20], r13d
call fcn.18003f8f0
lea r14, [rbp + 0x1f0]
xor eax, eax
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x3e6
mov word [rbp + 0x400], ax
call fcn.18004a760
test rbx, rbx
je 0x18007cc8c
xor eax, eax
lea r8, [rbp + 0x400]
mov r9d, 0x1f4
or edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.18003fb80
lea r13, [rbp + 0x400]
lea rcx, [rbp - 0x1e]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rbp - 0x20], bx
call fcn.18004a760
test r12, r12
je 0x18007ccc9
lea r8, [rbp - 0x20]
mov r9d, 0x104
or edx, 0xffffffff
mov rcx, r12
mov dword [rsp + 0x20], ebx
call fcn.18003fb80
lea r11, [rbp - 0x20]
mov qword [rbp - 0x80], r11
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov rcx, r14
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x18007cd3f
test rsi, rsi
je 0x18007cd12
mov ecx, dword [rsp + 0x60]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x18007cd2c
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18007cd49
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18007cd49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 8], eax
mov eax, ebx
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.18004ac60
add rsp, 0x908
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18007de70
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1f90
call fcn.1800cba70
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rsp + 0x1f80], rax
mov esi, r9d
mov r14, r8
mov r13, rdx
mov rdi, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, r13
call fcn.180041c20
or r8d, 0xffffffff
xor edx, edx
mov rcx, r14
call fcn.18003e4e0
call fcn.1800844c0
mov rbx, qword [0x180157190]
test rbx, rbx
je 0x18007dfdf
cmp esi, 0xffffffff
jne 0x18007deff
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, rdi
call qword [rbx + 0x70]
mov esi, eax
mov rbx, qword [0x180157190]
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x40], ebp
xor edx, edx
mov r8d, 0x1f3c
lea rcx, [rsp + 0x44]
call fcn.18004a760
lea r8, [rsp + 0x20]
mov edx, 0x1f40
lea rcx, [rsp + 0x40]
call rbx
test eax, eax
je 0x18007dfd6
mov eax, dword [rsp + 0x20]
shr eax, 2
test eax, eax
je 0x18007dfcf
lea rbx, [rsp + 0x40]
mov r12d, eax
nop dword [rax + rax]
cmp esi, 0xfffffffe
je 0x18007df64
mov rax, qword [rdi]
mov edx, dword [rbx]
mov rcx, rdi
call qword [rax + 0x70]
cmp esi, eax
jne 0x18007dfc6
test ebp, ebp
jne 0x18007df85
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea r8d, [rbp + 1]
lea rdx, str.SeDebugPrivilege
call fcn.180089650
mov ebp, 1
mov r8d, dword [rbx]
mov edx, dword [r13 + 8]
mov rcx, r13
call fcn.180041e80
mov r11, qword [rdi]
mov r8d, dword [rbx]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [r11 + 0x80]
nop
lea r8, [rsp + 0x28]
mov edx, dword [r14 + 8]
mov rcx, r14
call fcn.18003e730
nop
lea rcx, [rsp + 0x28]
call fcn.180039470
add rbx, 4
dec r12
jne 0x18007df50
mov eax, 1
jmp 0x18007dfe1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 8], eax
xor eax, eax
mov rcx, qword [rsp + 0x1f80]
xor rcx, rsp
call fcn.18004ac60
add rsp, 0x1f90
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007edd0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x210
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov r12, r9
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.18007c880
lea rcx, [rsp + 0x28]
call fcn.18007d4d0
nop
xor r9d, r9d
mov r8d, ebx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18007e840
test eax, eax
je 0x18007ef63
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov r8d, 1
lea rdx, str.SeDebugPrivilege
call fcn.180089650
xor r13d, r13d
mov ebx, r13d
lea rcx, [rsp + 0x28]
call fcn.18007d4e0
mov ebp, eax
test eax, eax
jle 0x18007ef46
mov dword [rsp + 0x50], r13d
xor edx, edx
mov r8d, 0x1a4
lea rcx, [rsp + 0x54]
call fcn.18004a760
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.18007e580
mov rdx, rax
lea rcx, [rsp + 0x50]
mov r8d, 0xa0
call fcn.18004b380
mov r11, qword [rdi]
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [r11 + 0x80]
nop
mov rax, qword [rsp + 0x20]
cmp dword [rax - 8], 0
jne 0x18007eef5
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x18007eeda
lea rdx, str.System_Idle_Process
jmp 0x18007eeeb
cmp eax, 4
je 0x18007eee4
cmp eax, 8
jne 0x18007eef5
lea rdx, [0x1800fea80]
lea rcx, [rsp + 0x20]
call fcn.1800395f0
mov r8d, 0x103
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0xf4]
call fcn.18004bf40
mov r8, r12
lea rdx, [rsp + 0xf4]
mov rcx, rdi
call fcn.18007fb40
test eax, eax
je 0x18007ef32
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.18007c890
nop
lea rcx, [rsp + 0x20]
call fcn.180039470
inc ebx
cmp ebx, ebp
jl 0x18007ee70
mov rdx, rsi
mov rcx, rdi
call fcn.18007eab0
nop
lea rcx, [rsp + 0x28]
call fcn.18007e590
mov eax, 1
jmp 0x18007ef6f
lea rcx, [rsp + 0x28]
call fcn.18007e590
xor eax, eax
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.18004ac60
mov rbx, qword [rsp + 0x250]
add rsp, 0x210
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18007f410
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18007f42e
mov dword [rcx + 8], 0x57
add rsp, 0x20
pop rbx
ret
mov edx, r8d
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
test eax, eax
jne 0x18007f44e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x18007f460
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call fcn.180082a20
mov r11, qword [0x180156e48]
test r11, r11
jne 0x18007f48d
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x30], rsi
lea ecx, [rdx + 2]
call r11
mov rsi, rax
test rax, rax
jne 0x18007f4c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x30]
mov dword [rbx + 8], eax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18007f4d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xor eax, eax
cmp edi, 0xffffffff
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x18007f500
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call fcn.180082a20
mov r11, qword [0x180156e48]
test r11, r11
jne 0x18007f52d
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x30], rsi
lea ecx, [rdx + 2]
call r11
mov rsi, rax
test rax, rax
jne 0x18007f560
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x30]
mov dword [rbx + 8], eax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18007f579
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xor eax, eax
cmp edi, 0xffffffff
setne al
add rsp, 0x20
pop rdi
ret
Function at 0x18007f5a0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
mov rbx, rcx
call fcn.180082a20
mov r11, qword [0x180156e48]
test r11, r11
je 0x18007f5e4
xor edx, edx
mov r8d, esi
lea ecx, [rdx + 1]
call r11
mov rsi, rax
test rax, rax
jne 0x18007f5f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov edi, eax
test eax, eax
jne 0x18007f610
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x18007f870
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180132920]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.18004a760
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18003cb90
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18004ac60
add rsp, 0x150
pop rbx
ret

Function at 0x18007fbc0
Capabilities:
Suspend thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov ebx, edx
mov r12, rcx
call fcn.180082a20
cmp qword [0x180156e48], 0
je 0x18007fc26
lea rcx, [rsp + 0x28]
call fcn.180041c00
nop
mov rax, qword [r12]
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, r12
call qword [rax + 0xd0]
mov ebp, eax
test eax, eax
jne 0x18007fc2a
lea rcx, [rsp + 0x28]
call fcn.180041c10
xor eax, eax
jmp 0x18007fc99
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x18007fc8d
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x180156e48]
mov rbx, rax
test rsi, rsi
jne 0x18007fc61
test rax, rax
je 0x18007fc80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
inc rsi
cmp edi, dword [rsp + 0x30]
jge 0x18007fc8d
jmp 0x18007fc40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.180041c10
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x18007fcc0
Capabilities:
Resume thread

Disassembly:
push r12
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov ebx, edx
mov r12, rcx
call fcn.180082a20
cmp qword [0x180156e48], 0
je 0x18007fd26
lea rcx, [rsp + 0x28]
call fcn.180041c00
nop
mov rax, qword [r12]
lea r8, [rsp + 0x28]
mov edx, ebx
mov rcx, r12
call qword [rax + 0xd0]
mov ebp, eax
test eax, eax
jne 0x18007fd2a
lea rcx, [rsp + 0x28]
call fcn.180041c10
xor eax, eax
jmp 0x18007fd99
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x18007fd8d
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x180156e48]
mov rbx, rax
test rsi, rsi
jne 0x18007fd61
test rax, rax
je 0x18007fd80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
inc rsi
cmp edi, dword [rsp + 0x30]
jge 0x18007fd8d
jmp 0x18007fd40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.180041c10
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret

Function at 0x18007fdc0
Capabilities:
Acquire debug privileges

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov ebx, r9d
mov r13, r8
mov rbp, rdx
mov r12, rcx
lea rcx, [rsp + 0x28]
call fcn.180041c00
nop
mov rax, qword [r12]
mov r8d, ebx
lea rdx, [rsp + 0x28]
mov rcx, r12
call qword [rax + 0xb0]
test eax, eax
jne 0x18007fe23
lea rcx, [rsp + 0x28]
call fcn.180041c10
xor eax, eax
jmp 0x18007febf
xor esi, esi
mov ebx, esi
cmp dword [rsp + 0x30], ebx
jle 0x18007feb0
mov edi, esi
test esi, esi
jne 0x18007fe54
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea r8d, [rsi + 1]
lea rdx, str.SeDebugPrivilege
call fcn.180089650
mov esi, 1
mov rax, qword [rsp + 0x28]
mov r9, qword [r12]
mov r8d, dword [rdi + rax]
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [r9 + 0x80]
nop
mov r8, r13
mov rdx, qword [rsp + 0x60]
mov rcx, r12
call fcn.18007fb40
test eax, eax
je 0x18007fe9a
mov rax, qword [rsp + 0x28]
mov r8d, dword [rdi + rax]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.180041e80
nop
lea rcx, [rsp + 0x60]
call fcn.180039470
inc ebx
add rdi, 4
cmp ebx, dword [rsp + 0x30]
jl 0x18007fe33
lea rcx, [rsp + 0x28]
call fcn.180041c10
mov eax, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x180083b60
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
call fcn.180082a20
mov r11, qword [0x180156d08]
mov rdx, rbx
mov rcx, rdi
test r11, r11
je 0x180083baa
mov eax, dword [rsp + 0x60]
mov r9, rsi
mov r8, rbp
mov dword [rsp + 0x20], eax
call r11
jmp 0x180083bb0
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180084390
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x18015718c]
test ecx, ecx
jne 0x1800844af
mov eax, dword [0x180157188]
cmp eax, 3
ja 0x1800844af
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x180157188], eax
call fcn.180078b30
test eax, eax
je 0x1800843d6
lea rcx, str.Userenv.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1800843e3
lea rcx, [0x1801014a0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x1800843f5
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.CreateEnvironmentBlock
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.DestroyEnvironmentBlock
mov rcx, rbx
mov qword [0x180157150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserA
mov rcx, rbx
mov qword [0x180157158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ExpandEnvironmentStringsForUserW
mov rcx, rbx
mov qword [0x180157160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileA
mov rcx, rbx
mov qword [0x180157168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.LoadUserProfileW
mov rcx, rbx
mov qword [0x180157170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.UnloadUserProfile
mov rcx, rbx
mov qword [0x180157178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov dword [0x18015718c], 1
mov qword [0x180157180], rax
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1800844c0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1801571e4]
test ecx, ecx
jne 0x180084624
mov eax, dword [0x1801571e0]
cmp eax, 3
ja 0x180084624
inc eax
mov qword [rsp + 0x20], rbx
mov dword [0x1801571e0], eax
call fcn.180078b30
test eax, eax
je 0x180084506
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x180084513
lea rcx, [0x1801015c0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x180084525
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.EnumProcessModules
mov rcx, rbx
mov qword [0x180157190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessMemoryInfo
mov rcx, rbx
mov qword [0x180157198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExA
mov rcx, rbx
mov qword [0x1801571a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleFileNameExW
mov rcx, rbx
mov qword [0x1801571a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetModuleInformation
mov rcx, rbx
mov qword [0x1801571b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessImageFileNameA
mov rcx, rbx
mov qword [0x1801571b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProcessImageFileNameW
mov rcx, rbx
mov qword [0x1801571c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetMappedFileNameA
mov rcx, rbx
mov qword [0x1801571c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetMappedFileNameW
mov rcx, rbx
mov qword [0x1801571d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x20]
mov qword [0x1801571d8], rax
mov dword [0x1801571e4], 1
mov eax, 1
add rsp, 0x28
ret
mov eax, ecx
add rsp, 0x28
ret
Function at 0x180084b40
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x38], rbp
mov rbp, rcx
lea r8, [rsp + 0x68]
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180084c5f
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180084c5f
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x180084c5f
lea ecx, [rdi + 0x40]
mov edx, eax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180084c5a
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180084c51
cmp dword [rsp + 0x60], 7
jne 0x180084c51
mov qword [rsp + 0x50], rbx
mov rbx, rsi
cmp byte [rsi], dil
je 0x180084c4c
nop dword [rax + rax]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x180084c47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rbx, rax
cmp byte [rbx], dil
jne 0x180084c20
jmp 0x180084c4c
mov edi, 1
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x38]
test rcx, rcx
je 0x180084c74
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x40
pop rdi
ret