joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f4aa0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140162340]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x1400f4ad4
xor eax, eax
jmp 0x1400f4cd0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x1400f4b06
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call 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]
jmp 0x1400f4cd0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x1400f4bb7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140009d50
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140009470
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x1400f4cc0
mov rcx, qword [rsp + 0x80]
call fcn.1400f5cd0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x1400f4c6d
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x1400f4c68
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1400f4cd0
jmp 0x1400f4be3
cmp qword [rsp + 0x50], 0
jbe 0x1400f4cc0
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140115520
add rsp, 0x78
ret
Function at 0x1400f5d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140162340]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1400f5dcd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400f5dd4
mov al, 1
jmp 0x1400f5f2c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140021430
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140021430
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140021490
movzx eax, al
test eax, eax
je 0x1400f5e29
xor al, al
jmp 0x1400f5f2c
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400f5e99
cmp dword [rsp + 0x30], 1
je 0x1400f5ea5
cmp dword [rsp + 0x30], 3
je 0x1400f5f1a
jmp 0x1400f5f2a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400f5ef1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x1400f5ef1
xor al, al
jmp 0x1400f5f2c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400f5f0b
mov dword [rsp + 0x34], 1
jmp 0x1400f5f13
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400f5f2c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400f5f2c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140115520
add rsp, 0xa8
ret
Function at 0x14010c630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rcx + 0x14]
mov rsi, rcx
call fcn.14010c360
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14010c360
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x14010c7bb
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
cmp ebx, 2
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x40]
setne al
lea r15, [rsp + 0x40]
add r14, rax
xor rax, 1
add r15, rax
movzx edi, byte [r14]
movzx eax, byte [r15]
shl edi, 8
or edi, eax
lea eax, [rdi - 0xdc00]
cmp eax, 0x3ff
ja 0x14010c6c5
lea rcx, [rsi + 0x18]
mov edx, 0xfffd
call fcn.14010c400
jmp 0x14010c7ac
lea eax, [rdi - 0xd800]
mov qword [rsp + 0x48], rbp
cmp eax, 0x3ff
ja 0x14010c799
mov rcx, rsi
call fcn.14010c360
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14010c360
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
lea rbp, [rsi + 0x18]
test al, al
je 0x14010c779
nop
movzx eax, byte [r15]
movzx ebx, byte [r14]
shl ebx, 8
or ebx, eax
lea eax, [rbx - 0xdc00]
cmp eax, 0x3ff
jbe 0x14010c780
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
call fcn.14010c400
lea eax, [rbx - 0xd800]
cmp eax, 0x7ff
ja 0x14010c79d
mov rcx, rsi
mov edi, ebx
call fcn.14010c360
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14010c360
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
jne 0x14010c710
mov edx, 0xfffd
jmp 0x14010c79f
and edi, 0x3ff
and ebx, 0x3ff
shl edi, 0xa
or edi, ebx
add edi, 0x10000
jmp 0x14010c79d
lea rbp, [rsi + 0x18]
mov edx, edi
mov rcx, rbp
call fcn.14010c400
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x140114b70
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140114baa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140114baf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140114bf8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401231f0]
cmp byte [rcx + rax], 0
je 0x140114bf8
dec r8
sub rdx, 1
jne 0x140114bde
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401163e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011642a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011642a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011642a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011642a
cmp dword [rcx + 0x84], 0xe
jbe 0x14011642a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011642c
xor al, al
add rsp, 0x28
ret
Function at 0x180006010
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov edx, dword [rcx]
mov r9d, 0x138
mov r10, rcx
cmp edx, r9d
jne 0x180006077
lea r8, [rcx + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180006032
mov edx, dword [r10]
jmp 0x180006179
cmp edx, 0x270
jb 0x180006179
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [rcx + 0x9c8]
mov qword [rsp], rdi
mov r9, qword [rbx]
mov edi, 0x9c
mov r8, qword [rbx + 8]
lea rbx, [rbx + 8]
xor r9, r8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rbx + 0x4d8]
xor rcx, r9
mov r9, r8
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x1800060a5
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
lea rbx, [rbx + 8]
xor r9, r8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rbx - 0xea8]
xor rcx, r9
mov r9, r8
mov qword [rbx - 0x9c8], rcx
sub rdi, 1
jne 0x1800060f4
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
xor edx, edx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], edx
mov eax, edx
xorps xmm0, xmm0
mov rcx, qword [r10 + rax*8 + 8]
lea eax, [rdx + 1]
mov dword [r10], eax
movabs rdx, 0x38eb3ffff6d3
mov rax, rcx
shr rax, 0x1d
and rax, qword [r10 + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rdx
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rdx, rcx
shr rdx, 0x2b
xor rdx, rcx
js 0x1800061df
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x1802624f8]
add rsp, 8
ret
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mulsd xmm0, qword [0x1802624f8]
add rsp, 8
ret
Function at 0x180006690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x1802b4ec8]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x18000676b
mov rax, qword [rdi]
test rax, rax
je 0x18000671b
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000671b
test rsi, rsi
je 0x18000671b
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18000671b
cmp dword [rsp + 0x40], ebx
je 0x18000676b
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x18000673a
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x18000673a
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180012840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test rcx, rcx
je 0x1800128a0
mov r8, qword [rcx]
test r8, r8
je 0x1800128a0
mov r8, qword [r8 + 0x10]
mov eax, 0xffffffff
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180012860
test ecx, ecx
je 0x18001289d
mov r9d, ecx
lea r10, [0x180243050]
nop dword [rax + rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r10 + rcx*4]
sub r9, 1
jne 0x180012880
not eax
ret
xor eax, eax
ret

Function at 0x180013180
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
test rcx, rcx
jne 0x18001318d
xor eax, eax
jmp 0x180013206
mov r9, qword [rcx]
test r9, r9
jne 0x180013199
xor eax, eax
jmp 0x180013206
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x1800131a6
xor eax, eax
jmp 0x180013206
mov r10, r9
mov qword [rsp + 8], r9
xor edx, edx
mov r8d, 0xffffffff
lea r11, [0x180243050]
mov dword [rsp], edx
mov ecx, r8d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x1800131d0
cmp edx, eax
jae 0x1800131fc
movsx eax, byte [r10]
xor rax, rcx
movzx ecx, al
shr r8d, 8
xor r8d, dword [r11 + rcx*4]
inc r10
mov qword [rsp + 8], r10
inc edx
jmp 0x1800131bd
not r8d
mov eax, r8d
jmp 0x180013206
add rsp, 0x18
ret

Function at 0x180013890
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x18029370f], 0
mov rbx, rcx
je 0x180013901
mov ecx, dword [0x1802937f0]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180013901
cmp dword [0x180293728], 1
jne 0x180013901
lea rcx, [rbx + 0x98]
cmp rcx, 0x40000
jbe 0x180013901
lea rax, [rcx + 8]
movabs rdx, 0x7fffffff0000
cmp rax, rdx
jae 0x180013901
mov rcx, qword [rcx]
add rcx, 0x1dc
cmp rcx, 0x40000
jbe 0x180013901
lea rax, [rcx + 4]
cmp rax, rdx
jae 0x180013901
mov dword [rcx], 0x3c23d70a
add rsp, 0x20
pop rbx
ret

Function at 0x180017c30
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp byte [0x18029360c], 0
jne 0x180017c90
lea rcx, [rsp + 0x30]
mov byte [0x18029360c], 1
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x38]
cvtsi2ss xmm1, qword [rsp + 0x30]
movss dword [0x180293820], xmm0
movss dword [0x18029366c], xmm1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x30]
subss xmm0, dword [0x18029366c]
divss xmm0, dword [0x180293820]
add rsp, 0x28
ret
Function at 0x180019670
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1802936d0]
add rax, 0x40cbe0
call rax
mov rcx, rax
call fcn.180014130
mov rbx, rax
test rax, rax
je 0x180019892
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1800136e0
cmp dword [rsp + 0x20], 0
je 0x180019892
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x180019892
cmp eax, 0xfffffffe
jne 0x180019756
mov rcx, rbx
call fcn.180013910
cmp byte [0x1802936c5], 0
je 0x180019892
add rbx, 0x98
cmp rbx, 0x40000
jbe 0x180019892
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x180019892
mov rdx, qword [rbx]
mov r8, rdx
lea r9, [rdx + 0x340]
cmp r9, 0x40000
jbe 0x180019729
lea rax, [r9 + 1]
cmp rax, rcx
jae 0x180019729
mov byte [r9], 1
lea rdx, [r8 + 0x344]
cmp rdx, 0x40000
jbe 0x180019892
lea rax, [rdx + 4]
cmp rax, rcx
jae 0x180019892
mov dword [rdx], 0x3f800000
add rsp, 0x70
pop rbx
ret
cmp eax, 3
jne 0x1800197be
mov rcx, rbx
call fcn.180013910
cmp byte [0x180293700], 0
je 0x1800197b1
lea rdx, [rbx + 0x98]
cmp rdx, 0x40000
jbe 0x1800197b1
lea rax, [rdx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x1800197b1
mov rdx, qword [rdx]
add rdx, 0x1dc
cmp rdx, 0x40000
jbe 0x1800197b1
lea rax, [rdx + 4]
cmp rax, rcx
jae 0x1800197b1
mov dword [rdx], 0x3d8f5c29
mov rcx, rbx
add rsp, 0x70
pop rbx
jmp fcn.180013890
cmp eax, 2
jne 0x180019817
mov rcx, rbx
call fcn.180013910
mov rcx, rbx
call fcn.180013890
cmp byte [0x1802936c4], 0
je 0x180019892
add rbx, 0x98
cmp rbx, 0x40000
jbe 0x180019892
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x180019892
mov rdx, qword [rbx]
add rdx, 0x270
jmp 0x18001987d
cmp eax, 0xffffffff
jne 0x180019892
mov rcx, rbx
call fcn.180013910
cmp byte [0x180293706], 0
je 0x180019892
add rbx, 0x98
cmp rbx, 0x40000
jbe 0x180019892
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x180019892
mov rdx, qword [rbx]
mov r8, rdx
lea r9, [rdx + 0x340]
cmp r9, 0x40000
jbe 0x180019876
lea rax, [r9 + 4]
cmp rax, rcx
jae 0x180019876
mov dword [r9], 0x3f800000
lea rdx, [r8 + 0x350]
cmp rdx, 0x40000
jbe 0x180019892
lea rax, [rdx + 1]
cmp rax, rcx
jae 0x180019892
mov byte [rdx], 1
add rsp, 0x70
pop rbx
ret
Function at 0x18001c100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18001c178
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18001c178
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18001c165
nop
cmp rbx, rcx
jae 0x18001c178
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18001c150
cmp rbx, rcx
jae 0x18001c178
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18001c17a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003bce0
Capabilities:
Execute command
Hash data with crc32

Disassembly:
sub rsp, 0x48
cmp dword [0x180294978], 4
jne 0x18003bf07
mov r10, qword [0x180293858]
lea rdx, [0x18025fca5]
mov qword [rsp + 0x40], rbx
lea r11, [0x1802580a0]
mov dword [rsp + 0x50], 0xc0c00000
mov r8b, 0x4d
mov dword [rsp + 0x54], 0x43d20000
mov rax, qword [r10 + 0x3ea0]
mov byte [rax + 0x98], 1
mov rax, qword [r10 + 0x3ea0]
movsxd rcx, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r9d, dword [rax + rcx*4 - 4]
not r9d
mov ebx, r9d
nop dword [rax]
cmp r8b, 0x23
jne 0x18003bd63
cmp byte [rdx], r8b
jne 0x18003bd63
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r11 + rcx*4]
test r8b, r8b
jne 0x18003bd50
not ebx
cmp dword [r10 + 0x3ed4], ebx
jne 0x18003bd9e
lea r8, str.Main
mov edx, 0xb
mov ecx, ebx
call fcn.18005a060
lea r8, [rsp + 0x50]
mov edx, ebx
lea rcx, str.Main
call fcn.1800383e0
xor eax, eax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x38], rax
lea r8, [0x180276280]
mov qword [rsp + 0x30], rax
lea rcx, [0x18025c917]
mov dword [rsp + 0x28], eax
mov r9d, pe_nt_image_headers64
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18006c8a0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea rcx, str.Save
call fcn.180066ff0
mov rbx, qword [rsp + 0x40]
test al, al
je 0x18003be17
call fcn.18002b510
movss xmm1, dword [0x180262c48]
call fcn.180052e10
lea rcx, str.Load
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
call fcn.180066ff0
test al, al
je 0x18003be47
call fcn.18002bb10
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea rcx, str.Open_Folder
call fcn.180066ff0
test al, al
je 0x18003be72
lea rcx, str.start_C:CHLENIX
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0
lea rcx, str.Unload_Cheat
call fcn.180066ff0
test al, al
je 0x18003be97
mov byte [0x18029372d], 1
mov r8d, 0x260
lea rdx, [0x180292ae0]
lea rcx, str.UI_color
call fcn.18006fe30
test al, al
je 0x18003befe
movss xmm2, dword [0x180262b80]
movss xmm0, dword [0x180292ae0]
movss xmm1, dword [0x180292ae8]
mulss xmm0, xmm2
mulss xmm1, xmm2
cvttss2si eax, xmm0
movss xmm0, dword [0x180292ae4]
mov dword [0x1802760a8], eax
mulss xmm0, xmm2
cvttss2si eax, xmm0
mov dword [0x1802760ac], eax
cvttss2si eax, xmm1
mov dword [0x1802760b0], eax
add rsp, 0x48
jmp fcn.18004c870
add rsp, 0x48
ret
Function at 0x18003e140
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x18003e150
xor al, al
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x18003def0]
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 0x18003e17d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret
Function at 0x1800448e0
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 0x18004493d
lea rbx, [0x1802580a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180044924
cmp r10, 2
jb 0x180044924
cmp byte [r9], r8b
jne 0x180044924
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 0x180044900
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18004497f
lea rbx, [0x1802580a0]
cmp r8b, 0x23
jne 0x180044963
cmp byte [r9], r8b
jne 0x180044963
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 0x180044950
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180044ac0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180044ada
mov qword [r8], 0
lea rdx, [0x180261764]
call fcn.180044990
mov rbx, rax
test rax, rax
jne 0x180044afa
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 qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180044bd1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180044bd1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180044bd1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180044bd1
cmp rdi, 0xffffffffffffffff
je 0x180044bd1
mov rax, qword [0x180293858]
test rax, rax
je 0x180044b6e
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180044bd1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180044bbe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x180293858]
test rax, rax
je 0x180044bb3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180044bda
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180044bcc
mov qword [r14], rdi
mov rax, rsi
jmp 0x180044bdc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret