joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062d90
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1800e9040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov edi, r9d
mov esi, r8d
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1800f93c0]
jne 0x180062f1d
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x180062f1a
xor eax, eax
lea rcx, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x2c], eax
mov r8d, 0x114
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rcx, [rbp + 0x5c]
xor edx, edx
mov dword [rbp + 0x54], eax
mov r8d, 0x134
call sub.VCRUNTIME140.dll_memset
cmp byte [0x1800ec460], 0
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rbp + 0x50], 2
mov dword [rbp + 0x58], esi
mov dword [rsp + 0x28], 2
jne 0x180062e4c
call fcn.18005e6b0
lea rcx, [rsp + 0x20]
call qword [0x1800f3978]
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x180062ed6
xor eax, eax
lea rcx, [rsp + 0x3c]
xor edx, edx
mov dword [rsp + 0x2c], eax
mov r8d, 0x114
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x54]
mov r8d, 0x13c
call sub.VCRUNTIME140.dll_memset
cmp byte [0x1800ec460], 0
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
mov dword [rbp + 0x50], 2
mov dword [rsp + 0x28], 1
jne 0x180062ec1
call fcn.18005e6b0
lea rcx, [rsp + 0x20]
call qword [0x1800f39a0]
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0
je 0x180062f1a
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180062f3f
cmp byte [0x1800f9430], 0
je 0x180062f0b
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
imul rcx, qword [rbp + 0x1e0], 0x64
mov byte [0x1800f9430], 0
add rax, rcx
mov qword [0x1800f9428], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp rax, qword [0x1800f9428]
jbe 0x180062f1d
mov byte [rbx], 1
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180094b70
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov byte [0x1800f9430], 1
jmp 0x180062f1d
Function at 0x1800684f0
Capabilities:
Query environment variable
Set console window title

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rsi, rax
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x180068520
call fcn.180094184
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x20]
mov edx, eax
mov rcx, rdi
call fcn.180017670
nop
lea rcx, [rdi + 0x20]
call fcn.18001c9b0
nop
lea rcx, [rdi + 0x128]
call fcn.18001c9b0
nop
mov rcx, rdi
call fcn.18001d510
mov rcx, rdi
call fcn.180068360
test al, al
jne 0x180068594
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x180068580
mov rcx, qword [rdi]
call fcn.1800943e4
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x180068720
call fcn.180094184
lea rcx, str.Log.txt
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 7
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180017670
nop
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1800178c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180068613
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006860e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006860e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800950f0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1800678f0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x18006862b
mov rax, qword [rax]
mov r8d, 0x12
mov rdx, rax
lea rcx, [rdi + 0x128]
call fcn.180069860
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x180068681
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006867c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006867c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800950f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
jne 0x180068699
call qword [sym.imp.KERNEL32.dll_AllocConsole]
cmp qword [r14 + 0x18], 0xf
jbe 0x1800686a3
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov r8d, 2
lea rdx, str.CONOUT_
lea rcx, [rdi + 0x20]
call fcn.180069860
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800d04f8]
lea rdx, str.CONOUT_
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
shr rdx, 0x20
mov r8, rdi
lea rcx, str.create_directory
call fcn.180068290
int3
Function at 0x1800692b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x1800e9094], 0
je 0x1800692fa
mov qword [rsp + 0x30], 0x3e8
nop word [rax + rax]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800692e7
mov byte [0x1800e9094], 0
lea rcx, [rsp + 0x30]
call fcn.180069c50
cmp byte [0x1800e9094], 0
jne 0x1800692d0
add rsp, 0x28
ret

Function at 0x180069790
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
mov qword [0x1800f94e0], rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x1800697d9
mov rax, qword [0x1800f94d8]
lea r8, [0x180069720]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1800f94e8], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180069d20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800e9040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.180094b90
lea rcx, [0x180068c90]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18006a330]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x180069d9d
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180094b70
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18006a730
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800e9040]
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 0x18006a77f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800f9b20]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18006a7bd
cmp rsi, r14
jb 0x18006a7b5
cmp rsi, r15
jae 0x18006a7b5
cmp qword [rsi + 8], 0
jne 0x18006a987
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18006a7a0
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 0x18006a852
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 0x18006a849
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 0x18006a849
cmp dword [rsp + 0x40], 0x10000
je 0x18006a8cb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18006a849
sub rbx, rbp
cmp rbx, r14
jae 0x18006a810
test rsi, rsi
jne 0x18006a930
cmp rdi, r15
ja 0x18006a96f
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 0x18006a96f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18006a96f
cmp dword [rsp + 0x40], 0x10000
je 0x18006a901
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 0x18006a882
jmp 0x18006a96f
test rbx, rbx
je 0x18006a849
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 0x18006a930
cmp rbx, r14
jae 0x18006a7f0
jmp 0x18006a852
test rdi, rdi
je 0x18006a96f
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 0x18006a930
cmp rdi, r15
jbe 0x18006a860
jmp 0x18006a96f
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 0x18006a940
mov rax, qword [0x1800f9b20]
mov qword [rsi], rax
mov qword [0x1800f9b20], 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.180094b70
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18006b3a0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800e9040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18006b4ef
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18006b4e6
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x18006b49c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18006b49c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18006b49c
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18006b45d
mov rcx, qword [0x1800f9250]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x18006b4c5
lea rbx, [rdi + 0xc]
jmp 0x18006b491
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x18006b491
mov rcx, qword [0x1800f9250]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18006b4c5
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18006b403
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18006b4e1
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x18006b4e1
mov rcx, qword [0x1800f9250]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180094b70
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18006b510
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.18006b3a0
test eax, eax
jne 0x18006b557
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x18006b5ce
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18006b5b6
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18006b5aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18006b1f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18006b570
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18006b5f0
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 [0x1800e9040]
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 [0x1800f9b10]
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 0x18006b663
mov eax, 0xa
jmp 0x18006b6f6
test esi, esi
je 0x18006b685
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 0x18006b6a8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18006b6a8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18006b6a1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18006b6a8
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.180094b70
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18006b720
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x1800f9b1c]
xor ebx, ebx
test edx, edx
je 0x18006b74f
mov rcx, qword [0x1800f9b10]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
jne 0x18006b757
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x18006b740
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18006b74f
xor r8d, r8d
mov qword [rsp + 0x50], rdi
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.18006b510
mov edi, eax
test eax, eax
jne 0x18006b834
mov r8d, dword [0x1800f9b1c]
cmp ebx, r8d
jae 0x18006b7c1
nop dword [rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800f9b10]
test byte [rdx + rcx + 0x20], 2
je 0x18006b7ba
xor edx, edx
mov ecx, ebx
call fcn.18006b5f0
mov edi, eax
test eax, eax
jne 0x18006b7c1
mov r8d, dword [0x1800f9b1c]
inc ebx
cmp ebx, r8d
jb 0x18006b790
cmp qword [rsp + 0x20], 0
je 0x18006b832
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18006b81e
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18006b80a
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 0x18006b7e2
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800f9250]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x18006bc10
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
xor r12d, r12d
mov rdi, rcx
mov r14d, r12d
mov ebx, r12d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800f9248], esi
je 0x18006bc61
cmp rbx, 0x20
jae 0x18006bc4a
xor ecx, ecx
jmp 0x18006bc4c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f9248], esi
jne 0x18006bc40
cmp qword [0x1800f9250], r12
mov qword [rsp + 0x58], r13
je 0x18006bdf8
mov ecx, dword [0x1800f9b1c]
mov ebx, r12d
test ecx, ecx
je 0x18006bc9f
mov rdx, qword [0x1800f9b10]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x18006bcaa
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18006bc90
mov r14d, 4
jmp 0x18006bdfe
cmp ebx, 0xffffffff
je 0x18006bc9f
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18006bd5d
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18006b510
mov r14d, eax
test eax, eax
jne 0x18006bdfe
xor edx, edx
mov ecx, ebx
call fcn.18006b5f0
mov r14d, eax
cmp qword [rsp + 0x20], r12
je 0x18006bd4d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18006bd39
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18006bd2a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x18006bd02
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800f9250]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x18006bdfe
mov rdx, qword [0x1800f9b10]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18006a9b0
mov edx, dword [0x1800f9b1c]
dec edx
cmp ebx, edx
jae 0x18006bdac
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1800f9b10]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1800f9b18]
mov eax, ecx
mov dword [0x1800f9b1c], edx
shr eax, 1
cmp eax, 0x20
jb 0x18006bdfe
cmp eax, edx
jb 0x18006bdfe
mov r8, qword [0x1800f9b10]
mov eax, ecx
mov rcx, qword [0x1800f9250]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18006bdfe
shr dword [0x1800f9b18], 1
mov qword [0x1800f9b10], rax
jmp 0x18006bdfe
mov r14d, 2
xchg dword [0x1800f9248], r12d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x18006be30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov esi, edx
mov ebp, edi
mov ebx, edi
xor eax, eax
mov r14d, 1
lock cmpxchg dword [0x1800f9248], r14d
je 0x18006be88
cmp rbx, 0x20
jae 0x18006be6f
xor ecx, ecx
jmp 0x18006be72
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f9248], r14d
jne 0x18006be65
cmp qword [0x1800f9250], rdi
je 0x18006becb
cmp dword [0x1800f9b1c], edi
mov r8d, edi
jbe 0x18006bed0
shl sil, 2
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x1800f9b10]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, sil
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x1800f9b1c]
jb 0x18006bea0
jmp 0x18006bed0
mov ebp, 2
xchg dword [0x1800f9248], edi
mov rdi, qword [rsp + 0x48]
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x18006bf00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1800f9248], edi
je 0x18006bf51
nop
cmp rbx, 0x20
jae 0x18006bf3a
xor ecx, ecx
jmp 0x18006bf3c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800f9248], edi
jne 0x18006bf30
cmp qword [0x1800f9250], rbp
je 0x18006c07d
mov r8d, dword [0x1800f9b1c]
mov ebx, r15d
test r8d, r8d
je 0x18006c082
mov rdx, qword [0x1800f9b10]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x18006bf9c
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x18006bf80
jmp 0x18006c082
cmp ebx, 0xffffffff
je 0x18006c082
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.18006b510
mov ebp, eax
test eax, eax
jne 0x18006c082
mov r8d, dword [0x1800f9b1c]
cmp ebx, r8d
jae 0x18006c014
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800f9b10]
movzx r9d, byte [rdx + rcx + 0x20]
movzx ecx, r9b
shr cl, 1
xor cl, r9b
test cl, 2
je 0x18006c00d
mov edx, r9d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.18006b5f0
mov ebp, eax
test eax, eax
jne 0x18006c014
mov r8d, dword [0x1800f9b1c]
inc ebx
cmp ebx, r8d
jb 0x18006bfd0
cmp qword [rsp + 0x20], r15
je 0x18006c082
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18006c067
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18006c058
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18006c030
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800f9250]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18006c082
mov ebp, 2
xchg dword [0x1800f9248], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18007e050
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800e9040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
xor r15d, r15d
lea rbx, [rcx + 0xc8]
mov rcx, qword [rcx + 0xe0]
mov qword [rsp + 0x38], rcx
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx]
sar rax, 4
cmp rcx, rax
jbe 0x18007e0be
movabs rax, 0xfffffffffffffff
cmp rcx, rax
ja 0x18007e1af
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.18007eb20
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
sar rcx, 4
mov rax, qword [rbp + 0xe0]
cmp rcx, rax
jae 0x18007e17a
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx]
sar rdi, 4
mov rax, qword [rbp + 0xe0]
cmp rdi, rax
jae 0x18007e17a
mov qword [rsp + 0x38], rbp
lea r12, [0x18007e430]
mov qword [rsp + 0x30], r12
mov rsi, qword [rbx + 8]
cmp rsi, qword [rbx + 0x10]
je 0x18007e156
mov ecx, 0x10
call fcn.180094b90
mov qword [rax], rbp
mov qword [rax + 8], r12
mov qword [rsp + 0x40], rax
lea r14, [rsi + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18007f120]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi], rax
test rax, rax
je 0x18007e1a0
add qword [rbx + 8], 0x10
jmp 0x18007e16b
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call fcn.18007eea0
inc rdi
mov rax, qword [rbp + 0xe0]
cmp rdi, rax
jb 0x18007e105
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180094b70
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov dword [r14], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.180007f50
int3