joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004f8c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov rax, qword [0x1801533b8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x140]
mov byte [rax + 0x28], 1
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 0x29]
test eax, eax
je 0x18004f937
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdx, [0x180140cf8]
lea rcx, [rsp + 0x20]
call fcn.180052420
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180067050
add rsp, 0x130
pop rdi
ret

Function at 0x180052760
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov rax, qword [0x1801533b8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x140]
mov byte [rax + 0x28], 1
mov rax, qword [rsp + 0x140]
movzx eax, byte [rax + 0x29]
test eax, eax
je 0x1800527d7
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rdx, [0x180140cf8]
lea rcx, [rsp + 0x20]
call fcn.180052420
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180067050
add rsp, 0x130
pop rdi
ret

Function at 0x18005bbe0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18005be00
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18005bce7
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18005bc44
mov rax, qword [0x180153008]
cmp qword [rsp + 0x20], rax
ja 0x18005bc44
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18005bc06
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18005bc73
jmp 0x18005bce7
cmp dword [rsp + 0x50], 0x10000
jne 0x18005bcca
cmp qword [rsp + 0x48], 0x10000
jb 0x18005bcca
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005bcb8
mov rax, qword [rsp + 0x28]
jmp 0x18005bce9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18005bce2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18005be00
mov qword [rsp + 0x20], rax
jmp 0x18005bc06
xor eax, eax
add rsp, 0x68
ret
Function at 0x18005bcf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18005be40
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18005bdf3
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18005bd4b
mov rax, qword [0x180153008]
cmp qword [rsp + 0x20], rax
ja 0x18005bd4b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18005bd0d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18005bd7a
jmp 0x18005bdf3
cmp dword [rsp + 0x50], 0x10000
jne 0x18005bdd1
cmp qword [rsp + 0x48], 0x10000
jb 0x18005bdd1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18005bdbf
mov rax, qword [rsp + 0x28]
jmp 0x18005bdf5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18005bdee
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18005be40
mov qword [rsp + 0x20], rax
jmp 0x18005bd0d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18005be90
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18005c420
mov qword [rsp + 0x28], 0
cmp qword [0x1801583a8], 0
jne 0x18005bed8
cmp qword [0x1801583a0], 0
je 0x18005bed8
mov rax, qword [0x1801583a0]
mov qword [0x1801583a8], rax
cmp qword [0x1801583a8], 0
je 0x18005bf7e
mov rax, qword [0x1801583a8]
cmp qword [rax + 0x10], 0
je 0x18005bf7e
mov rax, qword [0x1801583a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005bf7e
mov rax, qword [0x1801583a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005bf7e
mov rax, qword [0x1801583a8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18005bf44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18005bf4b
xor eax, eax
jmp 0x18005c0f9
mov rax, qword [0x1801583a8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18005c0f9
mov rax, qword [0x1801583a0]
mov qword [0x1801583a8], rax
jmp 0x18005bfa0
mov rax, qword [0x1801583a8]
mov rax, qword [rax + 8]
mov qword [0x1801583a8], rax
cmp qword [0x1801583a8], 0
je 0x18005bfed
cmp qword [0x1801583a8], 0
je 0x18005bfeb
mov rax, qword [0x1801583a8]
cmp qword [rax + 0x10], 0
je 0x18005bfeb
mov rax, qword [0x1801583a8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005bfeb
mov rax, qword [0x1801583a8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005bfeb
jmp 0x18005bf1c
jmp 0x18005bf8e
mov rcx, qword [rsp + 0x60]
call fcn.18005e4b0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18005c100
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18005c0f7
mov rax, qword [rsp + 0x48]
mov qword [0x1801583a8], rax
mov rax, qword [0x1801583a8]
mov dword [rax], 0x52727464
mov rax, qword [0x1801583a8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1801583a8]
mov rcx, qword [0x1801583a0]
mov qword [rax + 8], rcx
mov rax, qword [0x1801583a8]
mov qword [0x1801583a0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801583a8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18005c0a8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18005c0e2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18005c09e
mov rax, qword [0x1801583a8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18005bf1c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18005fbc0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180158430], 0
je 0x18005fbd4
xor eax, eax
jmp 0x18005fe3d
cmp qword [0x180158428], 0
je 0x18005fbea
mov rax, qword [0x180158428]
jmp 0x18005fe3d
mov r8d, 0x48
xor edx, edx
lea rcx, [0x1801583e0]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1801583e0], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x1801583e8], rax
cmp qword [0x1801583e8], 0
jne 0x18005fca3
mov dword [0x180158430], 1
cmp qword [0x1801583e8], 0
je 0x18005fc4f
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1801583f0], 0
mov qword [0x1801583f8], 0
mov qword [0x180158400], 0
mov qword [0x180158408], 0
mov qword [0x180158410], 0
mov qword [0x180158418], 0
mov qword [0x180158420], 0
xor eax, eax
jmp 0x18005fe3d
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801583f0], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801583f8], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180158400], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180158408], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180158410], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180158418], rax
lea rdx, str.SymFromName
mov rcx, qword [0x1801583e8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180158420], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x1801583f0], 0
je 0x18005fdae
cmp qword [0x1801583f8], 0
je 0x18005fdae
cmp qword [0x180158410], 0
je 0x18005fdae
cmp qword [0x180158418], 0
je 0x18005fdae
cmp qword [0x180158420], 0
jne 0x18005fdb3
jmp 0x18005fc2e
lea rcx, [rsp + 0x28]
call qword [0x1801583f0]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18005fdcd
jmp 0x18005fc2e
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x1801583e0]
call qword [0x1801583f8]
test eax, eax
jne 0x18005fde8
jmp 0x18005fc2e
cmp qword [0x180158408], 0
je 0x18005fe28
cmp qword [0x180158400], 0
je 0x18005fe28
call qword [0x180158408]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x180158400]
lea rax, [0x1801583e0]
mov qword [0x180158428], rax
mov rax, qword [0x180158428]
add rsp, 0x38
ret
Function at 0x1800609c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x180060a08
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180060a28
jmp 0x180060ac5
cmp dword [rsp + 0x68], 0x1000
jne 0x180060a4d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x180060a4d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x180060a4f
jmp 0x1800609f3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180060a85
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180060a85
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180060a8a
jmp 0x1800609f3
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x1800609f3
mov rax, qword [rsp + 0x20]
jmp 0x180060ac7
xor eax, eax
add rsp, 0x88
ret

Function at 0x180061080
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x1800610cc
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18006119a
cmp dword [rsp + 0x60], 0x1000
jne 0x1800610f1
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x1800610f1
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x180061103
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18006119a
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18006112b
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18006119a
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180061160
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18006119a
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18006117c
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18006119a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
jmp 0x18006119a
add rsp, 0x78
ret
Function at 0x1800641b0
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 [0x1801533b8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x180064402
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800643f7
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x38]
cmp rax, 0x10
jb 0x180064380
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x44], eax
jne 0x180064380
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
je 0x180064380
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x1800642c8
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 [0x180158450]
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 0x1800642c3
mov dword [rsp + 0x20], 0
jmp 0x18006439f
jmp 0x18006434b
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x18006434b
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 eax, dword [rax + 8]
shl rax, 2
mov r9, rax
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180158450]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x18006433b
mov dword [rsp + 0x20], 0
jmp 0x18006439f
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 + 0x28]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180064231
cmp dword [rsp + 0x20], 0
je 0x1800643b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800643b9
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x1800643f7
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
je 0x1800643f7
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180158450]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x90]
mov qword [rax], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x180105940]
call fcn.1800683e0
mov eax, edi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180067050
add rsp, 0x80
pop rdi
ret
Function at 0x180064440
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 dword [rsp + 0x20], 0
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.1800641b0
test eax, eax
jne 0x18006449a
mov dword [rsp + 0x20], 9
jmp 0x18006451c
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x18006451c
mov dword [rsp + 0x24], 0
jmp 0x1800644b9
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x24], eax
jae 0x18006451c
mov eax, dword [rsp + 0x24]
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 0x18006451a
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.180063f90
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800644af
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x180064530
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1800645c0
mov dword [rsp + 0x20], 0
jmp 0x180064559
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 0x1800645a9
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 0x1800645a7
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 0x18006454f
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180158450]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x1800645d0
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 [0x1801667e0]
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 0x180064656
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 0x18006467f
mov eax, 0xa
jmp 0x1800647b9
cmp dword [rsp + 0x88], 0
je 0x1800646ed
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 0x1800646eb
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 0x180064739
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x18006471d
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 0x180064739
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, [0x1801059a0]
call fcn.1800683e0
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180065c90
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 0x180065cea
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x180065cea
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x180065cea
xor eax, eax
jmp 0x180065d31
mov dword [rsp], 1
jmp 0x180065cfb
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x180065d2c
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 0x180065d2a
xor eax, eax
jmp 0x180065d31
jmp 0x180065cf3
mov eax, 1
add rsp, 0x10
pop rdi
ret