joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a2710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push r13
push r14
push r15
mov qword [rsp + 0x28], rbp
xor r10d, r10d
mov qword [rsp + 0x30], rsi
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov rax, rcx
mov qword [rsp + 0x40], r12
mov r14d, r10d
lea r15, [0x180000000]
mov r13, rax
test rbx, rbx
je 0x1800a2750
cmp rax, rbx
jae 0x1800a28fc
movzx r8d, byte [rax]
test r8b, r8b
je 0x1800a28fc
mov r11d, r10d
mov ecx, r8d
shr rcx, 3
mov rdx, rbx
movsx r9, byte [rcx + r15 + 0x1e0170]
test r9d, r9d
sete r11b
add r11d, r9d
test rbx, rbx
jne 0x1800a2788
movsxd rdx, r11d
add rdx, rax
cmp rax, rdx
lea rcx, [rax + 1]
mov edi, r8d
cmovae edi, r10d
cmp rcx, rdx
jae 0x1800a27a1
movzx r12d, byte [rcx]
jmp 0x1800a27a4
xor r12b, r12b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1800a27b2
movzx ebp, byte [rcx]
jmp 0x1800a27b5
xor bpl, bpl
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1800a27c3
movzx esi, byte [rcx]
jmp 0x1800a27c6
xor sil, sil
lea r9, [r9*4]
movzx ecx, dil
mov r15d, dword [r9 + r15 + 0x1e0190]
and r15d, ecx
movzx r8d, r12b
shl r15d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, bpl
or r15d, ecx
movzx r10d, sil
shl r15d, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or r15d, ecx
and r8d, 0xc0
mov ecx, r10d
shl r15d, 6
and ecx, 0x3f
shr r10d, 2
or r10d, edx
or r15d, ecx
shr r10d, 2
lea rcx, [0x180000000]
mov ecx, dword [r9 + rcx + 0x1e01c0]
or r10d, r8d
shr r15d, cl
lea rcx, [0x180000000]
shr r10d, 2
mov edx, r15d
cmp r15d, dword [r9 + rcx + 0x1e01a8]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r10d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r10d, r8d
mov ecx, 0x100
cmp r15d, 0xffff
cmova edx, ecx
lea rcx, [0x180000000]
mov ecx, dword [r9 + rcx + 0x1e01d8]
or r10d, edx
xor r10d, 0x2a
sar r10d, cl
test r10d, r10d
je 0x1800a28e6
xor r10d, r10d
test dil, dil
mov eax, r10d
mov ecx, r10d
setne cl
test sil, sil
setne al
add ecx, eax
mov eax, r10d
test bpl, bpl
setne al
add ecx, eax
mov eax, r10d
test r12b, r12b
setne al
add ecx, eax
cmp r11d, ecx
cmovl ecx, r11d
movsxd rax, ecx
add rax, r13
inc r14d
jmp 0x1800a2738
movsxd rcx, r11d
add rax, rcx
test r15d, r15d
je 0x1800a28fc
xor r10d, r10d
inc r14d
jmp 0x1800a2738
mov r12, qword [rsp + 0x40]
mov eax, r14d
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
pop r15
pop r14
pop r13
pop rbx
ret
Function at 0x1800a2970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x1800a2b99
mov qword [r11 + 0x20], rsi
lea rsi, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x1800a29d2
cmp r8, rbp
jae 0x1800a2b76
movzx edx, byte [r8]
test dl, dl
je 0x1800a2b76
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x1e0170]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x1800a2a08
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x1800a2a21
movzx r13d, byte [rax]
jmp 0x1800a2a24
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x1800a2a33
movzx r12d, byte [rax]
jmp 0x1800a2a36
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x1800a2a45
movzx r15d, byte [rax]
jmp 0x1800a2a48
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x1e0190]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x1e01c0]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x1e01a8]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x1e01d8]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x1800a2b53
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x1800a2b5d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x1800a2b76
mov word [rdi], si
add rdi, 2
lea rsi, [0x180000000]
cmp rdi, qword [rsp + 8]
jb 0x1800a29c0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x1800a2baf
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800a9e50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rax, qword [0x18026c3f0]
lea rdx, [0x1801dfd70]
mov r8d, ecx
mov rbx, qword [rax + 0x3ed0]
add rbx, 0xe8
movsxd r9, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + r9*4 - 4]
not edi
movzx eax, r8b
mov r8d, dword [rbx + 4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x31]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x32]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
xor rcx, rax
shr edi, 8
movzx eax, byte [rsp + 0x33]
xor edi, dword [rdx + rcx*4]
movzx ecx, dil
shr edi, 8
xor rcx, rax
xor edi, dword [rdx + rcx*4]
not edi
cmp r9d, r8d
jne 0x1800a9f07
lea ecx, [r9 + 1]
test r8d, r8d
je 0x1800a9ef3
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1800a9ef8
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.1800b3250
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800b1610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x18026c3f0]
cmp byte [rbx + 0x5ba1], 0
jne 0x1800b1762
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800b175b
lea rdx, [0x1801e0df8]
mov qword [rsp + 0x40], rdi
call fcn.1800a17a0
mov rdi, rax
test rax, rax
je 0x1800b1756
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call fcn.1801b2690
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800b1744
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1801b1fcc
test eax, eax
jne 0x1800b1744
mov rcx, rdi
call fcn.1801b2690
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1800b1744
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.1801b1fcc
test eax, eax
jne 0x1800b1744
cmp rsi, 0xffffffffffffffff
je 0x1800b1744
mov rax, qword [0x18026c3f0]
test rax, rax
je 0x1800b16d1
inc dword [rax + 0xf4]
mov rdx, qword [0x18026c400]
mov rcx, rsi
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x1800b1744
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.1801b1bfc
mov rcx, rdi
cmp rax, rsi
je 0x1800b170b
call fcn.1801b1514
jmp 0x1800b1720
call fcn.1801b1514
test rsi, rsi
je 0x1800b1720
mov rdx, rsi
mov rcx, rbp
call fcn.1800a4710
mov rax, qword [0x18026c3f0]
test rax, rax
je 0x1800b1732
dec dword [rax + 0xf4]
mov rdx, qword [0x18026c400]
mov rcx, rbp
call qword [0x180265008]
jmp 0x1800b174c
mov rcx, rdi
call fcn.1801b1514
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5ba1], 1
movss xmm0, dword [rbx + 0x5ba4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1800b17a5
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ba4], xmm0
jb 0x1800b17a5
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800b1794
call fcn.1800ad470
jmp 0x1800b179b
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5ba4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800ccbe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18026c3f0]
mov rcx, qword [rax + 0x4b18]
mov r10, qword [rax + 0x3ed0]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x290]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x230], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x290]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1800c05c0

Function at 0x1800cccb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18026c3f0]
mov rcx, qword [rax + 0x4b18]
mov r9, qword [rax + 0x3ed0]
movups xmm0, xmmword [r9 + 0x230]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x230], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x20f]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x290]
add rsp, 0x38
jmp fcn.1800c05c0
Function at 0x1800e43c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800e4400
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18026c4c0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800e443e
cmp rsi, r14
jb 0x1800e4436
cmp rsi, r15
jae 0x1800e4436
cmp qword [rsi + 8], 0
jne 0x1800e4607
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800e4421
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800e44d2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800e44c9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800e44c9
cmp dword [rsp + 0x70], 0x10000
je 0x1800e454b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800e44c9
sub rbx, rbp
cmp rbx, r14
jae 0x1800e4490
test rsi, rsi
jne 0x1800e45b0
cmp rdi, r15
ja 0x1800e45ef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
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 0x1800e45ef
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800e45ef
cmp dword [rsp + 0x70], 0x10000
je 0x1800e4581
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800e4502
jmp 0x1800e45ef
test rbx, rbx
je 0x1800e44c9
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 0x1800e45b0
cmp rbx, r14
jae 0x1800e4470
jmp 0x1800e44d2
test rdi, rdi
je 0x1800e45ef
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 0x1800e45b0
cmp rdi, r15
jbe 0x1800e44e0
jmp 0x1800e45ef
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 0x1800e45c0
mov rax, qword [0x18026c4c0]
mov qword [rsi], rax
mov qword [0x18026c4c0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800e4e50
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 [0x18026c4e4]
mov ebx, edi
test ecx, ecx
je 0x1800e4f8b
mov rax, qword [0x18026c4d8]
add rax, 0x21
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800e4ea8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800e4e80
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800e4f8b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800e5210
mov r8d, dword [0x18026c4e4]
cmp ebx, r8d
jae 0x1800e4f1b
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18026c4d8]
movzx edx, byte [rcx + rax + 0x21]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x1800e4f14
xor r8d, r8d
mov edx, esi
mov ecx, ebx
call fcn.1800e50c0
mov edi, eax
test eax, eax
jne 0x1800e4f1b
mov r8d, dword [0x18026c4e4]
inc ebx
cmp ebx, r8d
jb 0x1800e4ee0
cmp qword [rsp + 0x20], 0
je 0x1800e4f8b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800e4f77
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop word [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 0x1800e4f68
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 0x1800e4f40
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18026c4d0]
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 0x1800e50c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov eax, ecx
mov esi, edx
imul rdi, rax, 0x38
mov edx, 5
movzx ebp, r8b
add rdi, qword [0x18026c4d8]
mov dword [rsp + 0x50], edx
test byte [rdi + 0x21], 1
mov rbx, qword [rdi]
je 0x1800e50fe
mov edx, 7
add rbx, 0xfffffffffffffffb
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], rbx
test bpl, bpl
je 0x1800e5138
lea rax, [rsp + 0x60]
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
mov rcx, 0xffffffffffffffff
call fcn.1801a75e0
jmp 0x1800e514c
lea r9, [rsp + 0x60]
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x1800e516e
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, ebx
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x21], 1
je 0x1800e5191
mov rax, qword [rdi]
mov word [rax], 0xf9eb
jmp 0x1800e5191
mov eax, dword [rdi + 0x18]
test byte [rdi + 0x21], 1
mov dword [rbx], eax
je 0x1800e518a
movzx eax, word [rdi + 0x1c]
mov word [rbx + 4], ax
movzx eax, byte [rdi + 0x1e]
mov byte [rbx + 6], al
jmp 0x1800e5191
movzx eax, byte [rdi + 0x1c]
mov byte [rbx + 4], al
test bpl, bpl
je 0x1800e51bd
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
mov rcx, 0xffffffffffffffff
call fcn.1801a75e0
jmp 0x1800e51d4
mov edx, dword [rsp + 0x50]
lea r9, [rsp + 0x60]
mov r8d, dword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x58]
movzx ecx, sil
add cl, cl
shl sil, 2
xor cl, byte [rdi + 0x21]
and cl, 2
xor cl, byte [rdi + 0x21]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rdi + 0x21], sil
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800e5210
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 [0x180269dc0]
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 0x1800e533a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800e5331
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800e5314
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800e5314
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800e5314
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800e52d2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18026c4d0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800e5331
jmp 0x1800e5307
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800e5307
mov rcx, qword [0x18026c4d0]
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 0x1800e5331
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 0x1800e5280
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800e5393
cmp dword [rbx + 0xc], esi
jbe 0x1800e5393
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800e538c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800e57d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800e5350
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801a76e0
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 0x1800e5980
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800e59ef
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800e59d8
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800e59cc
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 0x1800e59a0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18026c4d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800eb790
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1800eb96f
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1800eb620
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x1800eb934
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x14]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x15]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x16]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x17]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800eb8ac
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1800eb923
mov rax, qword [r11 + 8]
mov r8, qword [rcx + 0x10]
cmp r8, qword [rax + 0x10]
jne 0x1800eb8e9
mov r8, qword [rax]
cmp r8, rcx
je 0x1800eb8e3
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1800eb923
cmp r9, rax
je 0x1800eb8ff
nop
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
je 0x1800eb949
cmp r9, rax
jne 0x1800eb8f0
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x1800eb830
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1800eb923
lea rcx, str.invalid_hash_bucket_count
call fcn.1801a8ce4
int3