joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003fb50
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 [0x1801925c0]
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 [0x1801944f0]
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 0x18003fbb9
mov eax, 0xa
jmp 0x18003fc06
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 0x18003fbd5
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.1800b1bb0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18003fc30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x1801944fc]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x18003fd40
mov rcx, qword [0x1801944f0]
add rcx, 0x20
test byte [rcx], 2
je 0x18003fc73
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x18003fc57
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18003fd40
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.18003f9a0
mov edx, dword [0x1801944fc]
cmp ebx, edx
jae 0x18003fccd
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1801944f0]
test byte [rcx + rax + 0x20], 2
jne 0x18003fcc7
mov ecx, ebx
call fcn.18003fb50
mov edi, eax
test eax, eax
jne 0x18003fccd
mov edx, dword [0x1801944fc]
inc ebx
cmp ebx, edx
jb 0x18003fca0
cmp qword [rsp + 0x20], 0
je 0x18003fd40
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003fd2c
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 0x18003fd18
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 0x18003fcf0
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801935d8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180040120
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 rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1801935d0], esi
je 0x180040175
cmp rbx, 0x20
jae 0x18004015e
xor ecx, ecx
jmp 0x180040160
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801935d0], esi
jne 0x180040154
cmp qword [0x1801935d8], r15
je 0x18004025f
test rdi, rdi
jne 0x180040193
call fcn.18003fc30
mov ebp, eax
jmp 0x180040264
mov ecx, dword [0x1801944fc]
mov ebx, r15d
test ecx, ecx
je 0x1800401bf
mov r8, qword [0x1801944f0]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800401c9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800401b0
mov ebp, 4
jmp 0x180040264
cmp ebx, 0xffffffff
je 0x1800401bf
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180040258
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18003f9a0
mov ecx, ebx
call fcn.18003fb50
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180040264
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180040242
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 0x180040238
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 0x180040210
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801935d8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180040264
mov ebp, 5
jmp 0x180040264
mov ebp, 2
xchg dword [0x1801935d0], 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 0x180050af0
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
sub rsp, 0x98
mov rax, qword [0x1801925c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [0x1801936b6], 0
je 0x180050d59
mov rax, qword [0x180193628]
test rax, rax
je 0x180050d59
mov qword [r11 + 0x18], rsi
movsxd rsi, dword [rax + 0x240]
mov qword [r11 - 8], r14
xor r14d, r14d
test rsi, rsi
jle 0x180050c47
mov qword [r11 + 0x20], rdi
mov edi, r14d
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
nop dword [rax]
nop word [rax + rax]
mov rax, qword [0x180193628]
mov rcx, qword [rax + 0x238]
mov rax, qword [rcx + rdi*8]
test rax, rax
je 0x180050c23
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.180052d10
mov rbx, qword [rsp + 0x20]
mov ebp, dword [rax]
cmp byte [rbx + 0x368], r14b
jne 0x180050bac
lea rdx, [rsp + 0x20]
call fcn.180052d10
mov dword [rax], 0x1869f
jmp 0x180050c23
mov rbx, qword [rbx + 0x280]
test rbx, rbx
je 0x180050c23
call fcn.180042e90
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180050c23
cmp rcx, rax
je 0x180050bd6
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x180050bc6
jmp 0x180050c23
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x280]
test rcx, rcx
je 0x180050c23
call fcn.1800429f0
mov rbx, rax
test rax, rax
je 0x180050c23
call fcn.180042c30
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180050c14
cmp rcx, rax
je 0x180050d38
mov rcx, qword [rcx + 0x40]
test rcx, rcx
jne 0x180050c02
lea rdx, [rsp + 0x20]
call fcn.180052d10
lea ecx, [rbp + 1]
mov dword [rax], ecx
inc rdi
cmp rdi, rsi
jl 0x180050b60
mov rdi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov ecx, dword [0x180193494]
mov rax, qword gs:[0x58]
mov rsi, qword [rsp + 0xb0]
mov edx, 8
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x180194420], ecx
jle 0x180050cb2
lea rcx, [0x180194420]
call fcn.1800b1c78
cmp dword [0x180194420], 0xffffffff
jne 0x180050cb2
xorps xmm0, xmm0
lea rax, [0x1801928b4]
movups xmmword [0x180194428], xmm0
lea rcx, [0x180194420]
mov qword [0x180194428], rax
mov byte [0x180194430], r14b
call fcn.1800b1c0c
mov rcx, qword [0x180194428]
mov ecx, dword [rcx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180050d4a
cmp byte [0x180194430], r14b
jne 0x180050d51
cmp dword [reloc.WS2_32.dll_bind], 2
mov byte [0x180194430], 1
je 0x180050d51
call fcn.180050d80
test al, al
je 0x180050d51
xorps xmm0, xmm0
mov dword [rsp + 0x30], r14d
xor eax, eax
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x78], rax
movups xmmword [rsp + 0x58], xmm0
lea r8d, [rax + 0x28]
mov dword [rsp + 0x44], 8
movups xmmword [rsp + 0x68], xmm0
lea ecx, [rax + 2]
mov dword [rsp + 0x58], r14d
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x6c], reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_SendInput]
jmp 0x180050d51
lea rdx, [rsp + 0x20]
call fcn.180052d10
mov dword [rax], r14d
jmp 0x180050c23
mov byte [0x180194430], r14b
mov r14, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800b1bb0
add rsp, 0x98
ret
Function at 0x180053780
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1800537a8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1800537ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800537d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180053829
test ecx, ecx
jle 0x180053809
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180053829
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180053829
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180053850
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180053872
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180053888
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800538a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800538a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800538e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18005397e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18005391d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18005395e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18005397e
cmp rbx, rax
ja 0x180053930
test rbx, rbx
je 0x18005397e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180053db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801925c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180053ddd
xor eax, eax
jmp 0x180053f49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180053e17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180053e17
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180053f49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180053f3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180053e5a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180053e85
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180053f41
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180053ef4
sub eax, 1
je 0x180053ef4
cmp eax, 2
jne 0x180053f3c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180053f41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180053f22
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x180053f3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180053f41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800b1bb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x180054b20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1801925c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180054bf3
cmp byte [rcx + 0x71], 0
je 0x180054bf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x180054bef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180054bb4
sub eax, 1
je 0x180054bb8
cmp eax, 2
jne 0x180054bef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800b1bb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180054be6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180054bef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180054b9c
xor al, al
jmp 0x180054b9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800b1bb0
add rsp, 0x60
pop rbx
ret
Function at 0x18005b8e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801925c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], r8
mov rax, qword [0x1801935b8]
mov rbp, qword [rax + 0x3c00]
mov rcx, qword [0x180194278]
mov rcx, qword [rcx + 0x80]
call fcn.180011070
cmp byte [rsi], 0
je 0x18005b96d
lea rdx, [rsp + 0x20]
lea rcx, [0x1800c3f5c]
call fcn.180033480
xor ebx, ebx
nop
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x18005b95c
inc ebx
cmp ebx, 0x4b0
jl 0x18005b940
jmp 0x18005ba6d
mov byte [0x1801936b3], 1
mov dword [rdi], ebx
mov byte [rsi], 0
jmp 0x18005ba6d
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8d, 3
lea rdx, [0x1800c4c8c]
lea rcx, [rsp + 0x28]
call fcn.18005ab20
nop
xor ebx, ebx
mov r8, qword [0x180194260]
mov r10, qword [0x180194268]
mov rax, r10
sub rax, r8
sar rax, 2
test rax, rax
je 0x18005ba10
mov r9d, dword [rdi]
mov edx, ebx
nop word [rax + rax]
cmp r9d, dword [rdx + r8]
je 0x18005b9e0
inc ebx
add rdx, 4
mov rcx, r10
sub rcx, r8
sar rcx, 2
movsxd rax, ebx
cmp rax, rcx
jb 0x18005b9c0
jmp 0x18005ba10
movsxd rdx, ebx
shl rdx, 5
add rdx, qword [0x180194248]
lea rax, [rsp + 0x28]
cmp rax, rdx
je 0x18005ba10
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18005ba06
mov rdx, qword [rdx]
lea rcx, [rsp + 0x28]
call fcn.180055200
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x20]
call fcn.180033480
mov byte [rsi], al
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x18005ba6d
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005ba68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005ba68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b1cf0
mov rcx, rbp
call fcn.180011070
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800b1bb0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800639c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c8
call fcn.1800b28b0
sub rsp, rax
mov rax, qword [0x1801925c0]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x180063a00
movsd xmm2, qword [0x1801818e0]
mov edx, 0x270
movsd xmm4, qword [0x1801819a8]
xorps xmm3, xmm3
mov dword [rsp + 0x20], edx
xorps xmm0, xmm0
mov r10d, 2
cmp edx, 0x270
jne 0x180063aa2
lea r8, [rsp + 0x28]
mov r9d, edx
nop dword [rax]
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 0x180063a60
mov edx, dword [rsp + 0x20]
jmp 0x180063b80
cmp edx, 0x4e0
jb 0x180063b80
xor r8d, r8d
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 + 0x1018]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0xe3
jb 0x180063ab1
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rsp + r8*4 + 0x9e4]
mov edx, eax
xor edx, dword [rsp + r8*4 + 0x9e8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rsp + r8*4 - 0x368]
xor ecx, edx
mov dword [rsp + r8*4 + 0x24], ecx
inc r8
cmp r8, 0x26f
jb 0x180063b00
mov edx, dword [rsp + 0x13a0]
mov eax, dword [rsp + 0x24]
and edx, 0x80000000
btr eax, 0x1f
or edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [rsp + 0x654]
xor edx, edx
mov dword [rsp + 0x9e0], ecx
mov dword [rsp + 0x20], edx
mov eax, edx
xorps xmm1, xmm1
inc edx
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov dword [rsp + 0x20], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm1, rax
subsd xmm1, xmm3
mulsd xmm1, xmm2
mulsd xmm2, xmm4
addsd xmm0, xmm1
sub r10, 1
jne 0x180063a44
divsd xmm0, xmm2
addsd xmm0, xmm3
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1800b1bb0
add rsp, 0x13c8
ret
Function at 0x180063f00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x180063f61
lea r8, [r9 + 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 r10, 1
jne 0x180063f20
mov ecx, dword [r9]
jmp 0x180064048
cmp ecx, 0x4e0
jb 0x180064048
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180063f80
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180063fd0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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