joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d270
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14006d2b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14006d2f5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14006d352
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14006d310
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006d393
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14007d5f0]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14007d5f1]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006d360
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1800138b0
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 0x18001390d
lea rbx, [0x1800da620]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800138f4
cmp r10, 2
jb 0x1800138f4
cmp byte [r9], r8b
jne 0x1800138f4
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 0x1800138d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001394f
lea rbx, [0x1800da620]
cmp r8b, 0x23
jne 0x180013933
cmp byte [r9], r8b
jne 0x180013933
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 0x180013920
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180013a90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180013aaa
mov qword [r8], 0
lea rdx, [0x1800da17c]
call fcn.180013960
mov rbx, rax
test rax, rax
jne 0x180013aca
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 fcn.18009cce8
mov esi, eax
cmp eax, 0xffffffff
je 0x180013baa
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18009d52c
test eax, eax
jne 0x180013baa
mov rcx, rbx
call fcn.18009cce8
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180013baa
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.18009d52c
test eax, eax
jne 0x180013baa
cmp rdi, 0xffffffffffffffff
je 0x180013baa
mov rax, qword [0x18014b690]
test rax, rax
je 0x180013b3e
inc dword [rax + 0xf4]
mov rdx, qword [0x18014b680]
mov rcx, rdi
call fcn.180012d90
mov rsi, rax
test rax, rax
je 0x180013baa
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.1800a06cc
mov rcx, rbx
cmp rax, rdi
je 0x180013b98
call fcn.18009d2b8
mov rax, qword [0x18014b690]
test rax, rax
je 0x180013b87
dec dword [rax + 0xf4]
mov rdx, qword [0x18014b680]
mov rcx, rsi
call fcn.180012da0
jmp 0x180013bb2
call fcn.18009d2b8
test r14, r14
je 0x180013ba5
mov qword [r14], rdi
mov rax, rsi
jmp 0x180013bb4
mov rcx, rbx
call fcn.18009d2b8
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 0x180015f10
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1800da620]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x18014b690]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x180015fa6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.180028260
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1800226a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18012f010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x18014b690]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x180022701
cmp byte [rbx + 0x4a2e], 0
jne 0x180022701
movsx r9d, word [rbx + 0x5b2a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180013740
test dil, 1
je 0x180022828
jmp 0x18002278a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b2a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180119920]
mulss xmm1, dword [0x1801198f8]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x180119814]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.180013740
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1800227e0
lea r11, [0x1800da620]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1800227c3
cmp byte [r8], r9b
jne 0x1800227c3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1800227b0
not ecx
call fcn.180019a80
test rax, rax
je 0x180022828
cmp byte [rax + 0xae], 0
je 0x180022828
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b2a]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b2a]
call fcn.180013740
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.18001c120
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180092eb0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180026c50
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 + 0x5c10], 0
lea rbx, [rcx + 0x5c18]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180026cf6
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x180026caa
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.180028e50
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180014150
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c10]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c20]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18014b688]
cmovne rcx, rax
call fcn.1800a0234
mov r14, qword [rsp + 0x30]
jmp 0x180026cfe
mov rcx, rbx
call fcn.180014150
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180027190
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x18014b690]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800271f3
mov qword [rsp], rbx
lea rbx, [0x1800da620]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800271d3
cmp byte [r8], r9b
jne 0x1800271d3
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 0x1800271c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b88]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180027227
mov r10, qword [r10 + 0x5b90]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x18002722e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180027214
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 0x1800274b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x18014b690]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5b74], ecx
test rbx, rbx
je 0x18002751d
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180027530
lea rdx, [0x1800da180]
mov rcx, rbx
mov rdi, rax
call fcn.180013960
mov rbx, rax
test rax, rax
je 0x180027518
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call fcn.1800a0234
mov rcx, rbx
call fcn.18009d2b8
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180039620
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x210
call fcn.18001efe0
cmp byte [rax], 0
je 0x18003968f
xor edx, edx
mov ecx, 0x210
call fcn.180021310
test al, al
je 0x18003968f
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x18003968f
mov rbx, qword [0x18014b690]
cmp byte [rbx + 0x37a9], 0
je 0x18003967b
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180013290
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov ecx, 0x214
call fcn.18001efe0
cmp byte [rax], 0
je 0x1800396f8
xor edx, edx
mov ecx, 0x214
call fcn.180021310
test al, al
je 0x1800396f8
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800396f8
mov rbx, qword [0x18014b690]
cmp byte [rbx + 0x37a9], 0
je 0x1800396e4
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180013290
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov ecx, 0x212
call fcn.18001efe0
cmp byte [rax], 0
je 0x180039761
xor edx, edx
mov ecx, 0x212
call fcn.180021310
test al, al
je 0x180039761
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180039761
mov rbx, qword [0x18014b690]
cmp byte [rbx + 0x37a9], 0
je 0x18003974d
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180013290
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov ecx, 0x216
call fcn.18001efe0
cmp byte [rax], 0
je 0x1800397ca
xor edx, edx
mov ecx, 0x216
call fcn.180021310
test al, al
je 0x1800397ca
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1800397ca
mov rbx, qword [0x18014b690]
cmp byte [rbx + 0x37a9], 0
je 0x1800397b6
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180013290
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x1800446b0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x18012f010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
cmp rdi, 0x40000000
jbe 0x1800446fd
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180151d90]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x60], r15
cmovbe r15, qword [rsp + 0x60]
sub r15, 0xfff
test rsi, rsi
je 0x18004473f
cmp rsi, r14
jb 0x180044737
cmp rsi, r15
jae 0x180044737
cmp qword [rsi + 8], 0
jne 0x1800448fd
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180044722
mov qword [rsp + 0xb8], rbx
mov rbx, rdi
mov qword [rsp + 0xc0], rbp
cmp rdi, r14
jb 0x1800447c2
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800447b9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800447b9
cmp dword [rsp + 0x40], 0x10000
je 0x18004483b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800447b9
sub rbx, rbp
cmp rbx, r14
jae 0x180044780
test rsi, rsi
jne 0x1800448a6
cmp rdi, r15
ja 0x1800448ed
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800448ed
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800448ed
cmp dword [rsp + 0x40], 0x10000
je 0x180044874
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800447f2
jmp 0x1800448ed
test rbx, rbx
je 0x1800447b9
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800448a6
cmp rbx, r14
jae 0x180044760
jmp 0x1800447c2
test rdi, rdi
je 0x1800448ed
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800448a6
cmp rdi, r15
jbe 0x1800447d0
jmp 0x1800448ed
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x1800448c0
mov rax, qword [0x180151d90]
mov qword [rsi], rax
mov qword [0x180151d90], rsi
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180092eb0
mov rsi, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
ret
Function at 0x1800452a0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18012f010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov esi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800453ef
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180045415
lea esi, [r15 + 1]
nop
cmp dword [rsp + 0x20], 0x10
jb 0x1800453a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800453a0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800453a0
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180045362
mov rcx, qword [0x18014b698]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800453c9
jmp 0x180045393
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180045393
mov rcx, qword [0x18014b698]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800453c9
mov qword [rbx], rax
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 qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180045310
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180045415
mov r8, qword [rbx]
mov esi, r15d
test r8, r8
je 0x180045415
mov rcx, qword [0x18014b698]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
mov qword [rbx], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180092eb0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1800453ef
cmp qword [rbx], r15
je 0x180045473
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180045473
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004546c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800450f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180045430
mov eax, r15d
jmp 0x1800453f4
Function at 0x180045480
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18012f010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x180151d80]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800454e9
mov eax, 0xa
jmp 0x180045536
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 0x180045505
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180092eb0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180045560
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, dword [0x180151d8c]
xor ebx, ebx
test edx, edx
je 0x18004558f
mov rcx, qword [0x180151d80]
add rcx, 0x20
nop dword [rax]
test byte [rcx], 2
je 0x180045597
inc ebx
add rcx, 0x38
cmp ebx, edx
jb 0x180045580
xor eax, eax
add rsp, 0x30
pop rbx
ret
cmp ebx, 0xffffffff
je 0x18004558f
mov edx, 0xffffffff
mov qword [rsp + 0x50], rdi
mov r8d, 1
lea rcx, [rsp + 0x20]
call fcn.1800452a0
mov edi, eax
test eax, eax
jne 0x180045672
mov eax, dword [0x180151d8c]
cmp ebx, eax
jae 0x1800455fd
nop word [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180151d80]
test byte [rdx + rcx + 0x20], 2
jne 0x1800455f7
mov ecx, ebx
call fcn.180045480
mov edi, eax
test eax, eax
jne 0x1800455fd
mov eax, dword [0x180151d8c]
inc ebx
cmp ebx, eax
jb 0x1800455d0
cmp qword [rsp + 0x20], 0
je 0x180045670
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18004565c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
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 0x180045648
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 0x180045620
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18014b698]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x1800459b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x18014b68c], esi
je 0x180045a01
nop
cmp rbx, 0x20
jae 0x1800459ea
xor ecx, ecx
jmp 0x1800459ec
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18014b68c], esi
jne 0x1800459e0
cmp qword [0x18014b698], r15
je 0x180045af4
test rdi, rdi
jne 0x180045a1f
call fcn.180045560
mov esi, eax
jmp 0x180045af9
mov ecx, dword [0x180151d8c]
mov ebx, r15d
test ecx, ecx
je 0x180045a45
mov r8, qword [0x180151d80]
mov rax, r8
cmp rdi, qword [rax]
je 0x180045a4f
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180045a36
mov esi, 4
jmp 0x180045af9
cmp ebx, 0xffffffff
je 0x180045a45
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180045aed
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800452a0
mov esi, eax
test eax, eax
jne 0x180045af9
mov ecx, ebx
call fcn.180045480
mov esi, eax
cmp qword [rsp + 0x20], r15
je 0x180045af9
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180045ad7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180045ac8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180045aa0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18014b698]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180045af9
mov esi, 5
jmp 0x180045af9
mov esi, 2
xchg dword [0x18014b68c], r15d
mov rbx, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180048c40
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x12c]
mov rbx, rcx
cmp eax, 0xffffffce
jne 0x180048c62
lea edx, [rax + 0x39]
call fcn.18004a6e0
mov eax, dword [rbx + 0x12c]
cmp eax, 2
jne 0x180048c76
xor edx, edx
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.18004a6e0
mov qword [rsp + 0x28], 0
lea r8, [0x180049430]
mov r9, rbx
mov dword [rsp + 0x20], 4
xor edx, edx
mov dword [rbx + 0x12c], 2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x1b8], rax
test rax, rax
jne 0x180048cc1
lea edx, [rax + 0xa]
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.18004a6e0
mov edx, dword [rbx + 0x1e4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x1b8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResumeThread]