joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003ab20
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18004c040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18003ab6f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18004cb80]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003abad
cmp rsi, r14
jb 0x18003aba5
cmp rsi, r15
jae 0x18003aba5
cmp qword [rsi + 8], 0
jne 0x18003ad77
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18003ab90
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18003ac42
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18003ac39
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003ac39
cmp dword [rsp + 0x40], 0x10000
je 0x18003acbb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18003ac39
sub rbx, rbp
cmp rbx, r14
jae 0x18003ac00
test rsi, rsi
jne 0x18003ad20
cmp rdi, r15
ja 0x18003ad5f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18003ad5f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003ad5f
cmp dword [rsp + 0x40], 0x10000
je 0x18003acf1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18003ac72
jmp 0x18003ad5f
test rbx, rbx
je 0x18003ac39
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003ad20
cmp rbx, r14
jae 0x18003abe0
jmp 0x18003ac42
test rdi, rdi
je 0x18003ad5f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18003ad20
cmp rdi, r15
jbe 0x18003ac50
jmp 0x18003ad5f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18003ad30
mov rax, qword [0x18004cb80]
mov qword [rsi], rax
mov qword [0x18004cb80], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003c4e0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18003b790
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x58
mov rax, qword [0x18004c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r12d, edx
mov qword [rcx], r13
mov rbx, rcx
mov qword [rcx + 8], r13
xor edx, edx
mov ecx, 4
mov r15d, r8d
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18003b987
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18003b8d6
mov edi, 1
cmp dword [rsp + 0x20], 0x10
jb 0x18003b890
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003b890
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003b890
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18003b852
mov rcx, qword [0x18004cb10]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18003b8b9
jmp 0x18003b883
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18003b883
mov rcx, qword [0x18004cb10]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18003b8b9
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18003b800
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18003b8d6
mov r8, qword [rbx]
mov edi, r13d
test r8, r8
je 0x18003b8d6
mov rcx, qword [0x18004cb10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r13
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x18003b987
cmp qword [rbx], r13
je 0x18003b982
mov edi, r13d
cmp dword [rbx + 0xc], r13d
jbe 0x18003b982
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x50], r14
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, edi
mov ecx, 0x5a
lea r14, [rax*4]
mov r8d, dword [r8 + r14]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov ebp, r13d
test rax, rax
je 0x18003b967
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18003b95a
mov r8d, r15d
mov edx, r12d
mov rcx, rsi
mov ebp, 1
call fcn.18003b5e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x18003b96e
mov rcx, qword [rbx]
mov dword [r14 + rcx], r13d
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18003b910
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0xa0]
mov eax, r13d
jmp 0x18003b98c
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18003c4e0
add rsp, 0x58
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18003b9b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18004c040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18004cb70]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003ba23
mov eax, 0xa
jmp 0x18003bab6
test esi, esi
je 0x18003ba45
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18003ba68
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18003ba68
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18003ba61
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18003ba68
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18003c4e0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18003bae0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18004cb7c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x18003bb27
mov rax, qword [0x18004cb70]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18003bb34
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x18003bb10
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x18003bb27
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18003b790
mov edi, eax
test eax, eax
jne 0x18003bc1c
mov r9d, dword [0x18004cb7c]
cmp ebx, r9d
jae 0x18003bbac
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x18004cb70]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x18003bba5
mov edx, esi
mov ecx, ebx
call fcn.18003b9b0
mov edi, eax
test eax, eax
jne 0x18003bbac
mov r9d, dword [0x18004cb7c]
inc ebx
cmp ebx, r9d
jb 0x18003bb70
cmp qword [rsp + 0x20], 0
je 0x18003bc1a
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003bc06
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov r8d, dword [rbx]
test r8d, r8d
je 0x18003bbf7
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003bbf7
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 0x18003bbc8
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18004cb10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x18003bf20
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 [0x18004cb08], ebp
je 0x18003bf77
cmp rbx, 0x20
jae 0x18003bf60
xor ecx, ecx
jmp 0x18003bf62
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18004cb08], ebp
jne 0x18003bf56
cmp qword [0x18004cb10], r15
je 0x18003c078
test rdi, rdi
jne 0x18003bf97
mov ecx, esi
call fcn.18003bae0
mov edi, eax
jmp 0x18003c07d
mov ecx, dword [0x18004cb7c]
mov ebx, r15d
test ecx, ecx
je 0x18003bfbf
mov rdx, qword [0x18004cb70]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x18003bfc9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003bfb0
mov edi, 4
jmp 0x18003c07d
cmp ebx, 0xffffffff
je 0x18003bfbf
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18003c06f
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18003b790
mov edi, eax
test eax, eax
jne 0x18003c07d
mov edx, esi
mov ecx, ebx
call fcn.18003b9b0
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x18003c07d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003c059
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop
mov r8d, dword [rbx]
test r8d, r8d
je 0x18003c04f
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003c04f
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 0x18003c020
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18004cb10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18003c07d
neg esi
sbb edi, edi
add edi, 6
jmp 0x18003c07d
mov edi, 2
xchg dword [0x18004cb08], 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 0x1400077c8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
mov edi, ebp
test rdx, rdx
je 0x14000793f
cmp word [rdx], bp
je 0x14000793f
mov edi, 0x104
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140007839
mov r8, rbx
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1401cb54c
lea rcx, [rsp + 0x40]
call fcn.14000dd64
mov rdi, rbp
mov rax, qword [rsi + 0x68]
sub rax, qword [rsi + 0x60]
sar rax, 3
test rax, rax
je 0x140007888
mov rbx, qword [rsi + 0x60]
mov rcx, qword [rbx]
add rcx, 8
lea rdx, [rsp + 0x40]
call fcn.14000d24c
test eax, eax
je 0x140007888
inc rdi
add rbx, 8
mov rax, qword [rsi + 0x68]
sub rax, qword [rsi + 0x60]
sar rax, 3
cmp rdi, rax
jb 0x14000785b
mov rax, qword [rsi + 0x68]
sub rax, qword [rsi + 0x60]
sar rax, 3
cmp rdi, rax
je 0x1400078a3
mov rax, qword [rsi + 0x60]
mov rdi, qword [rax + rdi*8]
jmp 0x1400078a6
mov rdi, rbp
test rdi, rdi
jne 0x14000793f
lea ecx, [rdi + 0x50]
call fcn.14001b3b8
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14000791f
mov byte [rax], 1
lea rcx, [rax + 8]
lea rdx, [rsp + 0x40]
call fcn.1400043a0
nop
mov dword [rdi + 0x28], ebp
lea rbx, [rdi + 0x30]
mov rcx, rbx
call fcn.1400049d0
mov rcx, rbx
call fcn.140004a50
mov qword [rax], 7
mov rcx, rbx
call fcn.1400044e0
mov word [rsp + 0x20], bp
mov qword [rax + 0x10], rbp
cmp qword [rax + 0x18], 8
jb 0x14000790f
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140004a60
nop
jmp 0x140007922
mov rdi, rbp
mov qword [rsp + 0x28], rdi
test rdi, rdi
je 0x14000793f
lea rdx, [rsp + 0x28]
lea rcx, [rsi + 0x60]
call fcn.140005cb8
mov rdi, qword [rsp + 0x28]
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401c44c0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400092a8
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rdx
mov rbp, rcx
xor esi, esi
cmp dword [rcx + 0x358], esi
jle 0x1400093cc
cmp rdx, 0xffffffffffffffff
je 0x1400093cc
lea rdx, str.____Queued_Lines_End_____r_n
lea rcx, [r11 - 0x58]
call fcn.1400043a0
nop
lea rdi, [rbp + 0x338]
mov rdx, rax
mov rcx, rdi
call fcn.14000b5e0
nop
lea rcx, [rsp + 0x40]
call fcn.140004af0
jmp 0x1400093be
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000c3e0
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000933e
xor eax, eax
jmp 0x140009341
mov rax, qword [rcx]
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov rax, qword [rax + 8]
mov rbx, qword [rax + rcx*8]
mov rcx, rbx
call fcn.140004420
mov r15, qword [rax]
mov rcx, rbx
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x140009371
mov rax, qword [rax]
lea r8d, [r15 + r15]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009394
add esi, dword [rsp + 0x30]
mov rcx, qword [rdi + 0x10]
dec rcx
and rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 8]
mov rcx, qword [rax + rcx*8]
call fcn.140004af0
sub qword [rdi + 0x20], 1
jne 0x1400093ba
and qword [rdi + 0x18], 0
jmp 0x1400093be
inc qword [rdi + 0x18]
cmp qword [rbp + 0x358], 0
ja 0x140009322
mov eax, esi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401c44c0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a238
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14d, r9d
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rbp, qword [rsp + 0xd0]
lea rcx, [rsp + 0x40]
call fcn.1400049d0
lea rcx, [rsp + 0x40]
call fcn.140004a50
mov qword [rax], 7
lea rcx, [rsp + 0x40]
call fcn.1400044e0
xor r15d, r15d
mov word [rsp + 0x30], r15w
mov qword [rax + 0x10], r15
cmp qword [rax + 0x18], 8
jb 0x14000a2ad
mov rax, qword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140004a60
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8d, esi
mov edx, dword [rdi + 0x10]
mov rcx, rbx
call fcn.140009db0
bt esi, 0x1b
jb 0x14000a2e5
test dword [rdi + 0x10], 0x80000
je 0x14000a356
lea rcx, [rsp + 0x40]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000a2f9
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x14000a31d
mov rax, qword [rax + 0x18]
test rax, rax
je 0x14000a31d
lea rcx, [rax + 0x30]
jmp 0x14000a328
mov rcx, qword [rbx + 0xe0]
add rcx, 0x28
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000a337
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140270d40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.14000e14c
mov rcx, rax
call fcn.1401c9048
test rax, rax
jne 0x14000a374
cmp qword [rbx + 0x360], r15
je 0x14000a399
lea rcx, [rsp + 0x40]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000a388
mov rax, qword [rax]
mov r9, rbp
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.1400093f0
test dword [rdi + 0x10], 0x10000000
je 0x14000a3b0
lea rcx, [rbx + 0xb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rcx, [rsp + 0x40]
call fcn.140004af0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401c44c0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000a3d4
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x840
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14000a46c
lea r9, [rsp + 0x20]
mov r8d, 0x800
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14000a463
test dword [rsp + 0x20], 0xfffffff8
jbe 0x14000a463
mov ecx, ebx
lea rdx, [rsi + 0x110]
mov r8d, 0x104
mov rcx, qword [rsp + rcx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x14000a43c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.1401c44c0
lea r11, [rsp + 0x840]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ca68
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
lea rcx, [rbp + 7]
call fcn.1400049d0
lea rcx, [rbp + 7]
call fcn.140004a50
mov edi, 7
mov qword [rax], rdi
lea rcx, [rbp + 7]
call fcn.1400044e0
xor esi, esi
mov word [rbp - 0x39], si
mov qword [rax + 0x10], rsi
cmp qword [rax + 0x18], 8
jb 0x14000cad7
mov rax, qword [rax]
lea rdx, [rbp - 0x39]
mov rcx, rax
call fcn.140004a60
nop
cmp qword [rbx + 0x10], rsi
jne 0x14000cbac
lea rcx, [rbp - 0x19]
call fcn.1400049d0
lea rcx, [rbp - 0x19]
call fcn.140004a50
mov qword [rax], rdi
lea rcx, [rbp - 0x19]
call fcn.1400044e0
mov word [rbp - 0x39], si
mov qword [rax + 0x10], rsi
cmp qword [rax + 0x18], 8
jb 0x14000cb1e
mov rax, qword [rax]
lea rdx, [rbp - 0x39]
mov rcx, rax
call fcn.140004a60
nop
lea rdx, [rbp + 7]
lea rcx, str.RegValues
call fcn.14000e024
lea r8, str.Lock
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x27]
call fcn.14000d428
mov rdi, rax
lea rax, [rbp - 0x19]
cmp rax, rdi
je 0x14000cb76
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x19]
call fcn.140004a70
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.14000c6e0
nop
lea rcx, [rbp + 0x27]
call fcn.140004af0
lea rcx, [rbp - 0x19]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000cb92
mov rax, qword [rax]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x10], rax
lea rcx, [rbp - 0x19]
call fcn.140004af0
mov edx, 0x32
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000cc77
lea r8, str.MappedFile
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.14000d428
nop
lea rcx, [rbp - 0x19]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000cbeb
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xd0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000cc63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
cmp eax, 0xb7
setne dil
mov qword [rsp + 0x20], 0xd0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14000cc63
test edi, edi
je 0x14000cc5d
mov qword [rbp - 0x21], rax
mov rcx, rax
call fcn.140007580
nop
mov rax, qword [rbx + 0x18]
inc dword [rax]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rbp - 0x19]
call fcn.140004af0
mov rbx, qword [rbx + 0x18]
lea rcx, [rbp + 7]
call fcn.140004af0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401c44c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000ccf0
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402bb8e8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
lea rcx, [rbp + 7]
call fcn.1400049d0
lea rcx, [rbp + 7]
call fcn.140004a50
mov edi, 7
mov qword [rax], rdi
lea rcx, [rbp + 7]
call fcn.1400044e0
xor esi, esi
mov word [rbp - 0x39], si
mov qword [rax + 0x10], rsi
cmp qword [rax + 0x18], 8
jb 0x14000cd5f
mov rax, qword [rax]
lea rdx, [rbp - 0x39]
mov rcx, rax
call fcn.140004a60
nop
cmp qword [rbx + 0x10], rsi
jne 0x14000ce34
lea rcx, [rbp - 0x19]
call fcn.1400049d0
lea rcx, [rbp - 0x19]
call fcn.140004a50
mov qword [rax], rdi
lea rcx, [rbp - 0x19]
call fcn.1400044e0
mov word [rbp - 0x39], si
mov qword [rax + 0x10], rsi
cmp qword [rax + 0x18], 8
jb 0x14000cda6
mov rax, qword [rax]
lea rdx, [rbp - 0x39]
mov rcx, rax
call fcn.140004a60
nop
lea rdx, [rbp + 7]
lea rcx, str.ExtMonitor
call fcn.14000e024
lea r8, str.Lock
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x27]
call fcn.14000d428
mov rdi, rax
lea rax, [rbp - 0x19]
cmp rax, rdi
je 0x14000cdfe
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x19]
call fcn.140004a70
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.14000c6e0
nop
lea rcx, [rbp + 0x27]
call fcn.140004af0
lea rcx, [rbp - 0x19]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000ce1a
mov rax, qword [rax]
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x10], rax
lea rcx, [rbp - 0x19]
call fcn.140004af0
mov edx, 0x32
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000cf0c
lea r8, str.MappedFile
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.14000d428
nop
lea rcx, [rbp - 0x19]
call fcn.1400044e0
cmp qword [rax + 0x18], 8
jb 0x14000ce73
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], VarBstrFromDisp
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000cef8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, esi
cmp eax, 0xb7
setne dil
mov qword [rsp + 0x20], VarBstrFromDisp
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14000cef8
test edi, edi
je 0x14000cee5
mov qword [rbp - 0x21], rax
mov rcx, rax
call fcn.140007e78
nop
mov rax, qword [rbx + 0x18]
lea rcx, [rax + 8]
neg rax
sbb rdx, rdx
and rdx, rcx
inc dword [rdx]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rbp - 0x19]
call fcn.140004af0
mov rbx, qword [rbx + 0x18]
lea rcx, [rbp + 7]
call fcn.140004af0
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401c44c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret