joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010220
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180010256
xor eax, eax
lea r8, [0x18000fed0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180010256
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x18001f300
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, r8
mov r14, rdx
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x30], xmm0
movabs rdi, 0xcbf29ce484222325
xor r13d, r13d
mov ecx, r13d
mov r8, qword [r8 + 8]
test r8, r8
je 0x18001f363
movabs r9, 0x100000001b3
mov rdx, qword [rsp + 0x30]
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r9
inc rcx
cmp rcx, r8
jb 0x18001f350
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.18001f880
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x18001f389
mov qword [r14], rax
mov byte [r14 + 8], r13b
jmp 0x18001f546
movabs rax, 0x555555555555555
cmp qword [0x1800a9b60], rax
je 0x18001f561
lea rax, [0x1800a9b58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r13
mov ecx, 0x30
call fcn.18004a330
mov rsi, rax
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rbx]
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov r8, qword [0x1800a9b60]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x18001f3ec
cvtsi2ss xmm0, rcx
jmp 0x18001f401
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x1800a9b88]
xorps xmm1, xmm1
test rcx, rcx
js 0x18001f417
cvtsi2ss xmm1, rcx
jmp 0x18001f42c
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x1800a9b50]
seta al
test al, al
je 0x18001f4df
call fcn.18001f590
mov rax, qword [0x1800a9b80]
and rax, rdi
add rax, rax
mov r15, qword [0x1800a9b68]
mov rbx, qword [r15 + rax*8 + 8]
mov rcx, qword [0x1800a9b58]
cmp rbx, rcx
jne 0x18001f473
mov qword [rsp + 0x20], rcx
jmp 0x18001f4c8
mov r15, qword [r15 + rax*8]
movups xmm0, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x30]
nop word [rax + rax]
cmp rbp, qword [rbx + 0x18]
jne 0x18001f4a9
mov r8, rbp
mov rdx, qword [rbx + 0x10]
mov rcx, r12
call fcn.180069480
test eax, eax
je 0x18001f4b4
cmp rbx, r15
je 0x18001f4c3
mov rbx, qword [rbx + 8]
jmp 0x18001f490
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
jmp 0x18001f4cd
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], r13
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov r8, qword [0x1800a9b60]
mov rdx, qword [rsp + 0x20]
mov r9, qword [rdx + 8]
inc r8
mov qword [0x1800a9b60], r8
mov qword [rsi], rdx
mov qword [rsi + 8], r9
mov qword [r9], rsi
mov qword [rdx + 8], rsi
mov rax, qword [0x1800a9b80]
and rax, rdi
add rax, rax
mov rcx, qword [0x1800a9b68]
mov r8, qword [rcx + rax*8]
cmp r8, qword [0x1800a9b58]
jne 0x18001f527
mov qword [rcx + rax*8], rsi
jmp 0x18001f539
cmp r8, rdx
jne 0x18001f532
mov qword [rcx + rax*8], rsi
jmp 0x18001f53e
cmp qword [rcx + rax*8 + 8], r9
jne 0x18001f53e
mov qword [rcx + rax*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1800499bc
int3
Function at 0x18001f950
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbx, r8
mov r14, rdx
movups xmm0, xmmword [r8]
movaps xmmword [rsp + 0x30], xmm0
movabs rdi, 0xcbf29ce484222325
xor ecx, ecx
mov r8, qword [r8 + 8]
test r8, r8
je 0x18001f9b3
movabs r9, 0x100000001b3
mov rdx, qword [rsp + 0x30]
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor rdi, rax
imul rdi, r9
inc rcx
cmp rcx, r8
jb 0x18001f9a0
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.18001f880
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x18001f9da
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x18001fb9a
movabs rax, 0x555555555555555
cmp qword [0x1800a9b60], rax
je 0x18001fbb7
lea rax, [0x1800a9b58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov ecx, 0x30
call fcn.18004a330
mov rsi, rax
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rbx]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x20], xmm1
mov r8, qword [0x1800a9b60]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x18001fa41
cvtsi2ss xmm0, rcx
jmp 0x18001fa56
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x1800a9b88]
xorps xmm1, xmm1
test rcx, rcx
js 0x18001fa6c
cvtsi2ss xmm1, rcx
jmp 0x18001fa81
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x1800a9b50]
seta al
test al, al
je 0x18001fb33
call fcn.18001f590
mov rax, qword [0x1800a9b80]
and rax, rdi
add rax, rax
mov r15, qword [0x1800a9b68]
mov rbx, qword [r15 + rax*8 + 8]
mov rcx, qword [0x1800a9b58]
cmp rbx, rcx
jne 0x18001fac8
mov qword [rsp + 0x20], rcx
jmp 0x18001fb18
mov r15, qword [r15 + rax*8]
movups xmm0, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x30]
nop
cmp rbp, qword [rbx + 0x18]
jne 0x18001faf9
mov r8, rbp
mov rdx, qword [rbx + 0x10]
mov rcx, r12
call fcn.180069480
test eax, eax
je 0x18001fb04
cmp rbx, r15
je 0x18001fb13
mov rbx, qword [rbx + 8]
jmp 0x18001fae0
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbx
jmp 0x18001fb21
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], 0
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
mov r8, qword [0x1800a9b60]
mov rdx, qword [rsp + 0x20]
mov r9, qword [rdx + 8]
inc r8
mov qword [0x1800a9b60], r8
mov qword [rsi], rdx
mov qword [rsi + 8], r9
mov qword [r9], rsi
mov qword [rdx + 8], rsi
mov rax, qword [0x1800a9b80]
and rax, rdi
add rax, rax
mov rcx, qword [0x1800a9b68]
mov r8, qword [rcx + rax*8]
cmp r8, qword [0x1800a9b58]
jne 0x18001fb7b
mov qword [rcx + rax*8], rsi
jmp 0x18001fb8d
cmp r8, rdx
jne 0x18001fb86
mov qword [rcx + rax*8], rsi
jmp 0x18001fb92
cmp qword [rcx + rax*8 + 8], r9
jne 0x18001fb92
mov qword [rcx + rax*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1800499bc
int3
Function at 0x180020020
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13c0
call fcn.180069350
sub rsp, rax
mov rax, qword [0x1800a7048]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov edi, edx
mov ebx, ecx
call fcn.18004a12c
mov dword [rsp + 0x24], eax
mov r9d, 1
mov r10d, 0x270
mov dword [rsp + 0x13a4], 0xffffffff
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, r10
jb 0x180020073
lea eax, [rbx - 0x80000000]
mov dword [rsp + 0x20], r10d
mov ebp, 0x80000000
cmp ebx, ebp
lea esi, [rbx + rbp]
cmovae esi, eax
lea ebx, [rdi + rbp]
cmp edi, ebp
lea eax, [rdi - 0x80000000]
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x180020140
lea r8, [rsp + 0x28]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1800200d0
mov eax, dword [rsp + 0x20]
mov edx, dword [rsp + rax*4 + 0x24]
mov eax, edx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x18002017e
lea rcx, [rsp + 0x20]
inc ebx
call fcn.1800201c0
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x18002017a
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x18002017a
lea rcx, [rsp + 0x20]
call fcn.1800201c0
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x180020166
shr rcx, 0x20
lea edx, [rsi + rcx]
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rbp]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.18004a310
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800201c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180020221
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1800201e0
mov ecx, dword [r10]
jmp 0x18002030a
cmp ecx, 0x4e0
jb 0x18002030a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180020240
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180020290
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1800216b0
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 0x18002170d
lea rbx, [0x180092260]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800216f4
cmp r10, 2
jb 0x1800216f4
cmp byte [r9], r8b
jne 0x1800216f4
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 0x1800216d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18002174f
lea rbx, [0x180092260]
cmp r8b, 0x23
jne 0x180021733
cmp byte [r9], r8b
jne 0x180021733
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 0x180021720
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180021890
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1800218aa
mov qword [r8], 0
lea rdx, [0x180097de4]
call fcn.180021760
mov rbx, rax
test rax, rax
jne 0x1800218ca
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.1800540d4
mov esi, eax
cmp eax, 0xffffffff
je 0x180021998
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.180054bcc
test eax, eax
jne 0x180021998
mov rcx, rbx
call fcn.1800540d4
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180021998
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.180054bcc
test eax, eax
jne 0x180021998
cmp rdi, 0xffffffffffffffff
je 0x180021998
mov rax, qword [0x1800a99d0]
test rax, rax
je 0x18002193a
inc dword [rax + 0x3b4]
mov rcx, rdi
call fcn.18005af08
mov rsi, rax
test rax, rax
je 0x180021998
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.180055954
mov rcx, rbx
cmp rax, rdi
je 0x180021986
call fcn.1800548c4
mov rax, qword [0x1800a99d0]
test rax, rax
je 0x18002197c
dec dword [rax + 0x3b4]
mov rcx, rsi
call fcn.1800556e0
jmp 0x1800219a0
call fcn.1800548c4
test r14, r14
je 0x180021993
mov qword [r14], rdi
mov rax, rsi
jmp 0x1800219a2
mov rcx, rbx
call fcn.1800548c4
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 0x18002da40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800a7048]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1800a99d0]
mov edi, edx
cmp byte [rbx + 0x1f4d], 0
jne 0x18002daa0
cmp byte [rbx + 0x1f4e], 0
jne 0x18002daa0
mov r9d, dword [rbx + 0x2ff8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180021630
test dil, 1
je 0x18002dbbe
jmp 0x18002db28
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x2ff8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180098264]
mulss xmm1, dword [0x180098258]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1cc8], rax
mov dword [rbx + 0x1cb4], 1
movss dword [rbx + 0x1cc0], xmm0
movss dword [rbx + 0x1cc4], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x180098120]
or dword [rbx + 0x1cb0], 0x41
movss dword [rbx + 0x1d10], xmm0
call fcn.180021630
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x18002db78
lea r11, [0x180092260]
cmp r9b, 0x23
jne 0x18002db5b
cmp byte [r8], r9b
jne 0x18002db5b
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 0x18002db48
not ecx
call fcn.180027df0
test rax, rax
je 0x18002dbbe
cmp byte [rax + 0x8e], 0
je 0x18002dbbe
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ff8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ff8]
call fcn.180021630
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.18002a440
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18004a310
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180047f60
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800a7048]
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]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180047faf
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800a9c70]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180047fed
cmp rsi, r14
jb 0x180047fe5
cmp rsi, r15
jae 0x180047fe5
cmp qword [rsi + 8], 0
jne 0x1800481b7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180047fd0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180048082
nop dword [rax]
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 0x180048079
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 0x180048079
cmp dword [rsp + 0x40], 0x10000
je 0x1800480fb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180048079
sub rbx, rbp
cmp rbx, r14
jae 0x180048040
test rsi, rsi
jne 0x180048160
cmp rdi, r15
ja 0x18004819f
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 0x18004819f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004819f
cmp dword [rsp + 0x40], 0x10000
je 0x180048131
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 0x1800480b2
jmp 0x18004819f
test rbx, rbx
je 0x180048079
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180048160
cmp rbx, r14
jae 0x180048020
jmp 0x180048082
test rdi, rdi
je 0x18004819f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180048160
cmp rdi, r15
jbe 0x180048090
jmp 0x18004819f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180048170
mov rax, qword [0x1800a9c70]
mov qword [rsi], rax
mov qword [0x1800a9c70], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004a310
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180048bb0
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 [0x1800a7048]
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 edi, r15d
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180048d59
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180048cf6
lea edi, [r15 + 1]
nop
cmp dword [rsp + 0x20], 0x10
jb 0x180048cb0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180048cb0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180048cb0
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180048c72
mov rcx, qword [0x1800a99e0]
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 0x180048cd9
jmp 0x180048ca3
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180048ca3
mov rcx, qword [0x1800a99e0]
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 0x180048cd9
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, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180048c20
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180048cf6
mov r8, qword [rbx]
mov edi, r15d
test r8, r8
je 0x180048cf6
mov rcx, qword [0x1800a99e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x180048d59
cmp qword [rbx], r15
je 0x180048d54
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180048d54
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 0x180048d4d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180048a00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180048d11
mov eax, r15d
jmp 0x180048d5e
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004a310
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180048d80
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, 0x30
mov rax, qword [0x1800a7048]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800a9c60]
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 0x180048df3
mov eax, 0xa
jmp 0x180048e82
test esi, esi
je 0x180048e15
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 0x180048e38
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180048e38
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180048e31
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180048e38
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
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 rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004a310
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180048eb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1800a9c6c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180048ef7
mov rax, qword [0x1800a9c60]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180048f04
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180048ee0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180048ef7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180048bb0
mov edi, eax
test eax, eax
jne 0x180048fed
mov r9d, dword [0x1800a9c6c]
cmp ebx, r9d
jae 0x180048f7c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800a9c60]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180048f75
mov edx, esi
mov ecx, ebx
call fcn.180048d80
mov edi, eax
test eax, eax
jne 0x180048f7c
mov r9d, dword [0x1800a9c6c]
inc ebx
cmp ebx, r9d
jb 0x180048f40
cmp qword [rsp + 0x20], 0
je 0x180048feb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180048fd7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
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 0x180048fc8
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 0x180048fa0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800a99e0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret