joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003598
Capabilities:
Encrypt data using blowfish

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
add rcx, 0x48
lea rdx, [0x140044a10]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memcpy
mov r14d, dword [rdi + 0x10]
lea r9, [0x1400449c0]
xor esi, esi
mov r8, rbx
sub r9, rbx
lea ebp, [rsi + 4]
lea r10d, [rsi + 0x12]
xor edx, edx
mov r11, rbp
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
jbe 0x1400035f2
mov rcx, qword [rdi]
movsx ecx, byte [rsi + rcx]
lea eax, [rsi + 1]
shl edx, 8
or edx, ecx
cmp eax, r14d
sbb esi, esi
and esi, eax
sub r11, 1
jne 0x1400035e5
xor edx, dword [r9 + r8]
mov dword [r8], edx
add r8, rbp
sub r10, 1
jne 0x1400035e0
and dword [rsp + 0x40], r10d
lea r14d, [r11 + 9]
and dword [rsp + 0x48], r10d
mov rdi, rbx
lea r8, [rsp + 0x48]
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.1400036b4
mov eax, dword [rsp + 0x40]
mov dword [rdi], eax
lea rdi, [rdi + 8]
mov eax, dword [rsp + 0x48]
mov dword [rdi - 4], eax
sub r14, 1
jne 0x14000362c
lea eax, [rsi + 1]
mov ecx, eax
lea rdi, [rbx + 0x48]
sub rsi, rcx
lea rdi, [rdi + rax*4]
mov r14d, 0x80
lea r8, [rsp + 0x48]
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.1400036b4
mov eax, dword [rsp + 0x40]
mov dword [rdi + rsi*4], eax
mov eax, dword [rsp + 0x48]
mov dword [rdi], eax
sub r14, 1
jne 0x14000366b
add rdi, 0x400
sub rbp, 1
jne 0x140003665
mov rbp, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400036b4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r10d, dword [rdx]
mov r11, r8
mov ebp, dword [r8]
mov rbx, rdx
mov r9, rcx
mov rdi, rcx
mov esi, 0x10
xor r10d, dword [rdi]
lea rdi, [rdi + 4]
mov eax, r10d
mov edx, r10d
shr eax, 8
mov ecx, eax
mov r8d, eax
shr rcx, 8
mov rax, rcx
shr rax, 8
mov r10d, dword [r9 + rax*4 + 0x448]
add r10d, dword [r9 + 0x48]
movzx eax, cl
xor r10d, dword [r9 + rax*4 + 0x848]
movzx eax, r8b
add r10d, dword [r9 + rax*4 + 0xc48]
xor r10d, ebp
mov ebp, edx
sub rsi, 1
jne 0x1400036de
mov eax, dword [r9 + 0x40]
xor edx, dword [r9 + 0x44]
xor eax, r10d
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [rbx], edx
mov rbx, qword [rsp + 8]
mov dword [r11], eax
ret
Function at 0x1400049d8
Capabilities:
Hash data using sha1

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
push r15
mov ebp, dword [rcx]
lea r11, [rcx + 0x14]
mov r10d, dword [rcx + 4]
mov r8, rcx
mov r9d, dword [rcx + 8]
mov edi, 0x10
mov ebx, dword [rcx + 0xc]
mov r15d, 0xff00
mov esi, dword [rcx + 0x10]
mov ecx, dword [r11]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, r15d
shr ecx, 8
or edx, eax
and ecx, r15d
movzx eax, byte [r11 + 3]
shl edx, 8
or edx, eax
or edx, ecx
mov dword [r11], edx
lea r11, [r11 + 4]
sub rdi, 1
jne 0x140004a11
xor r11d, r11d
mov r15d, r11d
mov rdi, r15
and edi, 0xf
cmp r11d, 0x10
jb 0x140004af4
lea eax, [r11 - 3]
and eax, 0xf
lea ecx, [r11 - 8]
and ecx, 0xf
mov edx, dword [r8 + rcx*4 + 0x14]
xor edx, dword [r8 + rax*4 + 0x14]
lea rax, [r15 + 2]
and eax, 0xf
xor edx, dword [r8 + rax*4 + 0x14]
xor edx, dword [r8 + rdi*4 + 0x14]
ror edx, 0x1f
mov dword [r8 + rdi*4 + 0x14], edx
cmp r11d, 0x14
jb 0x140004af4
mov eax, ebp
cmp r11d, 0x28
jae 0x140004aad
ror eax, 0x1b
mov ecx, ebx
xor ecx, r9d
add eax, esi
xor ecx, r10d
add edx, 0x6ed9eba1
add ecx, eax
add edx, ecx
jmp 0x140004b17
mov edi, dword [r8 + rdi*4 + 0x14]
mov edx, ebp
shr edx, 0x1b
shl eax, 5
or edx, eax
cmp r11d, 0x3c
jae 0x140004ae0
add edx, 0x8f1bbcdc
mov ecx, r9d
or ecx, r10d
mov eax, r9d
and ecx, ebx
and eax, r10d
or ecx, eax
add edx, ecx
add edx, esi
add edx, edi
jmp 0x140004b17
add edx, 0xca62c1d6
mov eax, ebx
xor eax, r9d
xor eax, r10d
add edx, eax
add edx, edi
jmp 0x140004b15
mov ecx, r10d
mov edx, ebp
ror edx, 0x1b
not ecx
and ecx, ebx
add edx, 0x5a827999
mov eax, r9d
and eax, r10d
or ecx, eax
add edx, ecx
add edx, dword [r8 + rdi*4 + 0x14]
add edx, esi
mov esi, ebx
inc r11d
mov ebx, r9d
inc r15
mov r9d, r10d
shr r10d, 2
shl r9d, 0x1e
or r9d, r10d
mov r10d, ebp
mov ebp, edx
cmp r11d, 0x50
jb 0x140004a45
add dword [r8 + 0xc], ebx
add dword [r8], edx
add dword [r8 + 4], r10d
add dword [r8 + 8], r9d
add dword [r8 + 0x10], esi
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1400069ec
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1318]
mov eax, 0x13f0
call fcn.140042580
sub rsp, rax
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rbp + 0x12e0], rax
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
lea r8d, [r14 + 0x3e]
lea rdx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
lea rcx, [rsp + 0x30]
call fcn.14000afc4
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
or dword [rbp + 0x12d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [r14 + 1]
mov r8d, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, r8
jb 0x140006a81
mov dword [rsp + 0x50], r8d
mov esi, dword [rsp + 0x40]
dec esi
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r14b
mov dword [rsp + 0x20], 1
mov r15, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
test r13, r13
je 0x140006b82
lea rcx, [rsp + 0x50]
cmp esi, 0xffffffff
jne 0x140006aeb
call fcn.14000b8f8
mov r8d, eax
jmp 0x140006b32
lea r14d, [rsi + 1]
call fcn.14000b8f8
mov r12d, r14d
mov r8d, eax
imul r8, r12
cmp r8d, r14d
jae 0x140006b2b
mov eax, r14d
neg eax
xor edx, edx
div r14d
mov r14d, edx
cmp r8d, edx
jae 0x140006b2b
lea rcx, [rsp + 0x50]
call fcn.14000b8f8
mov r8d, eax
imul r8, r12
cmp r8d, r14d
jb 0x140006b15
shr r8, 0x20
xor r14d, r14d
lea rcx, [rsp + 0x30]
cmp r15, 0xf
cmova rcx, rdi
movsxd rax, r8d
mov r9b, byte [rax + rcx]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x140006b70
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140006b65
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], r14b
jmp 0x140006b78
mov rcx, rbx
call fcn.14000b0b4
sub r13, 1
jne 0x140006ad7
cmp r15, 0xf
jbe 0x140006bbc
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140006bb4
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006bb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140040ea8
mov rax, rbx
mov rcx, qword [rbp + 0x12e0]
xor rcx, rsp
call fcn.140040cd0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140009358
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140009388
call 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]
jmp 0x140009400
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000939f
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400093a1
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400093fa
test ecx, ecx
jle 0x1400093da
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 0x1400093fa
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400093fa
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000941c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000943c
xor eax, eax
jmp 0x140009525
cmp qword [rcx + 0x68], 0
je 0x14000944e
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 0x140009525
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009465
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009467
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009499
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000951f
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400094d0
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
mov ebx, 0xfff
jmp 0x1400094fa
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]
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x14000951f
cmp rdi, rbx
ja 0x1400094d7
test rdi, rdi
je 0x14000951f
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400098f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140009931
xor eax, eax
jmp 0x140009a51
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000996b
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000996b
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140009a51
cmp qword [rbx + 0x80], 0
je 0x140009a4f
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400099a6
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 0x1400099c7
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x140009a4c
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
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 0x140009a15
sub eax, 1
je 0x140009a15
cmp eax, 2
jne 0x140009a4f
movsx ecx, byte [rbp - 0x30]
jmp 0x1400099b3
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140009a40
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140009a4f
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140040cd0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a848
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000a8b7
cmp byte [rcx + 0x71], 0
je 0x14000a8b7
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000a90c
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 0x14000a8d1
sub eax, 1
je 0x14000a8d5
cmp eax, 2
jne 0x14000a90c
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140040cd0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000a903
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 0x14000a90c
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000a8b9
xor al, al
jmp 0x14000a8b9
Function at 0x14000b8f8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000b95c
lea r8, [r9 + 8]
mov r11d, 0x7fffffff
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r11d
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 0x14000b91c
mov ecx, dword [r9]
jmp 0x14000ba35
cmp ecx, 0x4e0
jb 0x14000ba35
lea r10, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [r10]
mov r11d, 0x7fffffff
mov eax, edi
mov edi, dword [r10 + 4]
mov edx, edi
lea r10, [r10 + 4]
xor edx, eax
and edx, r11d
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 rsi, 1
jne 0x14000b97d
lea r10, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [r10]
mov eax, edi
mov edi, dword [r10 + 4]
mov edx, edi
lea r10, [r10 + 4]
xor edx, eax
and edx, r11d
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 rsi, 1
jne 0x14000b9c5
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r11d
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 rsi, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
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
ret
Function at 0x14001448c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
mov r9d, 4
movzx eax, byte [rcx]
inc rcx
movzx edx, r8b
xor rdx, rax
shr r8d, 8
lea rax, [0x140046160]
xor r8d, dword [rax + rdx*4]
sub r9, 1
jne 0x140014495
not r8d
mov eax, r8d
ret

Function at 0x1400144c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x14001451a
mov r11b, 0x23
lea rdi, [0x140046160]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x140014504
cmp rdx, 2
jb 0x140014504
cmp byte [r10], r11b
jne 0x140014504
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x1400144e2
jmp 0x14001455b
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14001455b
mov r11b, 0x23
lea rdi, [0x140046160]
cmp dl, r11b
jne 0x14001453f
cmp byte [r10], r11b
jne 0x14001453f
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x14001452d
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x140014690
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x1400146b0
and qword [r8], 0
lea rdx, [0x14004a210]
call fcn.14001456c
mov rbx, rax
test rax, rax
je 0x1400147a1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140014798
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 0x140014798
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140014798
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140014798
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x140014798
mov rax, qword [0x1400596c8]
test rax, rax
je 0x140014735
inc dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140014798
mov r9, rbx
mov r8, rbp
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, rbp
je 0x140014785
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400596c8]
test rax, rax
je 0x14001477a
dec dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400147a1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140014793
mov qword [rsi], rbp
mov rax, rdi
jmp 0x1400147a3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
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 0x140023ac8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30f8], 0
lea rbx, [rcx + 0x3100]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140023b61
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x140023b19
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400257f8
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140014da0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30f8]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x140058ca4]
movsxd r8, eax
mov rax, qword [rdi + 0x3108]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140023b69
mov rcx, rbx
call fcn.140014da0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140024224
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400596c8]
mov rbx, rcx
and dword [rax + 0x3094], 0
test rcx, rcx
je 0x14002428d
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140024298
lea rdx, [0x14004a85c]
mov rcx, rbx
mov rdi, rax
call fcn.14001456c
mov rbx, rax
test rax, rax
je 0x14002428d
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140041898
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400418e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400418e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400418e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400418e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400418e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400418e4
xor al, al
add rsp, 0x28
ret

Function at 0x140041c00
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 0x140041c3a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140041c3f
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 0x140041c88
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140044890]
cmp byte [rcx + rax], 0
je 0x140041c88
dec r8
sub rdx, 1
jne 0x140041c6e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140948108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14094828f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140948139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14094811f
add dl, dl
jne 0x140948146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409481a6
xor eax, eax
add dl, dl
jne 0x140948155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14094825d
add dl, dl
jne 0x140948166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140948173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140948180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14094818d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14094819a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14094812e
mov eax, 1
add dl, dl
jne 0x1409481b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409481c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409481ab
sub eax, ebx
mov ebx, 1
jne 0x1409481fc
mov ecx, 1
add dl, dl
jne 0x1409481de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409481eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409481d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14094812e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140948218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140948225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14094820d
cmp eax, 0x7d00
jae 0x14094824b
cmp eax, 0x500
jb 0x140948246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14094812e
cmp eax, 0x7f
ja 0x14094824e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14094812e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140948282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14094812e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20