joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d101442
Capabilities:
Write file on windows

Disassembly:
push rdi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rbx, rcx
mov r10, rdx
je 0x6d10146b
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea r8, [rdx - 1]
mov rcx, r10
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rdi
jmp fcn.6d12d7c0

Function at 0x6d1032d7
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, rdx
mov rdi, rcx
mov rbx, rdx
mov ecx, 4
cqo
idiv rcx
mov rcx, qword [0x6d13c440]
lea rsi, [rax*4]
call fcn.6d12db50
xor ecx, ecx
xor r10d, r10d
mov r9b, byte [rax]
cmp rsi, rcx
jg 0x6d103328
mov rax, rbx
mov r8d, 4
add rdi, rcx
cqo
idiv r8
xor r8d, r8d
jmp 0x6d103363
mov edx, dword [rdi + rcx]
add rcx, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
test r9b, r9b
jne 0x6d1033b3
imul edx, edx, 0x1b873593
xor edx, r10d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r10d, [rdx - 0x19ab949c]
jmp 0x6d10330d
dec rdx
shl r8d, 8
movzx eax, byte [rdi + rdx]
or r8d, eax
test rdx, rdx
jg 0x6d103355
imul ecx, r8d, 0xcc9e2d51
xor eax, eax
rol ecx, 0xf
test r9b, r9b
jne 0x6d1033b5
imul r8d, ecx, 0x1b873593
mov edx, r10d
xor edx, ebx
xor r8d, edx
mov eax, r8d
shr eax, 0x10
xor r8d, eax
imul r8d, r8d, 0x85ebca6b
mov eax, r8d
shr eax, 0xd
xor eax, r8d
imul eax, eax, 0xc2b2ae35
mov r8d, eax
shr r8d, 0x10
xor eax, r8d
jmp 0x6d1033b5
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rcx + 8]
mov rdx, qword [rcx]
xor ecx, ecx
test rax, rax
je 0x6d1033cf
lea rcx, [rax + 8]
jmp 0x6d1032d7

Function at 0x6d1033bd
Capabilities:
Hash data using murmur3

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, rdx
mov rdi, rcx
mov rbx, rdx
mov ecx, 4
cqo
idiv rcx
mov rcx, qword [0x6d13c440]
lea rsi, [rax*4]
call fcn.6d12db50
xor ecx, ecx
xor r10d, r10d
mov r9b, byte [rax]
cmp rsi, rcx
jg 0x6d103328
mov rax, rbx
mov r8d, 4
add rdi, rcx
cqo
idiv r8
xor r8d, r8d
jmp 0x6d103363
mov edx, dword [rdi + rcx]
add rcx, 4
imul edx, edx, 0xcc9e2d51
rol edx, 0xf
test r9b, r9b
jne 0x6d1033b3
imul edx, edx, 0x1b873593
xor edx, r10d
rol edx, 0xd
lea edx, [rdx + rdx*4]
lea r10d, [rdx - 0x19ab949c]
jmp 0x6d10330d
dec rdx
shl r8d, 8
movzx eax, byte [rdi + rdx]
or r8d, eax
test rdx, rdx
jg 0x6d103355
imul ecx, r8d, 0xcc9e2d51
xor eax, eax
rol ecx, 0xf
test r9b, r9b
jne 0x6d1033b5
imul r8d, ecx, 0x1b873593
mov edx, r10d
xor edx, ebx
xor r8d, edx
mov eax, r8d
shr eax, 0x10
xor r8d, eax
imul r8d, r8d, 0x85ebca6b
mov eax, r8d
shr eax, 0xd
xor eax, r8d
imul eax, eax, 0xc2b2ae35
mov r8d, eax
shr r8d, 0x10
xor eax, r8d
jmp 0x6d1033b5
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rcx + 8]
mov rdx, qword [rcx]
xor ecx, ecx
test rax, rax
je 0x6d1033cf
lea rcx, [rax + 8]
jmp 0x6d1032d7
Function at 0x6d1071a9
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [fcn.6d12d9d0]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.6d12d7c0

Function at 0x6d10ae41
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r12, [rsp + 0x20]
mov rdi, rcx
mov rbp, rdx
lea rcx, [0x6d1464e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [fcn.6d12d9d0]
cmp rbx, rbp
mov ecx, 1
jl 0x6d10aeb9
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x6d135001]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
call fcn.6d12d7c0
lea rcx, [0x6d1464e0]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rsi
mov rdx, rbx
xor r8d, r8d
shl rdx, 4
mov rcx, rax
movups xmm0, xmmword [rdi + rdx]
mov rdx, r12
movaps xmmword [rsp + 0x20], xmm0
call fcn.6d10ad89
mov rcx, qword [0x6d13c440]
call fcn.6d12db50
cmp byte [rax], 0
jne 0x6d10aef2
inc rbx
jmp 0x6d10ae6c
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x6d10b74a
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x6d1464b0], 0
jne 0x6d10b765
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.6d1071a9
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.6d10b6c9
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x6d1464b0]
test rbx, rbx
je 0x6d10b79e
mov eax, 1
shl rax, 0x3e
test qword [rbx], rax
jne 0x6d10b79e
mov rcx, rbx
call fcn.6d12d7a0
mov rcx, qword [0x6d13c440]
call fcn.6d12db50
cmp byte [rax], 0
je 0x6d10b7bd
mov byte [rax], 0
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.6d1235f9
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x6d10f249
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, rdx
mov edx, 1
mov r9, rbx
mov rsi, r8
call sub.msvcrt.dll_fread
cmp rsi, rax
je 0x6d10f27c
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.6d10f0cd
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x6d1112db
Capabilities:
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, 1
mov rsi, rcx
mov rdi, rdx
xor ecx, ecx
cpuid
mov r12d, ecx
mov rcx, qword [0x6d13c440]
call fcn.6d12db50
cmp byte [rax], 0
mov rbp, rax
je 0x6d111312
xor eax, eax
jmp 0x6d11142b
bt r12d, 0x13
jae 0x6d111345
and r12b, 2
je 0x6d111345
cmp rdi, 0x3f
jle 0x6d111345
mov rbx, rdi
or r8d, 0xffffffff
mov rcx, rsi
and rbx, 0xfffffffffffffff0
mov rdx, rbx
call fcn.6d110f1a
cmp byte [rbp], 0
not eax
je 0x6d111349
jmp 0x6d11130b
xor ebx, ebx
xor eax, eax
cmp rbx, rdi
jge 0x6d11142b
lea rcx, [rsi + rbx]
mov rdx, rdi
not eax
lea r10, [0x6d1379a0]
sub rdx, rbx
mov bl, byte [rbp]
xor esi, esi
mov r11, rdx
mov r12, rdx
and r11, 0xfffffffffffffff8
cmp r11, rsi
jne 0x6d111385
lea r9, [0x6d1379a0]
jmp 0x6d111420
test bl, bl
mov r8d, dword [rcx + rsi]
jne 0x6d11142b
xor eax, r8d
mov r8d, dword [rcx + rsi + 4]
add rsi, 8
mov edi, r8d
movzx r9d, r8b
mov edx, r8d
shr edi, 0x18
mov r9d, dword [r10 + r9*4 + 0xc00]
shr r8d, 0x10
xor r9d, dword [r10 + rdi*4]
movzx edi, al
movzx r8d, r8b
xor r9d, dword [r10 + rdi*4 + 0x1c00]
mov edi, eax
shr edi, 0x18
xor r9d, dword [r10 + rdi*4 + 0x1000]
movzx edi, dh
xor r9d, dword [r10 + rdi*4 + 0x800]
movzx edi, ah
shr eax, 0x10
xor r9d, dword [r10 + r8*4 + 0x400]
movzx r8d, al
xor r9d, dword [r10 + rdi*4 + 0x1800]
mov eax, dword [r10 + r8*4 + 0x1400]
xor eax, r9d
jmp 0x6d111374
mov r8b, byte [rcx + r11]
inc r11
xor r8d, eax
shr eax, 8
movzx r8d, r8b
xor eax, dword [r9 + r8*4]
cmp r12, r11
jg 0x6d11140b
test bl, bl
jne 0x6d11142b
not eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x6d128330
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d145624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d1284b8
mov rax, qword [0x6d145628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d12837c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d128405
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d128360
mov rcx, rbx
call fcn.6d128fd0
test rax, rax
mov r12, rax
je 0x6d1284ed
mov rax, qword [0x6d145628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.6d129100
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d145628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d1284d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d1283fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d128460
add dword [0x6d145624], 1
cmp edi, 8
jae 0x6d128433
test dil, 4
jne 0x6d1284a4
test edi, edi
je 0x6d128428
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d1284bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d128428
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d12844c
jmp 0x6d128428
add rsi, qword [0x6d145628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d1283fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6d1328f0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d128428
xor esi, esi
jmp 0x6d128387
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d128428
mov rax, qword [0x6d145628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.6d1328f0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.6d1328f0
nop
nop dword [rax]

Function at 0x6d128c40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d145900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d1458e0]
test rbx, rbx
je 0x6d128c94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d128c8b
test rsi, rsi
je 0x6d128c8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d128c70
lea rcx, [0x6d145900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d128fd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d13c460]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d12903d
mov rcx, r8
call fcn.6d128eb0
test eax, eax
je 0x6d12903d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d12903d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d129034
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d12903f
add rax, 0x28
cmp rax, r9
jne 0x6d129020
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d12e460
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x6d1341a8], eax
je 0x6d12e47a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x6d12e980
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x6d12e9a3
call fcn.6d1316c0
cmp eax, 1
je 0x6d12e9ae
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x6d12ea25
mov eax, 0x28
jmp 0x6d12ea0a
add rax, 1
cmp rax, 0x6b
je 0x6d12ea17
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x6d12ea00
cmp eax, 0x6a
jne 0x6d12ea2a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x6d12ea17
Function at 0x6d12ead0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x6d1463c0], 1
je 0x6d12eae6
call fcn.6d12ea40
mov ecx, dword [0x6d1341a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x6d12eb10
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.6d12e8c0
cmp qword [0x6d149040], 0
mov rsi, rax
je 0x6d12eafa
test rax, rax
je 0x6d12eafa
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.6d12e980
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x6d12ec00
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x6d1341a8]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6d12ec00
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x6d1328f0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x6d1013a0]
jmp fcn.6d101380
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.6d12d9d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.6d12d9d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x6d101390
Function at 0x180002820
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002851
xor eax, eax
lea r8, [0x1800021a0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800044e0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x18000e3c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x1800046bb
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800046b0
mov eax, dword [rsp + 0x38]
cmp rax, 0x10
jb 0x180004691
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x44], eax
jne 0x180004691
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
je 0x180004691
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x1800045dd
mov rax, qword [rsp + 0x90]
mov dword [rax + 8], 0x80
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x18000e4f8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x1800045db
jmp 0x1800046b0
jmp 0x18000465c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x18000465c
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl eax, 1
mov eax, eax
shl rax, 2
mov r9, rax
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18000e4f8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x180004634
jmp 0x1800046b0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x40]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180004551
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsp
lea rdx, [0x18000a540]
call fcn.180007a18
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800072c0
add rsp, 0x80
pop rdi
ret
Function at 0x1800046f0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.1800044e0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1800047b3
mov dword [rsp + 0x20], 0
jmp 0x180004750
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1800047b3
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800047b1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800042c0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180004746
add rsp, 0x30
pop rdi
ret

Function at 0x1800047c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x180004850
mov dword [rsp + 0x20], 0
jmp 0x1800047e9
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x180004839
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004837
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800047df
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18000e4f8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x180004860
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18000eb40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800048e6
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18000490f
mov eax, 0xa
jmp 0x180004a49
cmp dword [rsp + 0x88], 0
je 0x18000497d
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18000497b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x1800049c9
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800049ad
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1800049c9
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x18000a5a0]
call fcn.180007a18
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180005f00
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x180005f5a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x180005f5a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x180005f5a
xor eax, eax
jmp 0x180005fa1
mov dword [rsp], 1
jmp 0x180005f6b
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180005f9c
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x180005f9a
xor eax, eax
jmp 0x180005fa1
jmp 0x180005f63
mov eax, 1
add rsp, 0x10
pop rdi
ret