joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180057250
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x88
mov rax, qword [0x180076040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x180077129], 0
je 0x1800574d3
mov qword [rsp + 0x80], rbx
call fcn.18005ea10
mov rcx, qword [0x180076ef0]
lea rdx, str.com_craftrise_client_S
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [0x180076ef0]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x18006b0ac]
mov qword [0x180077148], rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18005ea10
mov rcx, qword [0x180076ef0]
mov r8, rbx
mov rdx, rax
call fcn.1800555d0
mov ecx, 0x57
mov qword [rsp + 0x20], rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800574cb
mov rcx, qword [0x180076ef0]
mov rdx, rbx
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
mov rax, qword [rcx]
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x30], xmm10
mov r8, qword [rax + 0xf8]
call r8
mov rcx, qword [0x180076ef0]
lea r9, [0x180064020]
lea r8, [0x18006b254]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x2f0]
mov rdx, rax
call r10
mov rcx, qword [0x180076ef0]
mov r8, rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x330]
mov rdx, rbx
call r10
mov rcx, qword [0x180076ef0]
mov rdx, rbx
movaps xmm9, xmm0
mov rax, qword [rcx]
mov r8, qword [rax + 0xf8]
call r8
mov rcx, qword [0x180076ef0]
lea r9, [0x180064020]
lea r8, [0x180064040]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x2f0]
mov rdx, rax
call r10
mov rcx, qword [0x180076ef0]
mov r8, rax
mulss xmm9, dword [0x18006b994]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x330]
mov rdx, rbx
call r9
movaps xmm7, xmm0
movaps xmm0, xmm9
mulss xmm7, dword [0x18006b994]
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
movaps xmm10, xmm0
movaps xmm0, xmm7
xorps xmm10, xmmword [0x18006bd20]
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movss xmm8, dword [0x18006b9b4]
movaps xmm6, xmm0
mulss xmm6, xmm10
movaps xmm0, xmm7
mulss xmm6, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
movaps xmm7, xmm0
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
mulss xmm7, xmm0
mov ecx, 0x41
mulss xmm7, xmm8
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18005745a
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
mulss xmm0, xmm8
addss xmm6, xmm0
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_sinf
mulss xmm0, xmm8
addss xmm7, xmm0
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18005748d
movaps xmm0, xmm9
call sub.api_ms_win_crt_math_l1_1_0.dll_cosf
xorps xmm0, xmmword [0x18006bd20]
mulss xmm0, xmm8
mulss xmm10, xmm8
addss xmm6, xmm0
addss xmm7, xmm10
xorps xmm1, xmm1
lea rcx, [rsp + 0x20]
cvtss2sd xmm1, xmm6
call fcn.1800575d0
xorps xmm1, xmm1
lea rcx, [rsp + 0x20]
cvtss2sd xmm1, xmm7
call fcn.1800576e0
movaps xmm10, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm8, xmmword [rsp + 0x50]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180060260
add rsp, 0x88
ret
Function at 0x180058dd0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180076040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, 0x4e4f4e45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
shr ebx, 0xf
and bl, 1
je 0x180058e09
cmp byte [0x180077107], 0
jne 0x180058e09
call fcn.180058c70
cmp byte [0x1800770fa], 0
mov byte [0x180077107], bl
je 0x180058fc6
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
call fcn.18005ea10
mov rcx, qword [0x180076ef0]
lea rdx, str.com_craftrise_client_S
mov rsi, rax
mov r8, qword [rcx]
call qword [r8 + 0x30]
mov rcx, qword [0x180076ef0]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x18006b0ac]
mov qword [0x180077148], rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18005ea10
mov rcx, qword [0x180076ef0]
mov r8, rbx
mov rdx, rax
call fcn.1800555d0
mov rcx, qword [0x180076ef0]
lea rdx, str.com_craftrise_client_S
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [0x180076ef0]
lea r9, str.Lcom_craftrise_client_cf_
lea r8, [0x18006b90c]
mov qword [0x180077148], rax
mov rdx, rax
mov r10, qword [rcx]
call qword [r10 + 0x2f0]
mov rdi, rax
mov qword [0x180077170], rax
call fcn.18005ea10
mov rcx, qword [0x180076ef0]
mov r8, rdi
mov rdx, rax
mov r9, qword [rcx]
call qword [r9 + 0x2f8]
mov rdi, qword [rsp + 0x48]
test rsi, rsi
mov rsi, qword [rsp + 0x40]
je 0x180058fc6
mov r8, qword [0x1800772f0]
test r8, r8
jne 0x180058f5e
mov rcx, qword [0x180076ef0]
mov rdx, rbx
mov rax, qword [rcx]
mov r8, qword [rax + 0xf8]
call r8
mov rcx, qword [0x180076ef0]
lea r9, [0x18006402c]
lea r8, [0x18006b2b8]
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x2f0]
mov rdx, rax
call r10
mov qword [0x1800772f0], rax
mov r8, rax
test rax, rax
je 0x180058fc6
mov rcx, qword [0x180076ef0]
mov rdx, rbx
mov rax, qword [rcx]
mov r9, qword [rax + 0x320]
call r9
cmp eax, 8
jne 0x180058fc6
lea rcx, [rsp + 0x20]
call fcn.1800577f0
xorps xmm0, xmmword [0x18006bd10]
lea rcx, [rsp + 0x20]
mulsd xmm0, qword [0x18006ba60]
movaps xmm1, xmm0
call fcn.1800575d0
lea rcx, [rsp + 0x20]
call fcn.1800578d0
xorps xmm0, xmmword [0x18006bd10]
lea rcx, [rsp + 0x20]
mulsd xmm0, qword [0x18006ba60]
movaps xmm1, xmm0
call fcn.1800576e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180060260
add rsp, 0x30
pop rbx
ret
Function at 0x18005c630
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 0x18005c691
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 0x18005c650
mov ecx, dword [r9]
jmp 0x18005c77b
cmp ecx, 0x4e0
jb 0x18005c77b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
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 [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18005c6b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
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 [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x18005c700
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
Function at 0x18005da00
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 0x18005da28
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 0x18005da4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18005da50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18005daa9
test ecx, ecx
jle 0x18005da89
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 0x18005daa9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18005daa9
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 0x18005dad0
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 0x18005daf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18005db08
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 0x18005db24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18005db26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18005db62
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 0x18005dbfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18005db9d
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 0x18005dbde
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 0x18005dbfe
cmp rbx, rax
ja 0x18005dbb0
test rbx, rbx
je 0x18005dbfe
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 0x18005e060
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180076040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18005e08d
xor eax, eax
jmp 0x18005e1f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18005e0c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18005e0c7
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 0x18005e1f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18005e1ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18005e10a
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 0x18005e135
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 0x18005e1f1
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 0x18005e1a4
sub eax, 1
je 0x18005e1a4
cmp eax, 2
jne 0x18005e1ec
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 0x18005e1f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18005e1d2
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 0x18005e1ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18005e1f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180060260
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18005e630
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180076040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18005e703
cmp byte [rcx + 0x71], 0
je 0x18005e703
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18005e6ff
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 0x18005e6c4
sub eax, 1
je 0x18005e6c8
cmp eax, 2
jne 0x18005e6ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180060260
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18005e6f6
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 0x18005e6ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18005e6ac
xor al, al
jmp 0x18005e6ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180060260
add rsp, 0x60
pop rbx
ret
Function at 0x18005f144
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18005f1a8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18005f196
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005f18f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18005f163
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1800771e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18005f1b8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
mov eax, ecx
imul rdi, rax, 0x38
add rdi, qword [0x1800773c0]
mov rdx, qword [rdi]
mov cl, byte [rdi + 0x20]
mov rsi, rdx
lea rbx, [rdx - 5]
and cl, 1
je 0x18005f1f1
mov rsi, rbx
movzx eax, cl
lea r9, [rsp + 0x38]
test cl, cl
mov r8d, 0x40
cmove rbx, rdx
lea rbp, [rax*2 + 5]
mov rcx, rbx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005f224
mov eax, 0xa
jmp 0x18005f271
mov byte [rbx], 0xe9
mov eax, dword [rdi + 8]
sub eax, esi
sub eax, 5
mov dword [rbx + 1], eax
test byte [rdi + 0x20], 1
je 0x18005f240
mov rax, qword [rdi]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rdi + 0x20], 6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x18005f528
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18005f53f
cmp r8b, 0x90
je 0x18005f53f
cmp r8b, 0xcc
jne 0x18005f561
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18005f55d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18005f561
add edx, r10d
cmp edx, r9d
jb 0x18005f54d
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18005f8c8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18005f912
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x1800773b0]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x18005f94b
cmp rbx, r14
jb 0x18005f948
cmp rbx, r12
jae 0x18005f948
cmp qword [rbx + 8], rsi
jne 0x18005faad
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18005f934
mov r15, rdi
cmp rdi, r14
jb 0x18005fa67
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x18005f997
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005f9d1
cmp dword [rbp - 0x10], 0x10000
je 0x18005f9a1
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x18005f9d1
sub r15, r13
cmp r15, r14
jae 0x18005f96d
jmp 0x18005f9d1
test r15, r15
je 0x18005f9d1
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18005fa72
cmp r15, r14
jae 0x18005f95c
test rbx, rbx
jmp 0x18005fa65
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18005faad
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005faad
cmp dword [rbp - 0x10], 0x10000
je 0x18005fa40
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jbe 0x18005f9fd
jmp 0x18005faad
test rdi, rdi
je 0x18005faad
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18005fa72
cmp rdi, r12
jbe 0x18005f9d9
jmp 0x18005faad
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x18005fa7e
mov rax, qword [0x1800773b0]
mov qword [rbx], rax
mov qword [0x1800773b0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400010b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
lea rcx, str.Game.dll
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010f8
xor eax, eax
add rsp, 0x40
pop rsi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
mov ebx, eax
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x140001152
cmp dword [rdi], 0x905a4d
je 0x140001163
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret

Function at 0x140001730
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x1400018b2
test byte [r8 + 0x5e], 0x40
jne 0x14000175d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x1400018b2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001796
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400017ad
add rdx, 0x28
cmp rdx, r9
jb 0x140001784
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x1400018a8
cmp rbx, r15
jae 0x1400018a8
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x1400018a3
add eax, 0xfffffff8
shr eax, 1
je 0x140001894
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140001822
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x14000182e
cmp ax, 0xa
jne 0x140001886
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x14000187b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140001862
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x14000186d
add rax, 0x28
cmp rax, r10
jb 0x140001850
jmp 0x14000187b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x14000187e
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x140001800
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x1400017e4
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret