joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180065460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9, qword [rcx + 0x190]
mov r10, rcx
movsxd rax, edx
imul rbx, rax, 0x68
add rbx, qword [rcx + 0x18]
mov dword [rcx + 0x7c], edx
test dword [rbx], 0x10000
movss xmm0, dword [rbx + 0x34]
je 0x18006549c
addss xmm0, dword [rcx + 0x94]
lea rsi, [r9 + 0xd8]
movss dword [rsi], xmm0
movss xmm1, dword [rcx + 0xc8]
addss xmm1, dword [rcx + 0x84]
movss dword [r9 + 0xf0], xmm0
subss xmm0, dword [r9 + 0x10]
movss dword [r9 + 0xdc], xmm1
subss xmm0, dword [r9 + 0x118]
movss dword [r9 + 0x11c], xmm0
mov eax, dword [rcx + 0x90]
mov dword [r9 + 0x110], eax
movsx eax, byte [rbx + 0x62]
mov dword [r9 + 0x12c], eax
movss dword [r9 + 0x1f4], xmm1
mov eax, dword [rbx + 0x34]
mov dword [r9 + 0x1f0], eax
mov eax, dword [rbx + 0x38]
mov dword [r9 + 0x1f8], eax
mov eax, dword [rbx + 0x3c]
mov dword [r9 + 0x194], eax
cmp byte [rbx + 0x5a], 0
jne 0x180065537
maxss xmm1, dword [rcx + 0x88]
movss dword [r9 + 0xdc], xmm1
movzx eax, byte [rbx + 0x60]
mov byte [r9 + 0x93], al
cmp byte [rbx + 0x60], 0
je 0x18006555d
mov rax, qword [0x1800e0120]
xor ecx, ecx
mov dword [rax + 0x32f0], ecx
mov dword [rax + 0x32f8], ecx
test dword [r10 + 4], 0x100000
je 0x180065572
mov r8d, 2
jmp 0x1800655f2
movups xmm0, xmmword [rbx + 0x20]
mov rax, qword [r9 + 0x270]
movss xmm4, dword [rbx + 0x20]
movss xmm3, dword [rbx + 0x24]
movss xmm2, dword [rbx + 0x28]
movss xmm1, dword [rbx + 0x2c]
movups xmmword [r9 + 0x210], 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 + 0x270]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
movzx r8d, byte [rbx + 0x57]
mov rdx, qword [r9 + 0x270]
mov rcx, qword [r10 + 0x1a8]
call fcn.1800591f0
mov rdi, qword [0x1800e0120]
cmp byte [rdi + 0x4754], 0
je 0x180065637
cmp byte [rbx + 0x60], 0
jne 0x180065637
xor r8d, r8d
lea rdx, [0x1800ce2c8]
mov rcx, rsi
call fcn.18001a7f0
mov dword [rdi + 0x4788], 0x7f7fffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180067b00
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x1800e0120]
mov rdx, qword [rax + 0x3688]
cmp ecx, 0xffffffff
jne 0x180067b1a
cmp dword [rdx + 0x7c], ecx
cmovne ecx, dword [rdx + 0x7c]
cmp ecx, dword [rdx + 0x74]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x180067b99
mov r10d, dword [rdx]
lea r8, [0x1800ce2b9]
movzx eax, word [rdx + 0x80]
lea r11, [0x1800bb680]
not r10d
mov byte [rdx + 0x1f0], cl
mov ecx, r10d
mov byte [rdx + 0x1fe], 1
mov word [rdx + 0x82], ax
mov r9b, 0x23
cmp r9b, 0x23
jne 0x180067b73
cmp byte [r8], r9b
jne 0x180067b73
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 0x180067b60
not ecx
xor edx, edx
jmp fcn.180014f30
ret
Function at 0x180086de0
Capabilities:
Hash data with crc32

Disassembly:
test dword [rcx + 0x10], 0x100000
je 0x180086e5d
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x180086e36
lea r11, [0x1800bb680]
cmp r9b, 0x23
jne 0x180086e19
cmp byte [r8], r9b
jne 0x180086e19
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180086e06
mov rcx, qword [0x1800e0120]
not eax
cmp dword [rcx + 0x327c], eax
jne 0x180086e4d
mov dword [rcx + 0x3280], eax
cmp dword [rcx + 0x32c0], eax
jne 0x180086e70
mov byte [rcx + 0x32c4], 1
ret
mov rax, qword [0x1800e0120]
mov rcx, qword [rax + 0x3230]
jmp fcn.180008030
ret

Function at 0x18008fea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1800db028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x18008fee6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x18008fed6
cmp byte [rax], cl
jne 0x18008fee6
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x18008fec7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x18009004a
cmp byte [r8 + 1], dl
je 0x18009004a
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x18008ff22
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x18008ff4a
sub dl, 0x61
cmp dl, 0x19
ja 0x18008ff3c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x18008ff4a
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x18008ff05
jmp 0x18008ff4d
inc r9
cmp r8, r9
jae 0x18008ff7f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x18008ff74
bt rdx, rax
jb 0x18008ff7a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x18008ff60
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.180003d90
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x18008ffb8
nop
inc rcx
cmp byte [rcx], 0x20
je 0x18008ffb0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180090038
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x18008ffd3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x18008ffe9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x180090026
movss xmm2, dword [0x1800cf564]
cmp al, 0x39
ja 0x180090026
movzx eax, al
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x180090000
cmp r9b, 0x2d
jne 0x180090045
xorps xmm1, xmmword [0x1800cff00]
movaps xmm0, xmm1
jmp 0x18009004d
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x18009004d
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180098380
add rsp, 0x90
pop rbx
ret
Function at 0x180090690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1800db028]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r8, rcx
mov ebx, edx
movzx ecx, byte [rcx]
test cl, cl
je 0x1800906d6
lea rax, [r8 + 1]
cmp cl, 0x25
jne 0x1800906c6
cmp byte [rax], cl
jne 0x1800906d6
cmp cl, cl
cmovne rax, r8
movzx ecx, byte [rax + 1]
lea r8, [rax + 1]
test cl, cl
jne 0x1800906b7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x180090834
cmp byte [r8 + 1], dl
je 0x180090834
lea r11, [rsp + 0x20]
mov r9, r8
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x180090712
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x18009073a
sub dl, 0x61
cmp dl, 0x19
ja 0x18009072c
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x18009073a
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x1800906f5
jmp 0x18009073d
inc r9
cmp r8, r9
jae 0x18009076f
movabs rdx, 0x800000000000009
nop dword [rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x180090764
bt rdx, rax
jb 0x18009076a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x180090750
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.180003d90
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1800907a8
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x1800907a0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x180090826
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1800907c3
movzx r8d, byte [rcx + 1]
lea rdx, [rcx + 1]
movzx eax, r8b
cmovne rdx, rcx
cmp r8b, 0x2b
jne 0x1800907d9
movzx eax, byte [rdx + 1]
lea rcx, [rdx + 1]
xorps xmm1, xmm1
cmovne rcx, rdx
cmp al, 0x30
jl 0x180090814
movsd xmm2, qword [0x1800cf508]
cmp al, 0x39
ja 0x180090814
movzx eax, al
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x1800907f0
cmp r9b, 0x2d
jne 0x18009082f
xorps xmm1, xmmword [0x1800cfef0]
movaps xmm0, xmm1
jmp 0x180090837
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x180090837
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180098380
add rsp, 0x90
pop rbx
ret
Function at 0x180090850
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800db028]
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 0x18009089f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800e1740]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800908dd
cmp rsi, r14
jb 0x1800908d5
cmp rsi, r15
jae 0x1800908d5
cmp qword [rsi + 8], 0
jne 0x180090aa7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800908c0
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 0x180090972
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 0x180090969
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 0x180090969
cmp dword [rsp + 0x40], 0x10000
je 0x1800909eb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180090969
sub rbx, rbp
cmp rbx, r14
jae 0x180090930
test rsi, rsi
jne 0x180090a50
cmp rdi, r15
ja 0x180090a8f
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 0x180090a8f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180090a8f
cmp dword [rsp + 0x40], 0x10000
je 0x180090a21
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 0x1800909a2
jmp 0x180090a8f
test rbx, rbx
je 0x180090969
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 0x180090a50
cmp rbx, r14
jae 0x180090910
jmp 0x180090972
test rdi, rdi
je 0x180090a8f
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 0x180090a50
cmp rdi, r15
jbe 0x180090980
jmp 0x180090a8f
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 0x180090a60
mov rax, qword [0x1800e1740]
mov qword [rsi], rax
mov qword [0x1800e1740], 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.180098380
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800914a0
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 [0x1800db028]
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 qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800915cb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800915c2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800915a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800915a4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800915a4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180091562
mov rcx, qword [0x1800e0140]
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 0x1800915c2
jmp 0x180091597
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180091597
mov rcx, qword [0x1800e0140]
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 0x1800915c2
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 qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180091510
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180091623
cmp dword [rbx + 0xc], esi
jbe 0x180091623
nop word [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 0x18009161c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800912f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800915e0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180098380
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 0x180091650
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 [0x1800db028]
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 [0x1800e1730]
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 0x1800916c3
mov eax, 0xa
jmp 0x180091752
test esi, esi
je 0x1800916e5
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 0x180091708
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180091708
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180091701
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180091708
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.180098380
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180091780
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 [0x1800e173c]
mov ebx, edi
test ecx, ecx
je 0x1800918bb
mov rax, qword [0x1800e1730]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800917d8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800917b0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800918bb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800914a0
mov r8d, dword [0x1800e173c]
cmp ebx, r8d
jae 0x180091848
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800e1730]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180091841
mov edx, esi
mov ecx, ebx
call fcn.180091650
mov edi, eax
test eax, eax
jne 0x180091848
mov r8d, dword [0x1800e173c]
inc ebx
cmp ebx, r8d
jb 0x180091810
cmp qword [rsp + 0x20], 0
je 0x1800918bb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800918a7
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 0x180091898
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 0x180091870
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800e0140]
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 0x180091c50
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x1800e0138], edi
je 0x180091c99
cmp rbx, 0x20
jae 0x180091c82
xor ecx, ecx
jmp 0x180091c84
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800e0138], edi
jne 0x180091c78
cmp qword [0x1800e0140], r14
mov qword [rsp + 0x60], r13
je 0x180091e2b
mov ecx, dword [0x1800e173c]
mov ebx, r15d
test ecx, ecx
je 0x180091cd1
mov rdx, qword [0x1800e1730]
mov rax, rdx
cmp qword [rax], r14
je 0x180091cdc
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180091cc2
mov r14d, 4
jmp 0x180091e31
cmp ebx, 0xffffffff
je 0x180091cd1
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x180091d90
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800914a0
xor edx, edx
mov ecx, ebx
call fcn.180091650
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x180091d80
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180091d6c
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180091d58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x180091d30
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800e0140]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180091e31
mov rdx, qword [0x1800e1730]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.180090ad0
mov edx, dword [0x1800e173c]
dec edx
cmp ebx, edx
jae 0x180091ddf
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x1800e1730]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1800e1738]
mov eax, ecx
mov dword [0x1800e173c], edx
shr eax, 1
cmp eax, 0x20
jb 0x180091e31
cmp eax, edx
jb 0x180091e31
mov r8, qword [0x1800e1730]
mov eax, ecx
mov rcx, qword [0x1800e0140]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180091e31
shr dword [0x1800e1738], 1
mov qword [0x1800e1730], rax
jmp 0x180091e31
mov r14d, 2
xchg dword [0x1800e0138], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180091e50
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1800e0138], ebp
je 0x180091ea7
cmp rbx, 0x20
jae 0x180091e90
xor ecx, ecx
jmp 0x180091e92
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800e0138], ebp
jne 0x180091e86
cmp qword [0x1800e0140], r15
je 0x180091fa1
test rdi, rdi
jne 0x180091ec7
mov ecx, esi
call fcn.180091780
mov ebp, eax
jmp 0x180091fa6
mov ecx, dword [0x1800e173c]
mov ebx, r15d
test ecx, ecx
je 0x180091eef
mov r8, qword [0x1800e1730]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180091ef9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180091ee0
mov ebp, 4
jmp 0x180091fa6
cmp ebx, 0xffffffff
je 0x180091eef
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180091f98
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800914a0
mov edx, esi
mov ecx, ebx
call fcn.180091650
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180091fa6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180091f82
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
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 0x180091f78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180091f50
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800e0140]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180091fa6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180091fa6
mov ebp, 2
xchg dword [0x1800e0138], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180096650
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ecx, ecx
mov qword [rbx + 0x60], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x1800cf01c]
mov rcx, rbx
mov r9, rax
lea rdx, str.CONIN_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 8]
lea r8, [0x1800cf028]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 0x10]
lea r8, [0x1800cf028]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.Debug_Console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rbx + 0x60]
mov edx, 5
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]