joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180016e10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp edx, 1
jne 0x180016e55
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebx, ebx
lea r8, [0x18000e980]
mov qword [rsp + 0x28], rbx
mov r9, rdi
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
jne 0x180016fcc
cmp byte [0x18007cce4], dl
je 0x180016fbf
xor ebx, ebx
mov qword [rsp + 0x40], rsi
cmp dword [0x18007d370], ebx
je 0x180016e99
xor ecx, ecx
call fcn.18005b210
mov rcx, qword [0x18007d368]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [0x18007d368], rbx
mov dword [0x18007d370], ebx
mov rsi, qword [0x18007ce10]
test rsi, rsi
je 0x180016eae
mov rdi, qword [rsi + 0xa0]
jmp 0x180016eb1
mov rdi, rbx
call fcn.180045540
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180016ec5
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180016ed3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180016ee2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rax, qword [0x18007ce10]
mov qword [rsi + 0x90], rbx
mov qword [rsi + 0xa0], rbx
test rax, rax
je 0x180016f02
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x18007ce10]
test rax, rax
je 0x180016f20
mov rdi, qword [rax + 0x98]
jmp 0x180016f23
mov rdi, rbx
mov rcx, qword [rdi + 0x30]
lea rsi, [rax + 8]
test rcx, rcx
je 0x180016f3d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x18007ce10]
mov qword [rsi + 0x80], rbx
mov qword [rsi + 0x90], rbx
mov rsi, qword [rsp + 0x40]
test rax, rax
je 0x180016f5b
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [0x18007ce10]
mov qword [0x18007ce10], rdi
call fcn.18001e910
mov qword [0x18007ce10], rbx
test rdi, rdi
je 0x180016fa6
mov rcx, rdi
call fcn.1800340e0
mov rax, qword [0x18007ce10]
test rax, rax
je 0x180016f9d
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x18007cdf0]
mov edx, 0xfffffffc
mov rcx, qword [0x18007ccd8]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [0x18007ccc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x18001b950
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18001b9ad
lea rbx, [0x180068dc0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18001b994
cmp r10, 2
jb 0x18001b994
cmp byte [r9], r8b
jne 0x18001b994
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x18001b970
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001b9ef
lea rbx, [0x180068dc0]
cmp r8b, 0x23
jne 0x18001b9d3
cmp byte [r9], r8b
jne 0x18001b9d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x18001b9c0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18001bb30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18001bb4a
mov qword [r8], 0
lea rdx, [0x180068944]
call fcn.18001ba00
mov rbx, rax
test rax, rax
jne 0x18001bb6a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x18001bc41
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001bc41
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18001bc41
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001bc41
cmp rdi, 0xffffffffffffffff
je 0x18001bc41
mov rax, qword [0x18007ce10]
test rax, rax
je 0x18001bbde
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18001bc41
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18001bc2e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18007ce10]
test rax, rax
je 0x18001bc23
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18001bc4a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18001bc3c
mov qword [r14], rdi
mov rax, rsi
jmp 0x18001bc4c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18001f8a0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x180068dc0]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x18001f936
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.180032b30
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18001f940
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf8]
lea r9, [0x180068dc0]
movss xmm2, dword [rcx + 0x110]
movss xmm3, dword [rcx + 0x114]
movsxd rcx, dword [rcx + 0xf0]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x180023450
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800234a0
lea r11, [0x180068dc0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180023483
cmp byte [r8], r9b
jne 0x180023483
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180023470
mov rcx, qword [0x18007ce10]
not eax
movsxd rdx, dword [rcx + 0x3eb0]
mov r9, qword [rcx + 0x3eb8]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180023501
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x1800234f9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x1800234fc
mov rdx, r8
test rdx, rdx
jne 0x1800234d0
cmp r9, r10
je 0x180023510
cmp dword [r9], eax
jne 0x180023510
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x180031330
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c60], 0
lea rbx, [rcx + 0x5c68]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1800313d7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18003138a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180033c50
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18001c070
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c60]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c70]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18007cce5]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1800313df
mov rcx, rbx
call fcn.18001c070
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180031860
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18007ce10]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800318c3
mov qword [rsp], rbx
lea rbx, [0x180068dc0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800318a3
cmp byte [r8], r9b
jne 0x1800318a3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180031890
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5bd8]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x1800318f7
mov r10, qword [r10 + 0x5be0]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x1800318fe
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x1800318e4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x180053c30
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x180053cbc
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180053c90
lea r11, [0x180068dc0]
nop
cmp r9b, 0x23
jne 0x180053c73
cmp byte [r8], r9b
jne 0x180053c73
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180053c60
mov rcx, qword [0x18007ce10]
not eax
cmp dword [rcx + 0x3f30], eax
jne 0x180053ca7
mov dword [rcx + 0x3f34], eax
cmp dword [rcx + 0x3f60], eax
jne 0x180053d19
mov byte [rcx + 0x3f64], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18007ce10]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x3ed0]
movsxd rcx, dword [rbx + 0xf0]
mov rax, qword [rbx + 0xf8]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, rdi
call fcn.18001b950
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x3f18], eax
jne 0x180053d12
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.180032b30
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180056600
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18007b3c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, rcx
mov ecx, dword [0x18007cc1c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18007d438], ecx
jle 0x1800566a6
lea rcx, [0x18007d438]
call fcn.18005f0d0
cmp dword [0x18007d438], 0xffffffff
jne 0x1800566a6
xorps xmm0, xmm0
movdqu xmmword [0x18007d428], xmm0
mov ecx, 0x48
call fcn.18005eb50
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x18007d428], rax
lea rcx, [0x180063130]
call fcn.18005eef4
nop
lea rcx, [0x18007d438]
call fcn.18005f070
cmp byte [0x18007d3a9], 0
jne 0x180056788
mov rax, qword [0x18007ce20]
mov rbx, qword [rax]
movsxd rax, dword [rax + 8]
lea rdi, [rbx + rax*8]
cmp rbx, rdi
je 0x180056781
mov rbp, qword [rbx]
test rbp, rbp
je 0x180056771
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1800561e0
nop
lea rcx, [rsp + 0x40]
mov rsi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x58]
cmp r14, 0x10
cmovae rcx, rsi
mov qword [rsp + 0x20], 5
lea r9, str.Class
mov rdx, qword [rsp + 0x50]
call fcn.180005010
test rax, rax
jne 0x18005673e
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.180056b40
mov rcx, qword [rax]
mov qword [rcx + 0x40], rbp
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x40]
cmp r14, 0x10
jb 0x180056771
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180056769
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005677a
mov rcx, rsi
call fcn.18005ef14
add rbx, 8
jmp 0x1800566c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov byte [0x18007d3a9], 1
mov r14, qword [0x18007d428]
mov rbx, qword [r14 + 8]
mov rsi, r14
cmp byte [rbx + 0x19], 0
jne 0x1800567ef
mov rbp, qword [r15 + 0x10]
mov r12, qword [r15 + 0x18]
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbx + 0x20]
mov rdx, r15
cmp r12, 0x10
jb 0x1800567c0
mov rdx, qword [r15]
mov rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x1800567ce
mov rcx, qword [rcx]
mov r8, rdi
cmp rbp, rdi
cmovb r8, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x180056823
js 0x180056828
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x1800567b0
cmp byte [rsi + 0x19], 0
jne 0x180056805
lea r8, [rsi + 0x20]
mov rdx, r15
call fcn.1800163c0
test al, al
je 0x180056808
mov rsi, r14
cmp rsi, r14
je 0x18005682e
mov r8, r15
lea rdx, [rsp + 0x30]
call fcn.180056b40
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
jmp 0x180056830
cmp rdi, rbp
jae 0x1800567e3
mov rbx, qword [rbx + 0x10]
jmp 0x1800567e9
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18005eb30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180057150
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.180057370
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180057257
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800571b4
mov rax, qword [0x18007b008]
cmp qword [rsp + 0x20], rax
ja 0x1800571b4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180057176
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 0x1800571e3
jmp 0x180057257
cmp dword [rsp + 0x50], 0x10000
jne 0x18005723a
cmp qword [rsp + 0x48], 0x10000
jb 0x18005723a
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 0x180057228
mov rax, qword [rsp + 0x28]
jmp 0x180057259
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180057252
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180057370
mov qword [rsp + 0x20], rax
jmp 0x180057176
xor eax, eax
add rsp, 0x68
ret

Function at 0x180057260
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.1800573b0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180057363
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800572bb
mov rax, qword [0x18007b008]
cmp qword [rsp + 0x20], rax
ja 0x1800572bb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18005727d
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 0x1800572ea
jmp 0x180057363
cmp dword [rsp + 0x50], 0x10000
jne 0x180057341
cmp qword [rsp + 0x48], 0x10000
jb 0x180057341
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 0x18005732f
mov rax, qword [rsp + 0x28]
jmp 0x180057365
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18005735e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800573b0
mov qword [rsp + 0x20], rax
jmp 0x18005727d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180057400
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.180057990
mov qword [rsp + 0x28], 0
cmp qword [0x18007c5b8], 0
jne 0x180057448
cmp qword [0x18007c5b0], 0
je 0x180057448
mov rax, qword [0x18007c5b0]
mov qword [0x18007c5b8], rax
cmp qword [0x18007c5b8], 0
je 0x1800574ee
mov rax, qword [0x18007c5b8]
cmp qword [rax + 0x10], 0
je 0x1800574ee
mov rax, qword [0x18007c5b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800574ee
mov rax, qword [0x18007c5b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800574ee
mov rax, qword [0x18007c5b8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800574b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800574bb
xor eax, eax
jmp 0x180057669
mov rax, qword [0x18007c5b8]
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 0x180057669
mov rax, qword [0x18007c5b0]
mov qword [0x18007c5b8], rax
jmp 0x180057510
mov rax, qword [0x18007c5b8]
mov rax, qword [rax + 8]
mov qword [0x18007c5b8], rax
cmp qword [0x18007c5b8], 0
je 0x18005755d
cmp qword [0x18007c5b8], 0
je 0x18005755b
mov rax, qword [0x18007c5b8]
cmp qword [rax + 0x10], 0
je 0x18005755b
mov rax, qword [0x18007c5b8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18005755b
mov rax, qword [0x18007c5b8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18005755b
jmp 0x18005748c
jmp 0x1800574fe
mov rcx, qword [rsp + 0x60]
call fcn.180059810
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.180057670
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180057667
mov rax, qword [rsp + 0x48]
mov qword [0x18007c5b8], rax
mov rax, qword [0x18007c5b8]
mov dword [rax], 0x52727464
mov rax, qword [0x18007c5b8]
mov qword [rax + 0x10], 0
mov rax, qword [0x18007c5b8]
mov rcx, qword [0x18007c5b0]
mov qword [rax + 8], rcx
mov rax, qword [0x18007c5b8]
mov qword [0x18007c5b0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18007c5b8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180057618
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180057652
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 0x18005760e
mov rax, qword [0x18007c5b8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18005748c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18005bae0
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 [0x18007b3c0]
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 0x18005bcbb
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18005bcb0
mov eax, dword [rsp + 0x38]
cmp rax, 0x10
jb 0x18005bc91
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x44], eax
jne 0x18005bc91
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x40], eax
je 0x18005bc91
mov rax, qword [rsp + 0x90]
cmp qword [rax], 0
jne 0x18005bbdd
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 [0x18007c5f0]
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 0x18005bbdb
jmp 0x18005bcb0
jmp 0x18005bc5c
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x18005bc5c
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 [0x18007c5f0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x18005bc34
jmp 0x18005bcb0
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 0x18005bb51
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsp
lea rdx, [0x180064f90]
call fcn.18005f880
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18005eb30
add rsp, 0x80
pop rdi
ret