joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180040430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x180112540]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x180040476
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x180040466
cmp byte [rax], cl
jne 0x180040476
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x180040457
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1800405da
cmp byte [r8 + 1], dl
je 0x1800405da
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x1800404b2
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1800404da
sub dl, 0x61
cmp dl, 0x19
ja 0x1800404cc
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1800404da
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x180040495
jmp 0x1800404dd
inc r9
cmp r8, r9
jae 0x18004050f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x180040504
bt rdx, rax
jb 0x18004050a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x1800404f0
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.180015290
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x180040548
nop
inc rcx
cmp byte [rcx], 0x20
je 0x180040540
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x1800405c8
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x180040563
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x180040579
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x1800405b6
movss xmm2, dword [0x180053914]
cmp al, 0x39
ja 0x1800405b6
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x180040590
cmp r9b, 0x2d
jne 0x1800405d5
xorps xmm1, xmmword [0x180053970]
movaps xmm0, xmm1
jmp 0x1800405dd
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1800405dd
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004e700
add rsp, 0x90
pop rbx
ret
Function at 0x180040600
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x180112540]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x180040646
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x180040636
cmp byte [rax], cl
jne 0x180040646
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x180040627
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1800407a4
cmp byte [r8 + 1], dl
je 0x1800407a4
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x180040682
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x1800406aa
sub dl, 0x61
cmp dl, 0x19
ja 0x18004069c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x1800406aa
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x180040665
jmp 0x1800406ad
inc r9
cmp r8, r9
jae 0x1800406df
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x1800406d4
bt rdx, rax
jb 0x1800406da
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x1800406c0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.180015290
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x180040718
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x180040710
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180040796
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x180040733
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x180040749
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x180040784
movsd xmm2, qword [0x180058408]
cmp al, 0x39
ja 0x180040784
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x180040760
cmp r9b, 0x2d
jne 0x18004079f
xorps xmm1, xmmword [0x180058460]
movaps xmm0, xmm1
jmp 0x1800407a7
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1800407a7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004e700
add rsp, 0x90
pop rbx
ret
Function at 0x180001b34
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rax, qword gs:[0x60]
mov edi, edx
mov ebx, ecx
xor esi, esi
mov r8, qword [rax + 0x18]
mov r11, qword [r8 + 0x20]
mov r8, r11
mov r9, qword [r8 + 0x50]
test r9, r9
je 0x180001b98
movzx r10d, word [r8 + 0x48]
mov edx, esi
jmp 0x180001b8e
movsx ecx, byte [r9]
mov eax, 0xffff
add r10w, ax
ror edx, 0xd
cmp byte [r9], 0x61
lea eax, [rcx - 0x20]
cmovl eax, ecx
add edx, eax
inc r9
test r10w, r10w
jne 0x180001b6f
cmp edx, ebx
je 0x180001bb2
mov r8, qword [r8]
cmp r8, r11
jne 0x180001b5d
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov r9, qword [r8 + 0x20]
mov ebx, esi
movsxd rax, dword [r9 + 0x3c]
mov r8d, dword [rax + r9 + 0x88]
add r8, r9
mov edx, dword [r8 + 0x20]
mov ecx, dword [r8 + 0x24]
add rdx, r9
add rcx, r9
cmp dword [r8 + 0x18], esi
jbe 0x180001ba0
mov r10d, dword [rdx]
mov r11d, esi
add r10, r9
jmp 0x180001bf3
ror r11d, 0xd
movsx eax, al
add r11d, eax
inc r10
mov al, byte [r10]
test al, al
jne 0x180001be6
cmp r11d, edi
je 0x180001c11
inc ebx
add rdx, 4
add rcx, 2
cmp ebx, dword [r8 + 0x18]
jb 0x180001bdb
jmp 0x180001ba0
movzx edx, word [rcx]
mov ecx, dword [r8 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180001ba2

Function at 0x1800034d0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rcx
cmp edx, 1
jne 0x180003567
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x180003563
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
call fcn.1800039b0
test eax, eax
jne 0x180003563
call fcn.1800038f0
test eax, eax
je 0x180003563
cmp dword [0x18001ecf8], 0
jne 0x180003570
and qword [rsp + 0x28], 0
lea r8, [0x180001c28]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [0x18001ecf8], 1
xor ecx, ecx
mov qword [0x18001ecf0], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18001ec90], rax
call fcn.180001eb0
jmp 0x180003570
xor eax, eax
jmp 0x180003575
test edx, edx
jne 0x180003570
call fcn.180003824
mov eax, 1
add rsp, 0x240
pop rbx
ret
Function at 0x180003824
Capabilities:
Allocate or change rwx memory
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x18001ecf8], 0
je 0x1800038cc
and dword [0x18001ecf8], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x1800038b8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1800038b8
mov eax, 0x1f0e
mov word [rbx + 0x40], ax
movabs rax, 0xb821cd09b4000eba
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x18001ec90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.180002038
add rsp, 0x30
pop rbx
ret

Function at 0x1800038f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000399b
mov esi, 0x7260
cmp word [rax + 0x40], si
je 0x18000399b
mov eax, 0x7832
cmp word [rbx + 0x40], ax
je 0x18000399b
mov eax, 0x7868
cmp word [rbx + 0x40], ax
je 0x18000399b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9d, [rdi + 4]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000399b
lea rax, [0x1800038d4]
mov word [rbx + 0x40], si
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, 1
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180003b40
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.180003d90
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003c5a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003ba4
mov rax, qword [0x18001d008]
cmp qword [rsp + 0x20], rax
ja 0x180003ba4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003b66
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008dd0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003bd5
jmp 0x180003c5a
cmp dword [rsp + 0x50], 0x10000
jne 0x180003c3d
cmp qword [rsp + 0x48], 0x10000
jb 0x180003c3d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003c1b
mov rax, qword [rsp + 0x28]
jmp 0x180003c5c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003c2b
xor eax, eax
jmp 0x180003c5c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003c55
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003d90
mov qword [rsp + 0x20], rax
jmp 0x180003b66
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003c70
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.180003dd0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003d86
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003ccb
mov rax, qword [0x18001d008]
cmp qword [rsp + 0x20], rax
ja 0x180003ccb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003c8d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180008dd0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003cfc
jmp 0x180003d86
cmp dword [rsp + 0x50], 0x10000
jne 0x180003d64
cmp qword [rsp + 0x48], 0x10000
jb 0x180003d64
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003d42
mov rax, qword [rsp + 0x28]
jmp 0x180003d88
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003d52
xor eax, eax
jmp 0x180003d88
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003d81
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003dd0
mov qword [rsp + 0x20], rax
jmp 0x180003c8d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003e20
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.1800043b0
mov qword [rsp + 0x28], 0
cmp qword [0x18001da98], 0
jne 0x180003e68
cmp qword [0x18001da90], 0
je 0x180003e68
mov rax, qword [0x18001da90]
mov qword [0x18001da98], rax
cmp qword [0x18001da98], 0
je 0x180003f0e
mov rax, qword [0x18001da98]
cmp qword [rax + 0x10], 0
je 0x180003f0e
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003f0e
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003f0e
mov rax, qword [0x18001da98]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180003ed4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180003edb
xor eax, eax
jmp 0x180004089
mov rax, qword [0x18001da98]
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 fcn.180008dd0
mov rax, qword [rsp + 0x28]
jmp 0x180004089
mov rax, qword [0x18001da90]
mov qword [0x18001da98], rax
jmp 0x180003f30
mov rax, qword [0x18001da98]
mov rax, qword [rax + 8]
mov qword [0x18001da98], rax
cmp qword [0x18001da98], 0
je 0x180003f7d
cmp qword [0x18001da98], 0
je 0x180003f7b
mov rax, qword [0x18001da98]
cmp qword [rax + 0x10], 0
je 0x180003f7b
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180003f7b
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180003f7b
jmp 0x180003eac
jmp 0x180003f1e
mov rcx, qword [rsp + 0x60]
call fcn.180006220
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.180004090
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004087
mov rax, qword [rsp + 0x48]
mov qword [0x18001da98], rax
mov rax, qword [0x18001da98]
mov dword [rax], 0x52727464
mov rax, qword [0x18001da98]
mov qword [rax + 0x10], 0
mov rax, qword [0x18001da98]
mov rcx, qword [0x18001da90]
mov qword [rax + 8], rcx
mov rax, qword [0x18001da98]
mov qword [0x18001da90], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18001da98]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004038
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004072
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 0x18000402e
mov rax, qword [0x18001da98]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180003eac
xor eax, eax
add rsp, 0x58
ret
Function at 0x180004da0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180004de7
xor al, al
jmp 0x180004e89
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 0x180004e11
xor al, al
jmp 0x180004e89
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180004e81
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180004e81
mov al, 1
jmp 0x180004e89
jmp 0x180004e87
xor al, al
add rsp, 0x78
ret

Function at 0x180005190
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18001da90]
mov qword [rsp + 0x28], rax
jmp 0x1800051b0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800051df
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800051dd
call sub.KERNEL32.dll_GetLastError
jmp 0x1800051e1
jmp 0x1800051a2
xor eax, eax
add rsp, 0x38
ret
Function at 0x180005870
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001daa8], eax
je 0x18000589d
mov eax, 0x10dd
jmp 0x180005ab6
cmp dword [0x18001daac], 0
je 0x1800058b1
mov eax, dword [0x18001daac]
jmp 0x180005ab6
cmp qword [rsp + 0x78], 0
jne 0x1800058c3
mov eax, 0x57
jmp 0x180005ab6
cmp qword [rsp + 0x70], 0
jne 0x1800058d5
mov eax, 6
jmp 0x180005ab6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180005907
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18001dab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005ab6
mov ecx, 0x30
call fcn.1800079d0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180005979
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
cmp qword [rsp + 0x30], 0
je 0x180005964
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180007a0c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18001dab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005ab6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180005840
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180005840
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1800059d6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1800059f3
mov dword [rsp + 0x20], 9
cmp dword [0x18001daa0], 0
je 0x1800059ee
jmp 0x18000593a
jmp 0x180005930
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180005a20
mov dword [rsp + 0x20], 9
cmp dword [0x18001daa0], 0
je 0x180005a1b
jmp 0x18000593a
jmp 0x180005930
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180005a57
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180005930
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x18001dac0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18001dac0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005ac0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001daa8], eax
je 0x180005adb
mov eax, 0x10dd
jmp 0x180005c00
mov rax, qword [0x18001dac0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005b85
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180005b50
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180005b50
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800044f0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180007a0c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180005ae7
mov qword [0x18001dac0], 0
call fcn.180004f50
mov rax, qword [0x18001dab8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005be9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180007a0c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180005ba1
mov qword [0x18001dab8], 0
mov dword [0x18001daa8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180006130
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18001daac], 0
je 0x18000614d
mov eax, dword [0x18001daac]
jmp 0x180006213
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180006160
xor eax, eax
jmp 0x180006213
mov ecx, 0x10
call fcn.1800079d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800061ce
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1800061b3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180007a0c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18001daac], eax
mov qword [0x18001dab0], 0
mov eax, dword [rsp + 0x20]
jmp 0x180006213
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1800061e8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180006189
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18001dab8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18001dab8], rax
xor eax, eax
add rsp, 0x48
ret