joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d68
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 0x140003d98
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 0x140003e10
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140003daf
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003db1
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003e0a
test ecx, ecx
jle 0x140003dea
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 0x140003e0a
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003e0a
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 0x140003e2c
Capabilities:
Read file on windows

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
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140003e5a
xor eax, eax
jmp 0x140003f43
cmp qword [rcx + 0x68], 0
je 0x140003e6c
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 0x140003f43
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140003e83
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003e85
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003eb7
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140003f3d
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140003eee
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140003f18
mov r9, qword [rdi + 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 rsi, rax
cmp rax, rbx
jne 0x140003f3d
cmp rsi, rbx
ja 0x140003ef5
test rsi, rsi
je 0x140003f3d
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140004328
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 [0x140128040]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140004361
xor eax, eax
jmp 0x140004481
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000439b
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000439b
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 0x140004481
cmp qword [rbx + 0x80], 0
je 0x14000447f
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400043d6
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 0x1400043f7
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 0x14000447c
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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 0x140004445
sub eax, 1
je 0x140004445
cmp eax, 2
jne 0x14000447f
movsx ecx, byte [rbp - 0x40]
jmp 0x1400043e3
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140004470
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 0x14000447f
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400df010
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 0x140005bd8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140128040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005c47
cmp byte [rcx + 0x71], 0
je 0x140005c47
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005c9c
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 0x140005c61
sub eax, 1
je 0x140005c65
cmp eax, 2
jne 0x140005c9c
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400df010
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 0x140005c93
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 0x140005c9c
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005c49
xor al, al
jmp 0x140005c49
Function at 0x140012d00
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov rax, qword [0x140128040]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov edi, 0x20a
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140012dbc
lea rcx, [rbp - 0x50]
or r8, 0xffffffffffffffff
mov rax, r8
inc rax
cmp word [rcx + rax*2], si
jne 0x140012d6f
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x140012d96
lea rax, [rax*2 - 2]
cmp rax, rdi
jae 0x140012f4f
mov word [rbp + rax - 0x50], si
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea rax, [rbp - 0x50]
inc r8
cmp word [rax + r8*2], si
jne 0x140012dac
lea rdx, [rbp - 0x50]
jmp 0x140012dd8
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
xor r8d, r8d
lea rdx, [0x140111638]
lea rcx, [rsp + 0x50]
call fcn.140015b60
nop
mov rdi, qword [rsp + 0x60]
test rdi, rdi
jne 0x140012e5a
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
xor r8d, r8d
lea rdx, [0x140111638]
mov rcx, rbx
call fcn.140015b60
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140012f1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012f19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp - 0x70]
call fcn.140012b54
mov rsi, rax
movabs rcx, 0x7ffffffffffffffe
sub rcx, rdi
cmp rcx, 1
jb 0x140012f49
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova r9, qword [rsp + 0x50]
mov qword [rsp + 0x30], 1
lea rax, [0x14011163c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x70]
call fcn.140015ce8
nop
mov r8, rsi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140014ef0
nop
lea rcx, [rsp + 0x70]
call fcn.140014dd0
nop
lea rcx, [rbp - 0x70]
call fcn.140014dd0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140012f1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012f19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400df074
mov rax, rbx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400df010
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140001778
nop
call fcn.1400df2d8
int3
Function at 0x140016854
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rsi, rdx
mov rbx, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140016956
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140016956
test rax, rax
je 0x140016956
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
xor edx, edx
mov qword [rbp - 0x28], rdx
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x1400168c7
and qword [rbx], rdx
and qword [rbx + 8], rdx
and qword [rbx + 0x10], rdx
jmp 0x140016964
lea rdi, [rsi + rcx]
mov r14d, dword [rax + 0xb4]
add r14, rdi
mov rcx, qword [rbp - 0x30]
cmp rdi, r14
jae 0x140016942
cmp dword [rdi + 4], 0
je 0x140016942
mov eax, dword [rdi]
add rax, rsi
mov qword [rbp - 0x20], rax
lea rax, [rdi + 8]
mov qword [rbp - 0x18], rax
mov eax, dword [rdi + 4]
sub rax, 8
shr rax, 1
mov dword [rbp - 0x10], eax
cmp rcx, rdx
je 0x140016922
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rbp - 0x10]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rbp - 0x30], rcx
jmp 0x14001693a
lea r8, [rbp - 0x20]
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.140016ed4
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
mov eax, dword [rdi + 4]
add rdi, rax
jmp 0x1400168d9
mov rax, qword [rbp - 0x38]
mov qword [rbx], rax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
jmp 0x1400168c2
and qword [rcx], 0
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140017ab8
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140128040]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
lea r9, [rbp - 0x30]
and dword [rbp - 0x30], ebx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbx + 0xb]
mov ecx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, 0xc0000004
jmp 0x140017b3f
test rbx, rbx
je 0x140017b14
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x30]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp - 0x30]
lea r9, [rbp - 0x30]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
je 0x140017afe
test eax, eax
jns 0x140017b80
test rbx, rbx
je 0x140017b5d
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400df010
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test rbx, rbx
je 0x140017b5d
xor edi, edi
cmp dword [rbx], edi
jbe 0x140017b4c
and qword [rbp - 0x18], 0
xorps xmm0, xmm0
and qword [rbp - 0x10], 0
mov eax, edi
imul rsi, rax, 0x128
movups xmmword [rbp - 0x28], xmm0
movzx edx, word [rsi + rbx + 0x2e]
add rdx, 0x30
add rdx, rsi
add rdx, rbx
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140017bb8
lea rcx, [rbp - 0x28]
call fcn.14000ac94
cmp qword [r14 + 0x18], 0xf
mov rdx, r14
jbe 0x140017bd8
mov rdx, qword [r14]
cmp qword [rbp - 0x10], 0xf
lea rcx, [rbp - 0x28]
cmova rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140017c36
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140017c27
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c22
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c7e
call fcn.1400df074
inc edi
cmp edi, dword [rbx]
jb 0x140017b8b
jmp 0x140017b4c
mov rdi, qword [rsi + rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140017c8a
mov rcx, qword [rbp - 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c85
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017c85
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400df074
mov rax, rdi
jmp 0x140017b5f
Function at 0x1400197c0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140128040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
jmp 0x140019828
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x140019858
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140019808
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400df010
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov dword [0x1401d0878], eax
jmp 0x140019837
Function at 0x14001b978
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400df030
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14001bd64]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14001b9d2
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140040760
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov rax, qword [0x140128040]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [rbp - 0x49], r9
mov r15, r8
mov r13, rdx
mov r14, rcx
xor esi, esi
mov dword [rbp - 0x51], esi
mov qword [rbp - 0x41], rdx
mov rbx, rdx
lea rax, [r8 - 1]
mov qword [rbp - 0x51], rax
mov r12, rax
sar r12, 1
cmp rdx, r12
jge 0x14004082d
lea rdi, [rbx + rbx]
lea rbx, [rdi + 2]
shl rbx, 5
add rbx, r14
lea rdx, [rbx - 0x20]
lea rcx, [rbp - 0x19]
call fcn.140037980
or esi, 1
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140037980
or esi, 2
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x39]
call fcn.14003f4f8
movzx ebx, al
lea rcx, [rbp - 0x39]
call fcn.140014dd0
nop
lea rcx, [rbp - 0x19]
call fcn.140014dd0
xor rbx, 1
inc rbx
add rbx, rdi
mov rdx, rbx
shl rdx, 5
add rdx, r14
shl r13, 5
lea rcx, [r14 + r13]
call fcn.14003eb00
mov r13, rbx
cmp rbx, r12
jl 0x1400407b3
mov rdi, rbx
cmp rbx, r12
jne 0x140040857
test r15b, 1
jne 0x140040857
shl r15, 5
lea rdx, [r14 - 0x20]
add rdx, r15
shl rbx, 5
lea rcx, [r14 + rbx]
call fcn.14003eb00
mov rdi, qword [rbp - 0x51]
lea rbx, [rdi - 1]
mov r12, qword [rbp - 0x49]
mov r13, qword [rbp - 0x41]
sar rbx, 1
cmp r13, rdi
jge 0x1400408b2
mov rdx, r12
lea rcx, [rbp - 0x39]
call fcn.140037980
or esi, 0x10
or esi, 4
mov dword [rbp - 0x51], esi
mov rdx, rbx
shl rdx, 5
add rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140037980
or esi, 0x20
or esi, 8
mov dword [rbp - 0x51], esi
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.14003f4f8
test al, al
je 0x1400408b2
mov r15b, 1
jmp 0x1400408b5
xor r15b, r15b
test sil, 8
je 0x1400408c8
and esi, 0xfffffff7
lea rcx, [rbp - 0x19]
call fcn.140014dd0
nop
test sil, 4
je 0x1400408da
and esi, 0xfffffffb
lea rcx, [rbp - 0x39]
call fcn.140014dd0
shl rdi, 5
lea rcx, [rdi + r14]
test r15b, r15b
je 0x140040901
mov rdx, rbx
shl rdx, 5
add rdx, r14
call fcn.14003eb00
mov rdi, rbx
dec rbx
jmp 0x140040863
mov rdx, r12
call fcn.14003eb00
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400df010
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400426cc
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 0x140042726
mov r11b, 0x23
lea rbx, [0x14010bfa0]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x140042710
cmp rdx, 2
jb 0x140042710
cmp byte [r10], r11b
jne 0x140042710
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x1400426ee
jmp 0x140042767
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x140042767
mov r11b, 0x23
lea rbx, [0x14010bfa0]
cmp dl, r11b
jne 0x14004274b
cmp byte [r10], r11b
jne 0x14004274b
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 [rbx + rcx*4]
test dl, dl
jne 0x140042739
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x1400428a4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400428c5
and qword [r8], 0
lea rdx, [0x140113c00]
call fcn.140042778
mov rbx, rax
test rax, rax
je 0x140042988
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14004297f
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 0x14004297f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14004297f
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 0x14004297f
mov rsi, rdi
cmp rdi, 0xffffffffffffffff
je 0x14004297f
mov rcx, rdi
call fcn.140045aec
mov rdi, rax
test rax, rax
je 0x14004297f
mov r9, rbx
mov r8, rsi
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, rsi
je 0x14004296c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call fcn.140045b34
jmp 0x140042988
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14004297a
mov qword [r14], rsi
mov rax, rdi
jmp 0x14004298a
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 rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140045284
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
mov r11d, 4
mov rax, qword [rcx + 0x108]
mov r9, rcx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x14010bfa0]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x1400452b3
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x405c], ebx
jne 0x1400452ed
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.140056930
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400452f8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm2, dword [rcx + 0x120]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x124]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0x108]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0x100]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x14010bfa0]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x140045366
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x1400556e0
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 + 0x6020], 0
lea rdi, [rcx + 0x6028]
mov rbx, rcx
mov rsi, r8
mov rcx, rdi
mov rbp, rdx
je 0x14005575d
xor edx, edx
call fcn.14002e0d4
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.140043238
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x6020]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1401d092c]
movsxd r8, eax
mov rax, qword [rbx + 0x6030]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140055762
call fcn.140043238
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140055d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1401d0950]
mov rbx, rcx
and dword [rax + 0x5f7c], 0
test rcx, rcx
je 0x140055df9
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140055e04
lea rdx, [0x140113c08]
mov rcx, rbx
mov rdi, rax
call fcn.140042778
mov rbx, rax
test rax, rax
je 0x140055df9
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 0x140060c88
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1401d0950]
test rax, rax
je 0x140060ca3
mov rbx, qword [rax + 0x90]
jmp 0x140060ca5
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140060cd0
and dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret