joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801365e0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, r8d
mov r14, rdx
mov r13, rcx
lea rcx, [rax - 0x48]
call fcn.1801365b0
nop
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1801d72b0]
lea rcx, [rsp + 0x50]
call fcn.1801363d0
mov r12d, 1
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18013666d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18013666d
mov dword [rsp + 0x34], eax
lea rdx, [0x18021a140]
lea rcx, [rsp + 0x34]
call fcn.1800fd058
mov ecx, dword [rsp + 0x30]
shl rcx, 0x20
or rcx, rbx
mov qword [rsp + 0x40], rcx
mov r8d, 8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1801363a0
mov ecx, 0x8000
call fcn.1800fb374
mov rbx, rax
test rax, rax
jne 0x1801366b5
lea rcx, [rsp + 0x50]
call fcn.1801363c0
xor eax, eax
jmp 0x18013678f
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call fcn.1800fb1e0
mov edi, r15d
nop dword [rax + rax]
mov dword [rsp + 0xb8], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xb8]
mov r8d, 0x8000
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180136723
test rbx, rbx
je 0x180136708
mov rcx, rbx
call fcn.1800fb418
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, [0x18021a140]
lea rcx, [rsp + 0x38]
call fcn.1800fd058
mov r8d, dword [rsp + 0xb8]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1801363a0
mov r11d, dword [rsp + 0xb8]
add edi, r11d
cmp r11d, 0x8000
jb 0x18013675d
cmp esi, 0xffffffff
je 0x1801366d0
cmp edi, esi
jb 0x1801366d0
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.180136510
test rbx, rbx
je 0x180136778
mov rcx, rbx
call fcn.1800fb418
nop
jmp 0x180136782
lea rcx, [rsp + 0x50]
call fcn.1801363c0
mov eax, r12d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180136cd0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r8d, 0x100000
jmp fcn.1801365e0
Function at 0x1801373d0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rcx
xor r13d, r13d
mov ebp, r13d
cmp dword [rcx + 0x30], ebp
je 0x1801373fe
call fcn.1800f8e60
mov rbp, rax
mov edx, 0xc0000000
mov eax, 0x80000000
cmp dword [rbx + 0x28], r13d
cmovne edx, eax
mov dword [rsp + 0x90], r13d
mov esi, r13d
mov rcx, qword [rbx + 0x38]
cmp dword [rcx - 8], r13d
je 0x180137482
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9, rbp
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x180137465
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x1801375d9
cmp dword [rsp + 0x90], r13d
jne 0x180137482
test esi, esi
je 0x1801375d9
mov r14d, 4
mov r12d, r14d
mov eax, 2
cmp dword [rbx + 0x28], r13d
cmovne r12d, eax
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.1800ebbd0
nop
cmp dword [rbx + 0x2c], 0
je 0x1801374e8
mov rax, qword [rbx + 0x40]
cmp dword [rax - 8], 0
je 0x1801374e8
call fcn.18012a340
test eax, eax
je 0x1801374e8
lea rdx, [0x1801aa4c8]
lea rcx, [rsp + 0x98]
call fcn.1800e8410
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.1800e85e0
mov rax, qword [rsp + 0x98]
cmp dword [rax - 8], 0
cmove rax, r13
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1801375cc
mov edx, 6
cmp dword [rbx + 0x28], 0
cmovne edx, r14d
mov ecx, dword [rbx + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbx + 0x24]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1801375ca
cmp dword [rbx + 0x20], 0
jne 0x1801375b6
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x1801375b6
mov dword [rsp + 0xa0], esi
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0xa4], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], r13d
mov rcx, qword [rsp + 0xa0]
sub rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rcx
shr rcx, 0x20
mov edx, dword [rsp + 0xa0]
or r8d, 0xffffffff
test ecx, ecx
cmovg edx, r8d
mov dword [rbx + 0x20], edx
lea rcx, [rsp + 0x98]
call fcn.1800e8250
mov eax, 1
jmp 0x1801375dc
jmp 0x1801375cc
lea rcx, [rsp + 0x98]
call fcn.1800e8250
mov eax, r13d
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180138f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, r8d
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x180138f99
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rdi
not r9d
lea rdi, [0x1801d7680]
cmp r11d, 8
jb 0x180139091
mov qword [rsp + 0x10], rbx
mov rbx, r11
shr rbx, 3
nop dword [rax]
movzx ecx, byte [r10]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r10, 8
add r11d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r10 - 7]
mov edx, dword [rdi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 6]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 5]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 4]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 3]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 2]
mov r8d, dword [rdi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r10 - 1]
mov edx, dword [rdi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rdi + rax*4]
xor r9d, edx
dec rbx
jne 0x180138fc0
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x1801390bf
nop word [rax + rax]
movzx ecx, byte [r10]
mov eax, r9d
inc r10
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
dec r11d
jne 0x1801390a0
mov rdi, qword [rsp]
not r9d
mov eax, r9d
add rsp, 8
ret
Function at 0x18013b6a0
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x408
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov rdi, qword [rsp + 0x470]
xor r15d, r15d
mov rbp, rcx
mov rbx, r8
mov r14, rdx
lea rcx, [rsp + 0xe1]
mov r12d, r15d
xor edx, edx
mov r8d, 0x103
mov rsi, r9
mov r13d, r15d
mov byte [rsp + 0xe0], r12b
call fcn.1800fb1e0
test r14, r14
je 0x18013b72b
lea r8, [rsp + 0xe0]
mov r9d, 0x103
or edx, 0xffffffff
mov rcx, r14
mov dword [rsp + 0x20], r15d
call fcn.1800ef070
lea r13, [rsp + 0xe0]
lea rcx, [rsp + 0x1f1]
xor edx, edx
mov r8d, 0x1f3
mov byte [rsp + 0x1f0], r12b
call fcn.1800fb1e0
test rbx, rbx
je 0x18013b773
lea r8, [rsp + 0x1f0]
mov r9d, 0xf9
or edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1800ef240
lea r12, [rsp + 0x1f0]
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], WSAGetLastError
lea r8d, [rdx + 0x60]
call fcn.1800fb1e0
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], r15
mov qword [rsp + 0x30], r15
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
test eax, eax
je 0x18013b814
test rsi, rsi
je 0x18013b7e7
mov ecx, dword [rsp + 0x60]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x18013b801
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013b81d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013b81d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 8], eax
mov eax, ebx
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x408
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18013c850
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6f8
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov rsi, qword [rsp + 0x760]
mov rdi, qword [rsp + 0x768]
xor r15d, r15d
mov r13, r8
mov r12, rcx
mov r14, rdx
lea r8d, [r15 + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
mov rbx, r9
mov ebp, r15d
mov dword [rsp + 0x70], WSAGetLastError
call fcn.1800fb1e0
xor eax, eax
lea rcx, [rsp + 0x2f2]
xor edx, edx
mov r8d, 0x3e6
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov word [rsp + 0x2f0], r15w
call fcn.1800fb1e0
test r13, r13
je 0x18013c90a
lea r8, [rsp + 0x2f0]
mov r9d, 0x1f4
or edx, 0xffffffff
mov rcx, r13
mov dword [rsp + 0x20], r15d
call fcn.1800ef230
lea rbp, [rsp + 0x2f0]
lea rcx, [rsp + 0xe2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xe0], r15w
call fcn.1800fb1e0
test rbx, rbx
je 0x18013c95b
lea r8, [rsp + 0xe0]
mov r9d, 0x104
or edx, 0xffffffff
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.1800ef230
lea r11, [rsp + 0xe0]
mov qword [rsp + 0x80], r11
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov rcx, r14
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x18013c9d3
test rsi, rsi
je 0x18013c9a6
mov ecx, dword [rsp + 0x60]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
test rdi, rdi
je 0x18013c9c0
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013c9de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18013c9de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
mov eax, ebx
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x6f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18013da00
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1f90
call fcn.1800fdba0
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180222e50]
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.1800f2470
or r8d, 0xffffffff
xor edx, edx
mov rcx, r14
call fcn.1800ec630
call fcn.180151fd0
mov rbx, qword [0x180241fa8]
test rbx, rbx
je 0x18013db6f
cmp esi, 0xffffffff
jne 0x18013da8f
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov rcx, rdi
call qword [rbx + reloc.WS2_32.dll_WSASetLastError]
mov esi, eax
mov rbx, qword [0x180241fa8]
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.1800fb1e0
lea r8, [rsp + 0x20]
mov edx, 0x1f40
lea rcx, [rsp + 0x40]
call rbx
test eax, eax
je 0x18013db66
mov eax, dword [rsp + 0x20]
shr eax, 2
test eax, eax
je 0x18013db5f
lea rbx, [rsp + 0x40]
mov r12d, eax
nop dword [rax + rax]
cmp esi, 0xfffffffe
je 0x18013daf4
mov rax, qword [rdi]
mov edx, dword [rbx]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
cmp esi, eax
jne 0x18013db56
test ebp, ebp
jne 0x18013db15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea r8d, [rbp + 1]
lea rdx, str.SeDebugPrivilege
call fcn.1800fb1c0
mov ebp, 1
mov r8d, dword [rbx]
mov edx, dword [r13 + 8]
mov rcx, r13
call fcn.1800f26d0
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.1800ec880
nop
lea rcx, [rsp + 0x28]
call fcn.1800e8250
add rbx, 4
dec r12
jne 0x18013dae0
mov eax, 1
jmp 0x18013db71
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.1800fbf40
add rsp, 0x1f90
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18013e960
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x310
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r12, r9
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.18013c530
lea rcx, [rsp + 0x28]
call fcn.18013d040
nop
xor r9d, r9d
mov r8d, ebx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.18013e3d0
test eax, eax
je 0x18013eaf3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov r8d, 1
lea rdx, str.SeDebugPrivilege
call fcn.1800fb1c0
xor r13d, r13d
mov ebx, r13d
lea rcx, [rsp + 0x28]
call fcn.18013d050
mov ebp, eax
test eax, eax
jle 0x18013ead6
mov dword [rsp + 0x50], r13d
xor edx, edx
mov r8d, 0x2ac
lea rcx, [rsp + 0x54]
call fcn.1800fb1e0
mov edx, ebx
lea rcx, [rsp + 0x28]
call fcn.18013e110
mov rdx, rax
lea rcx, [rsp + 0x50]
mov r8d, 0xa0
call fcn.1800fcc50
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 0x18013ea85
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x18013ea6a
lea rdx, str.System_Idle_Process
jmp 0x18013ea7b
cmp eax, 4
je 0x18013ea74
cmp eax, 8
jne 0x18013ea85
lea rdx, str.System
lea rcx, [rsp + 0x20]
call fcn.1800e8410
mov r8d, 0x103
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0xf4]
call fcn.1800fb420
mov r8, r12
lea rdx, [rsp + 0xf4]
mov rcx, rdi
call fcn.18013eec0
test eax, eax
je 0x18013eac2
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.18013c540
nop
lea rcx, [rsp + 0x20]
call fcn.1800e8250
inc ebx
cmp ebx, ebp
jl 0x18013ea00
mov rdx, rsi
mov rcx, rdi
call fcn.18013e640
nop
lea rcx, [rsp + 0x28]
call fcn.18013e120
mov eax, 1
jmp 0x18013eaff
lea rcx, [rsp + 0x28]
call fcn.18013e120
xor eax, eax
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1800fbf40
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18013f020
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
jne 0x18013f03e
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 0x18013f05e
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 0x18013f070
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call fcn.180150b30
mov r11, qword [0x180241e50]
test r11, r11
jne 0x18013f09d
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 0x18013f0d0
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 0x18013f0e9
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 0x18013f110
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
call fcn.180150b30
mov r11, qword [0x180241e50]
test r11, r11
jne 0x18013f13d
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 0x18013f170
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 0x18013f189
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 0x18013f1b0
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.180150b30
mov r11, qword [0x180241e50]
test r11, r11
je 0x18013f1f4
xor edx, edx
mov r8d, esi
lea ecx, [rdx + 1]
call r11
mov rsi, rax
test rax, rax
jne 0x18013f206
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 0x18013f220
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 0x18013f480
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x180222e50]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor eax, eax
mov rbx, rdx
lea rcx, [rsp + 0x32]
mov dword [rsp + 0x20], eax
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], ax
call fcn.1800fb1e0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x104
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1800ebc90
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800fbf40
add rsp, 0x250
pop rbx
ret

Function at 0x18013f820
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.180150b30
cmp qword [0x180241e50], 0
je 0x18013f886
lea rcx, [rsp + 0x28]
call fcn.1800f2450
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 0x18013f88a
lea rcx, [rsp + 0x28]
call fcn.1800f2460
xor eax, eax
jmp 0x18013f8f9
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x18013f8ed
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x180241e50]
mov rbx, rax
test rsi, rsi
jne 0x18013f8c1
test rax, rax
je 0x18013f8e0
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 0x18013f8ed
jmp 0x18013f8a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.1800f2460
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 0x18013f920
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.180150b30
cmp qword [0x180241e50], 0
je 0x18013f986
lea rcx, [rsp + 0x28]
call fcn.1800f2450
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 0x18013f98a
lea rcx, [rsp + 0x28]
call fcn.1800f2460
xor eax, eax
jmp 0x18013f9f9
xor edi, edi
xor esi, esi
cmp dword [rsp + 0x30], esi
jle 0x18013f9ed
nop word [rax + rax]
mov rax, qword [rsp + 0x28]
mov r8d, dword [rax + rsi*4]
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x180241e50]
mov rbx, rax
test rsi, rsi
jne 0x18013f9c1
test rax, rax
je 0x18013f9e0
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 0x18013f9ed
jmp 0x18013f9a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12 + 8], eax
xor ebp, ebp
lea rcx, [rsp + 0x28]
call fcn.1800f2460
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 0x18013fa20
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.1800f2450
nop
mov rax, qword [r12]
mov r8d, ebx
lea rdx, [rsp + 0x28]
mov rcx, r12
call qword [rax + 0xb0]
test eax, eax
jne 0x18013fa83
lea rcx, [rsp + 0x28]
call fcn.1800f2460
xor eax, eax
jmp 0x18013fb1f
xor esi, esi
mov ebx, esi
cmp dword [rsp + 0x30], ebx
jle 0x18013fb10
mov edi, esi
test esi, esi
jne 0x18013fab4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea r8d, [rsi + 1]
lea rdx, str.SeDebugPrivilege
call fcn.1800fb1c0
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.18013eec0
test eax, eax
je 0x18013fafa
mov rax, qword [rsp + 0x28]
mov r8d, dword [rdi + rax]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.1800f26d0
nop
lea rcx, [rsp + 0x60]
call fcn.1800e8250
inc ebx
add rdi, 4
cmp ebx, dword [rsp + 0x30]
jl 0x18013fa93
lea rcx, [rsp + 0x28]
call fcn.1800f2460
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 0x180141520
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
jne 0x180141529
xor eax, eax
jmp 0x180141571
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x180141537
xor eax, eax
jmp 0x180141571
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x18014154a
xor eax, eax
jmp 0x180141571
cmp word [rax + 0x14], 0
jne 0x180141555
xor eax, eax
jmp 0x180141571
test edx, edx
je 0x180141568
mov ecx, 0x8664
cmp word [rax + 4], cx
je 0x180141568
xor eax, eax
jmp 0x180141571
mov eax, 1
jmp 0x180141571
repz ret

Function at 0x1801419a0
Capabilities:
Parse pe header

Disassembly:
mov edx, 1
jmp fcn.180141520