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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400c303b
sub rsp, rax
mov rax, qword [0x1402ac080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402b1370]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140212dcd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140212d19
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140212d19
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140212cf9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140212c88
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140212d8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140212dec
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140212dc8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140212dec
jmp 0x140212c5e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400c4aad
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.14014e000
add rsp, 0x28
jmp 0x140008188
Function at 0x14000ac40
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r11, rdx
mov rsi, rcx
test rcx, rcx
je 0x14000ace3
test rdx, rdx
je 0x14000ace3
cmp qword [rcx + 8], 0
jbe 0x14000ace3
movzx eax, byte [rdx]
mov rcx, rdx
mov r10d, 0x1505
test al, al
je 0x14000ac96
imul r10, r10, 0x21
movzx eax, al
lea rcx, [rcx + 1]
add r10, rax
movzx eax, byte [rcx]
test al, al
jne 0x14000ac81
mov r14, qword [rsi + 0x10]
xor edx, edx
mov eax, r10d
xor ebp, ebp
div dword [rsi]
mov ebx, ebp
mov edi, edx
mov r8, qword [r14 + rdx*8]
test r8, r8
je 0x14000ace3
cmp dword [r8 + 0x20], r10d
jne 0x14000acd7
mov r9, qword [r8]
mov rax, r11
sub r9, r11
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x14000acd3
inc rax
test ecx, ecx
jne 0x14000acc0
test edx, edx
je 0x14000ad00
mov rbx, r8
mov r8, qword [r8 + 0x18]
test r8, r8
jne 0x14000acb0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [r8 + 8], 0xffffffffffffffff
jne 0x14000adfd
mov rax, qword [r8 + 0x18]
test rbx, rbx
je 0x14000ad1a
mov qword [rbx + 0x18], rax
jmp 0x14000ad1e
mov qword [r14 + rdi*8], rax
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
dec qword [rsi + 8]
mov rcx, qword [rsi + 8]
mov edx, dword [rsi]
vxorps xmm1, xmm1, xmm1
test rcx, rcx
js 0x14000ad41
vcvtsi2sd xmm1, xmm1, rcx
jmp 0x14000ad56
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
vcvtsi2sd xmm1, xmm1, rax
vaddsd xmm1, xmm1, xmm1
vxorps xmm0, xmm0, xmm0
vcvtsi2sd xmm0, xmm0, rdx
vmulsd xmm0, xmm0, qword [0x14001dda0]
vcomisd xmm0, xmm1
jbe 0x14000ae05
cmp edx, 0x100
jbe 0x14000ae05
mov edi, edx
shr edi, 1
cmp edi, edx
je 0x14000ae05
mov ecx, edi
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
test rax, rax
je 0x14000ace3
cmp qword [rsi + 8], rbp
jbe 0x14000ade6
cmp dword [rsi], ebp
jbe 0x14000ade6
nop dword [rax]
mov rcx, qword [rsi + 0x10]
mov edx, ebp
mov r9, qword [rcx + rdx*8]
test r9, r9
je 0x14000ade0
nop
mov eax, dword [r9 + 0x20]
xor edx, edx
mov r8, qword [r9 + 0x18]
div edi
mov rax, qword [rbx + rdx*8]
mov qword [r9 + 0x18], rax
mov qword [rbx + rdx*8], r9
mov r9, r8
test r8, r8
jne 0x14000adc0
inc ebp
cmp ebp, dword [rsi]
jb 0x14000adb0
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
mov qword [rsi + 0x10], rbx
mov dword [rsi], edi
jmp 0x14000ace5
mov qword [r8 + 0x10], 0xffffffffffffffff
mov al, 1
jmp 0x14000ace5
Function at 0x14000d460
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x30
movzx eax, word [rdx + 8]
mov ecx, 0x101
mov rdi, rdx
cmp ax, cx
jne 0x14000d485
mov esi, 8
mov ebp, esi
jmp 0x14000d49f
mov ebp, 0x10
mov ecx, 0xc
mov esi, ebp
mov edx, 0x102
cmp ax, dx
cmove esi, ecx
cmove ebp, ecx
mov qword [rsp + 0x60], r13
lea r12, [rdi + 0xa]
mov rdx, r12
mov qword [rsp + 0x68], r14
mov r9d, 2
mov qword [rsp + 0x70], r15
mov r8d, ebp
lea rbx, [rdi + 0x38]
xor ecx, ecx
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jns 0x14000d4f9
test rbx, rbx
je 0x14000d4da
mov qword [rbx], 0x14
mov eax, 0xffffffff
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rdi]
lea rax, [rdi + 0xa]
add rax, rsi
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rcx + rdx], 0
jne 0x14000d510
movzx r9d, word [rdi + 8]
mov r8, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.14000eb20
mov qword [rdi + 0x28], rax
test rax, rax
je 0x14000d4da
add ebp, 2
lea r14, [rdi + 0x28]
test r12, r12
mov rsi, r12
sete r13b
test r12, r12
jne 0x14000d563
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r14, [rdi + 0x28]
mov rsi, rax
test rax, rax
je 0x14000d585
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x14000d5b2
test r12, r12
jne 0x14000d581
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rbx, [rdi + 0x38]
mov qword [rdi + 0x20], 0
mov rcx, qword [rdi + 0x28]
call fcn.14000eda0
mov qword [r14], 0
test rbx, rbx
je 0x14000d4da
mov qword [rbx], 0xe
jmp 0x14000d4da
mov byte [rax], 1
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], 0
mov byte [rax + 1], r13b
mov qword [rdi + 0x20], rax
xor eax, eax
jmp 0x14000d4df
Function at 0x14000e3c0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x14000e524
push rbx
push r12
push r14
push r15
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rsi
mov r12, r9
mov qword [rsp + 0x30], rdi
mov r15, r8
mov r14, rdx
mov rbx, rcx
test rdx, rdx
je 0x14000e48d
sub r15, rdx
nop word [rax + rax]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x20]
movzx esi, byte [r15 + r14]
not ecx
movzx edi, word [rbx + 8]
mov r8d, 1
or di, 2
mov byte [rsp + 0x20], sil
call fcn.14000ffa0
not eax
lea rdx, [rsp + 0x20]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x20], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.14000ffa0
not eax
lea r14, [r14 + 1]
mov dword [rbx + 8], eax
movzx eax, di
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, sil
mov byte [r14 - 1], cl
sub r12, 1
jne 0x14000e410
jmp 0x14000e502
mov esi, dword [rcx + 4]
mov edi, dword [rcx + 8]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
nop word [rax + rax]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x20]
movzx eax, byte [r15 + rbp]
not ecx
mov r8d, 1
mov byte [rsp + 0x20], al
call fcn.14000ffa0
not eax
lea rdx, [rsp + 0x20]
mov dword [rbx], eax
not edi
movzx eax, al
mov r8d, 1
add eax, esi
mov ecx, edi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [rbx + 4], esi
shr eax, 0x18
mov byte [rsp + 0x20], al
call fcn.14000ffa0
mov edi, eax
inc rbp
not edi
mov dword [rbx + 8], edi
cmp rbp, r12
jb 0x14000e4a0
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140017a70
add rsp, 0x48
pop r15
pop r14
pop r12
pop rbx
ret
Function at 0x14000e530
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x14000e67e
push rbx
push rdi
push r14
push r15
sub rsp, 0x38
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r15, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14000e5e5
sub r14, rdx
nop word [rax + rax]
movzx eax, word [rbx + 8]
lea rdx, [rsp + 0x20]
or eax, 2
mov r8d, 1
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor cl, byte [r14 + rdi]
mov byte [rdi], cl
mov byte [rsp + 0x20], cl
mov ecx, dword [rbx]
not ecx
call fcn.14000ffa0
not eax
lea rdx, [rsp + 0x20]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x20], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.14000ffa0
lea rdi, [rdi + 1]
not eax
mov dword [rbx + 8], eax
sub r15, 1
jne 0x14000e570
jmp 0x14000e667
mov edi, dword [rcx + 8]
mov qword [rsp + 0x78], rbp
xor ebp, ebp
mov qword [rsp + 0x30], rsi
mov esi, dword [rcx + 4]
nop word [rax + rax]
mov ecx, dword [rbx]
lea rdx, [rsp + 0x20]
movzx eax, byte [r14 + rbp]
not ecx
mov r8d, 1
mov byte [rsp + 0x20], al
call fcn.14000ffa0
not eax
lea rdx, [rsp + 0x20]
mov dword [rbx], eax
not edi
movzx eax, al
mov r8d, 1
add eax, esi
mov ecx, edi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [rbx + 4], esi
shr eax, 0x18
mov byte [rsp + 0x20], al
call fcn.14000ffa0
mov edi, eax
inc rbp
not edi
mov dword [rbx + 8], edi
cmp rbp, r15
jb 0x14000e600
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140017a70
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rbx
ret

Function at 0x14000ea10
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
je 0x14000eae9
mov rdi, rdx
xor r14d, r14d
nop dword [rax]
mov eax, dword [rbx + 0x30]
cmp eax, 0x10
jne 0x14000eacb
lea rdx, [rbx + 0x10]
mov r8, 0xfffffffffffffff0
mov rax, rdx
sub r8, rbx
nop dword [rax]
add byte [rax], 1
jne 0x14000ea82
inc rax
lea rcx, [r8 + rax]
cmp rcx, 8
jb 0x14000ea70
mov rcx, qword [rbx]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x48], r14d
lea rax, [rbx + 0x20]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov dword [rsp + 0x38], 0x10
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
lea r8d, [r9 + 0x10]
mov qword [rsp + 0x20], r14
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x14000eb0d
mov dword [rbx + 0x30], r14d
mov eax, r14d
cdqe
movzx ecx, byte [rax + rbx + 0x20]
xor byte [rdi], cl
inc rdi
inc dword [rbx + 0x30]
mov rax, rdi
sub rax, rsi
cmp rax, rbp
jb 0x14000ea50
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017a70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor al, al
jmp 0x14000eaeb
Function at 0x140018450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001849a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001849a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001849a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001849a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001849a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001849c
xor al, al
add rsp, 0x28
ret
Function at 0x18001dc90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x18001dccd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18001dcd4
mov al, 1
jmp 0x18001de2c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.180012ad0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.180012ad0
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.180012ae0
movzx eax, al
test eax, eax
je 0x18001dd2b
xor al, al
jmp 0x18001de2c
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call fcn.18001e980
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18001dd9a
cmp dword [rsp + 0x30], 1
je 0x18001dda6
cmp dword [rsp + 0x30], 3
je 0x18001de1a
jmp 0x18001de2a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x18001ddf1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.180070344
cmp qword [rsp + 0x48], rax
je 0x18001ddf1
xor al, al
jmp 0x18001de2c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18001de0b
mov dword [rsp + 0x34], 1
jmp 0x18001de13
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x18001de2c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18001de2c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.18005ac00
add rsp, 0xa8
ret
Function at 0x1800268d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18011e11c]
mov ebx, edi
test ecx, ecx
je 0x180026a0b
mov rax, qword [0x18011e110]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180026928
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180026900
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180026a0b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180026c50
mov r8d, dword [0x18011e11c]
cmp ebx, r8d
jae 0x180026998
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18011e110]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180026991
mov edx, esi
mov ecx, ebx
call fcn.180026b40
mov edi, eax
test eax, eax
jne 0x180026998
mov r8d, dword [0x18011e11c]
inc ebx
cmp ebx, r8d
jb 0x180026960
cmp qword [rsp + 0x20], 0
je 0x180026a0b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800269f7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800269e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800269c0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18011b4c8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180026b40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18011e110]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180026ba4
mov eax, 0xa
jmp 0x180026c33
test esi, esi
je 0x180026bc6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180026be9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180026be9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180026be2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180026be9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180026c50
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1801182c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180026d7a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180026d71
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180026d54
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180026d54
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180026d54
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180026d12
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18011b4c8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180026d71
jmp 0x180026d47
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180026d47
mov rcx, qword [0x18011b4c8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180026d71
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180026cc0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180026dd3
cmp dword [rbx + 0xc], esi
jbe 0x180026dd3
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180026dcc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180027960
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180026d90
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18005ac00
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180027c30
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rdi, rcx
test r8, r8
je 0x180027ca1
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180027c8d
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180027c7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180027c52
mov r8, qword [rdi]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [0x18011b4c8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret