joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d2c0
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x42d546
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
mov rcx, qword [rax + 0x1268]
lea rsi, [rax + 0x1278]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x42d53a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1268], 0
cmp byte [0x0058e532], 0
jne 0x42d31a
xor edx, edx
xor ebx, ebx
jmp 0x42d360
xor edx, edx
jmp 0x42d345
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1278]
mov rax, rcx
call fcn.0041c6a0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x42d31e
add rax, 0x1268
call fcn.0042d240
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x42d4d4
mov rsi, qword [rax + rdx*8 + 0x1278]
cmp rsi, 0x1000
jb 0x42d35b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.00412060
test rax, rax
jne 0x42d3ac
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42d35b
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x42d3ec
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42d35b
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x42d52d
lea r10, [0x00560918]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x11440]
lea r8, [r8 + r10]
lea r8, [r8 + 0x11440]
test r11b, r9b
jne 0x42d46f
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x6a]
test r8b, 1
je 0x42d4a5
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1250]
add r8, qword [rbx + 0x70]
mov qword [rax + 0x1250], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x42d35b
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x42d525
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1278], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x42d35b
cmp rbx, 0x200
ja 0x42d514
lea rdx, [rax + 0x1278]
lea rsi, [rax + 0x1240]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.00422ec0
mov rax, qword [rsp + 0x48]
add rax, 0x1268
call fcn.0042d240
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.0045de00
mov rax, r8
call fcn.0045dd80
mov rax, r8
mov ecx, 0x40
call fcn.0045dda0
mov edx, 0x200
nop
call fcn.0045dde0
nop
mov qword [rsp + 8], rax
call fcn.004625c0
mov rax, qword [rsp + 8]
jmp fcn.0042d2c0
Function at 0x442080
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4421e7
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x442092
cmp edx, ecx
jne 0x4421d5
nop word [rax + rax]
test rsi, rsi
jne 0x4421d5
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4420f4
nop
call fcn.0045f5e0
xorps xmm15, xmm15
mov r14, qword [0x0058e748]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00441fa0
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x4421d0
mov rdx, qword [0x0053b748]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x4421c5
mov rcx, qword [0x0053b740]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x0053c1b0]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x0053c1b0], rax
nop
mov edx, 1
lea rsi, [0x0053c1b8]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x4421b3
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x004ab6df]
mov ebx, 0x28
nop
call fcn.004335c0
mov rax, rsi
mov rcx, rdx
call fcn.0045dd80
call fcn.00431c60
lea rax, [0x004aaa6b]
mov ebx, 0x23
call fcn.004335c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bb00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00442080
Function at 0x44ccc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44ce37
movzx edx, byte [rax]
test edx, edx
jne 0x44ccf4
nop dword [rax]
test r8b, r8b
jne 0x44ccf4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x44cd07
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44cdf7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x44cde5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x44cdd7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x44cd5d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x44cda0
mov eax, 1
cmp rax, rbx
ja 0x44cd8b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0045de40
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x44cdcf
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x44cd93
mov rcx, r11
mov eax, r12d
jmp 0x44cd62
mov rcx, rbx
call fcn.0045dd80
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045dd80
mov eax, r8d
mov rcx, rbx
call fcn.0045de40
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44ce2d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x44cdf0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44cd0d
mov eax, edx
mov rcx, rbx
call fcn.0045dd80
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045dd80
nop
int3
Function at 0x454240
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4542ef
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00454340]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045b9c0
xorps xmm15, xmm15
mov r14, qword [0x0058e748]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045bb00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00454240
Function at 0x45d8e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403963
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.004093c0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bb00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403940
cmp byte [0x0058e52b], 0
je 0x45d8f5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45ab40
jmp 0x403940

Function at 0x45d900
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0058e7e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x0058e52b], 0
je 0x45d935
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x0058eaa0]
aesenc xmm0, xmmword [0x0058eab0]
aesenc xmm0, xmmword [0x0058eac0]
movq rax, xmm0
ret
jmp 0x4095e0

Function at 0x45d940
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0058e7e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x0058e52b], 0
je 0x45d976
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0058eaa0]
aesenc xmm0, xmmword [0x0058eab0]
aesenc xmm0, xmmword [0x0058eac0]
movq rax, xmm0
ret
jmp 0x409640

Function at 0x45f640
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45f674
mov rcx, 0x28
jmp 0x45f67f
shl rcx, 3
add rcx, 0x1480
mov qword [0x0058e748], rcx
pop rbp
ret
Function at 0x4773e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4774aa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004038a0
xorps xmm15, xmm15
mov r14, qword [0x0058e748]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47748f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00491be0]
xor ebx, ebx
mov rcx, rdx
call fcn.00446100
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00477d80
inc rbx
cmp rcx, rbx
jae 0x47747e
mov edi, 1
lea rsi, [0x00491be0]
call fcn.004461e0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004c6158]
lea rsi, [0x004c5a78]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045bb00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004773e0
Function at 0x1400162c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x460
mov rax, qword [0x1400380f0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, r8
test r8, r8
jne 0x1400162ed
mov eax, 0x80070057
jmp 0x140016393
lea rax, [rsp + 0x38]
mov qword [rsp + 0x488], rbx
xor ebx, ebx
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001632e
mov eax, 0x80004005
jmp 0x14001638b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.Boomerang_x64Path
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140016367
mov ebx, 0x80004005
jmp 0x140016379
lea r8, [rsp + 0x50]
mov edx, 0x200
mov rcx, rdi
call fcn.14001c470
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140016389
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x488]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14001bab0
add rsp, 0x460
pop rdi
ret
Function at 0x140018170
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
lea r8, [rcx + 0xcf8]
mov rbx, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea r9, [rbx + 0x1108]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0xcd0], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor edx, edx
mov qword [rbx + 0xce0], rax
lea rax, [rbx + 0xf00]
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rax
or rcx, 0xffffffffffffffff
mov dword [rbx + 0xce8], 0x1f4000
mov dword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0xcd8], rax
test rax, rax
je 0x14001820c
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
mov qword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0xcf0], rax
lea r8, [rbx + 0x1338]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea r9, [rbx + 0x1748]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x1310], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor edx, edx
mov qword [rbx + 0x1320], rax
lea rax, [rbx + 0x1540]
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rax
or rcx, 0xffffffffffffffff
mov dword [rbx + 0x1328], 0x1f4000
mov dword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x1318], rax
test rax, rax
je 0x14001829f
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
mov qword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x1330], rax
lea r8, [rbx + 0x1978]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea r9, [rbx + 0x1d88]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x1950], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor edx, edx
mov qword [rbx + 0x1960], rax
lea rax, [rbx + 0x1b80]
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rax
or rcx, 0xffffffffffffffff
mov dword [rbx + 0x1968], 0x1f4000
mov dword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x1958], rax
test rax, rax
je 0x1400183d2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, rax
mov qword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea r8, [rbx + 0x1fb8]
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x1970], rax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea r9, [rbx + 0x23c8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x1f90], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor edx, edx
mov qword [rbx + 0x1fa0], rax
lea rax, [rbx + 0x21c0]
lea r8d, [r9 + 4]
mov qword [rsp + 0x28], rax
or rcx, 0xffffffffffffffff
mov dword [rbx + 0x1fa8], 0x1f4000
mov dword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbx + 0x1f98], rax
test rax, rax
je 0x1400183ca
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 2]
mov qword [rsp + 0x20], 0x1f4000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x1fb0], rax
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov eax, 0x80004005
add rsp, 0x30
pop rbx
ret
Function at 0x140018700
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, rcx
add rcx, 0x2828
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140018737
mov eax, 0x80004005
jmp 0x1400187e8
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14001872d
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x1400187e6
mov rcx, qword [rdi + 0x48]
mov r8, qword [rcx]
call qword [r8 + 0x18]
or ebx, eax
mov rcx, qword [rdi + 0x48]
mov r8, qword [rcx]
mov edx, dword [rdi + 0x2e5c]
call qword [r8 + 0x1f8]
or ebx, eax
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
lea rdx, [rdi + 0x2828]
call qword [rax + 0x20]
or ebx, eax
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x50]
or ebx, eax
jl 0x1400187e6
mov qword [rsp + 0x40], 0
mov rcx, qword [rdi + 0x48]
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x140033f98]
call qword [rax]
or ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400187db
mov rax, qword [rcx]
lea rdx, [rdi + 0x2820]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400187e6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140019440
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x660
mov rax, qword [0x1400380f0]
xor rax, rsp
mov qword [rsp + 0x650], rax
mov r14, rcx
add rcx, 8
mov r13d, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r13d, r13d
je 0x140019495
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140019495
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor r12d, r12d
mov dword [rsp + 0x20], r12d
nop dword [rax]
xor edx, edx
mov r15d, r12d
mov esi, r12d
lea ecx, [rdx + 4]
mov rdi, r12
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001962f
lea rdx, [rsp + 0x430]
mov rcx, rax
mov dword [rsp + 0x430], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140019626
nop word [rax + rax]
mov eax, dword [r14]
cmp dword [rsp + 0x43c], eax
jne 0x140019527
mov eax, dword [rsp + 0x438]
cmp eax, dword [r14 + 0x40]
je 0x140019527
cmp eax, dword [r14 + 0x44]
je 0x140019527
cmp eax, dword [r14 + 0x48]
je 0x140019527
cmp eax, dword [r14 + 0x4c]
je 0x140019527
mov dword [rsp + rdi*4 + 0x450], eax
inc esi
inc rdi
lea rdx, [rsp + 0x430]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x140019545
cmp rdi, 0x80
jl 0x1400194f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14001962f
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x400
call fcn.14001d790
movsxd rsi, esi
mov rdi, r12
test rsi, rsi
jle 0x140019593
mov r8d, dword [rsp + rdi*4 + 0x450]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
inc rdi
mov qword [rsp + rdi*8 + 0x28], rax
cmp rdi, rsi
jl 0x140019573
mov rdi, r12
test rsi, rsi
jle 0x1400195d2
nop dword [rax + rax]
mov rcx, qword [rsp + rdi*8 + 0x30]
test rcx, rcx
je 0x1400195c5
test r13d, r13d
je 0x1400195b7
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x1400195bd
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1400195c5
inc r15d
inc rdi
cmp rdi, rsi
jl 0x1400195a0
test r15d, r15d
jne 0x1400195dd
mov ebp, 1
mov dword [rsp + 0x20], ebp
jmp 0x1400195e1
mov ebp, dword [rsp + 0x20]
mov rdi, r12
test rsi, rsi
jle 0x140019608
nop dword [rax]
mov rcx, qword [rsp + rdi*8 + 0x30]
test rcx, rcx
je 0x140019600
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rdi
cmp rdi, rsi
jl 0x1400195f0
test ebp, ebp
je 0x1400194a0
test r13d, r13d
jne 0x140019635
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140019635
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140019635
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12d, 0x80004005
lea rcx, [r14 + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, r12d
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.14001bab0
lea r11, [rsp + 0x660]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140019680
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
lea rax, [rdi + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x20], ecx
lea r8, [0x140019760]
lea rcx, [rsp + 0x30]
mov r9, rdi
xor edx, edx
mov dword [rdi + 4], 1
mov dword [rsp + 0x30], 0x18
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [rdi + 8]
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400196f0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x38]
mov dword [rdi + 4], 0
test rcx, rcx
je 0x140019742
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140019730
mov rcx, qword [rdi + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x38], 0
lea rcx, [rdi + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001a4a0
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
cmp dword [rcx + 0xcc8], 0
mov rbx, rcx
je 0x14001a4c1
mov eax, 0x80004005
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x40], rdi
xor edi, edi
mov dword [rcx + 0xcc8], 1
mov qword [rcx + 0x2808], rdi
mov qword [rcx + 0x2810], rdi
mov qword [rcx + 0xcc0], rdi
call fcn.1400188c0
test eax, eax
jns 0x14001a501
mov dword [rbx + 0xcc8], edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 0x27f0]
test rcx, rcx
je 0x14001a52a
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x27f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x27f0], rdi
lea rax, [rsp + 0x50]
lea r8, [0x14001a580]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x27f0], rax
test rax, rax
je 0x14001a567
mov edx, dword [rbx + 0x2e58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret