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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1402eec28]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
mov qword [rsp + 0x40], r15
xor ecx, ecx
call sub.obs.dll_bfree
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rsi
call sub.obs.dll_os_utf8_to_wcs_ptr
test rax, rax
jne 0x140008787
mov rcx, qword [rsp + 0x40]
call sub.obs.dll_bfree
xor al, al
jmp 0x140008823
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x14000884c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov edx, eax
xor r8d, r8d
mov rcx, rdi
call fcn.140009040
cmp qword [rdi + 0x18], 0x10
jb 0x1400087e7
mov rdi, qword [rdi]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000887a
test rbx, rbx
je 0x140008813
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
call sub.obs.dll_bfree
mov al, 1
jmp 0x140008823
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401d5bf0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rsi
lea rdx, str.Failed_to_open_file__s:__lu
lea rcx, [rsp + 0x60]
call fcn.14000c960
lea rdx, [0x1402bc360]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rsi
lea rdx, str.Failed_to_write_file__s:__lu
lea rcx, [rsp + 0x80]
call fcn.14000c960
lea rdx, [0x1402bc360]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400088b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1402eec28]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14, r8
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rsp + 0x40], r15
xor ecx, ecx
call sub.obs.dll_bfree
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call sub.obs.dll_os_utf8_to_wcs_ptr
test rax, rax
jne 0x140008910
mov rcx, qword [rsp + 0x40]
call sub.obs.dll_bfree
xor al, al
jmp 0x140008985
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x1400089a4
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400089d2
test rbx, rbx
je 0x140008975
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x40]
call sub.obs.dll_bfree
mov al, 1
jmp 0x140008985
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401d5bf0
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rdi
lea rdx, str.Failed_to_open_file__s:__lu
lea rcx, [rsp + 0x60]
call fcn.14000c960
lea rdx, [0x1402bc360]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rdi
lea rdx, str.Failed_to_write_file__s:__lu
lea rcx, [rsp + 0x80]
call fcn.14000c960
lea rdx, [0x1402bc360]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14001ad10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
xor edx, edx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QObject::constructor_class_QObject____ptr64____ptr64]
nop
lea rax, vtable.Auth.0
mov qword [rsi], rax
mov byte [rsi + 0x10], 1
mov rdx, rdi
lea rcx, [rsi + 0x18]
call fcn.140002420
mov eax, dword [rdi + 0x20]
mov dword [rsi + 0x38], eax
movzx eax, byte [rdi + 0x24]
mov byte [rsi + 0x3c], al
movzx eax, byte [rdi + 0x25]
mov byte [rsi + 0x3d], al
xor edi, edi
mov qword [rsi + 0x40], rdi
mov qword [rsi + 0x50], rdi
mov qword [rsi + 0x58], 0xf
mov byte [rsi + 0x40], dil
mov qword [rsi + 0x60], rdi
mov qword [rsi + 0x70], rdi
mov qword [rsi + 0x78], 0xf
mov byte [rsi + 0x60], dil
mov byte [rsi + 0x80], dil
mov qword [rsi + 0x88], rdi
mov dword [rsi + 0x90], edi
mov qword [rsi + 0x98], rdi
mov qword [rsi + 0xa8], rdi
mov qword [rsi + 0xb0], 0xf
mov byte [rsi + 0x98], dil
lea rax, vtable.YoutubeAuth.0
mov qword [rsi], rax
mov byte [rsi + 0xb8], dil
mov dword [rsi + 0x1440], 0xffffffff
mov edx, 0x1571
mov dword [rsi + 0xc0], edx
lea eax, [rdi + 1]
lea r8, [rsi + 0xc4]
nop
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [r8], edx
inc rax
lea r8, [r8 + 4]
cmp rax, 0x270
jb 0x14001adf0
mov dword [rsi + 0xbc], 0x270
lea rbx, [rsi + 0x1448]
mov qword [rbx], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov qword [rbx + 0x10], 7
mov r8d, 7
lea rdx, str.YouTube
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 7], 0
mov qword [rsi + 0x1468], rdi
mov qword [rsi + 0x1470], rdi
mov qword [rsi + 0x1478], rdi
mov qword [rsi + 0x1480], rdi
mov rax, rsi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140033e00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402eec28]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140033ed3
cmp byte [rcx + 0x71], 0
je 0x140033ed3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140033ecf
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 0x140033e94
sub eax, 1
je 0x140033e98
cmp eax, 2
jne 0x140033ecf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401d5bf0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140033ec6
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 0x140033ecf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140033e7c
xor al, al
jmp 0x140033e7c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401d5bf0
add rsp, 0x60
pop rbx
ret
Function at 0x1400370c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402eec28]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400370ed
xor eax, eax
jmp 0x140037242
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140037118
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140037118
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140037242
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140037235
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003715b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140037186
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 0x14003723a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1400371f5
sub eax, 1
je 0x1400371f5
cmp eax, 2
jne 0x140037235
movsx ecx, byte [rsp + 0x40]
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 0x14003723a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140037223
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 0x140037235
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14003723a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401d5bf0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400399f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140039a21
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140039a3f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140039a60
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140039a62
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140039a94
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
mov rbx, rdi
je 0x140039b31
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140039ad2
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 rdi, 0xfff
jbe 0x140039b11
nop dword [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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140039b52
cmp rdi, rax
ja 0x140039ae0
test rbx, rbx
je 0x140039b31
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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140039b34
Function at 0x140039b60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140039b97
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140039bb8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140039bba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140039c13
test ecx, ecx
jle 0x140039bf3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140039c13
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140039c13
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14013bba0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x13f0
call fcn.1401d64b0
sub rsp, rax
mov rax, qword [0x1402eec28]
xor rax, rsp
mov qword [rsp + 0x13e8], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov ecx, 1
movabs rax, 0x5555555555555555
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x13c8], rax
movabs r8, 0x5851f42d4c957f2d
nop word [rax + rax]
mov rax, rdx
shr rax, 0x3e
xor rdx, rax
imul rdx, r8
add rdx, rcx
mov qword [rsp + rcx*8 + 0x48], rdx
inc rcx
cmp rcx, 0x138
jb 0x14013bc00
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x138
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 0x40
call fcn.14013c030
mov r9, rax
lea r8, str._16llX
lea edx, [rbx + 0x15]
lea rcx, [rsp + 0x13d0]
call fcn.14002a460
xor eax, eax
mov qword [rdi + 0x18], 0xf
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
mov byte [rdi], al
lea rax, [rsp + 0x13d0]
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14013bc90
mov r8, rbx
lea rdx, [rsp + 0x13d0]
mov rcx, rdi
call fcn.140004ee0
mov rax, rdi
mov rcx, qword [rsp + 0x13e8]
xor rcx, rsp
call fcn.1401d5bf0
mov rbx, qword [rsp + 0x1408]
add rsp, 0x13f0
pop rdi
ret
Function at 0x14013c030
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov rax, qword [rcx + 8]
xor r15d, r15d
mov esi, r15d
mov ebp, r15d
mov rdi, rcx
movabs r14, 0xb5026f5aa96619e9
movabs r12, 0x38eb3ffff6d3
nop
lea ecx, [rax + 0xff]
shl rsi, cl
add rsi, rsi
nop dword [rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x138
jne 0x14013c0e5
lea rax, [r10 + 0x10]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 8]
xor r8d, dword [rax]
lea rax, [rax + 8]
btr r8d, 0x1f
xor r8, qword [rax - 0x10]
movzx ecx, r8b
and cl, 1
neg cl
sbb rdx, rdx
shr r8, 1
and rdx, r14
xor rdx, qword [rax + 0x4d0]
xor rdx, r8
mov qword [rax + 0x9b0], rdx
sub r9, 1
jne 0x14013c0a0
mov ecx, dword [r10]
jmp 0x14013c1cb
cmp ecx, 0x270
jb 0x14013c1cb
lea r11, [r10 + 0x9c8]
mov ebx, 0x9c
mov rax, qword [r11]
mov rdx, qword [r11 + 8]
lea r8, [r11 + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r14
xor rcx, qword [r11 + 0x4e0]
xor rcx, rdx
mov qword [r11 - 0x9c0], rcx
lea r11, [r8]
sub rbx, 1
jne 0x14013c100
lea r11, [r10 + 0xea8]
mov ebx, 0x9b
mov rax, qword [r11]
nop
mov rdx, rax
lea r8, [r11 + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r14
xor rcx, qword [r11 - 0xea0]
xor rcx, rdx
mov qword [r11 - 0x9c0], rcx
lea r11, [r8]
sub rbx, 1
jne 0x14013c150
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r14
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov ecx, r15d
mov dword [r10], r15d
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
xor rdx, rax
mov rax, rdx
and rax, r12
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rcx, rdx
shr rcx, 0x2b
xor rcx, rdx
cmp rcx, qword [rdi + 0x10]
ja 0x14013c080
mov rax, qword [rdi + 8]
or rsi, rcx
add rbp, rax
cmp rbp, 0x40
jb 0x14013c070
mov rbx, qword [rsp + 0x20]
mov rax, rsi
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x1401d6f10
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1401d6f4d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.1401d61fc
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1401d704c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.1401d61fc
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x1401d6fc0
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140039c40
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x1401d708b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x1401d708b
call fcn.1401d5ad0
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x1401d7072
mov rcx, r14
call fcn.1401d5ad0
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x140002890
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, str.MagicXEHumanSegmentCreate
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400028dc
cmp qword [rbx + 0x20], 0x10
lea r8, [rbx + 8]
jb 0x1400028c1
mov r8, qword [r8]
lea rdx, str.MagicXEHumanSegmentCreate
lea rcx, str.load_func___s__from___s__failed__n
call fcn.140002e20
xor al, al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x28]
lea rdx, str.MagicXEHumanSegmentInputSizeGet
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x14000291f
cmp qword [rbx + 0x20], 0x10
lea r8, [rbx + 8]
jb 0x140002904
mov r8, qword [r8]
lea rdx, str.MagicXEHumanSegmentInputSizeGet
lea rcx, str.load_func___s__from___s__failed__n
call fcn.140002e20
xor al, al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x28]
lea rdx, str.MagicXEHumanSegmentOutputSizeSet
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x140002962
cmp qword [rbx + 0x20], 0x10
lea r8, [rbx + 8]
jb 0x140002947
mov r8, qword [r8]
lea rdx, str.MagicXEHumanSegmentOutputSizeSet
lea rcx, str.load_func___s__from___s__failed__n
call fcn.140002e20
xor al, al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x28]
lea rdx, str.MagicXEHumanSegmentProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x1400029a5
cmp qword [rbx + 0x20], 0x10
lea r8, [rbx + 8]
jb 0x14000298a
mov r8, qword [r8]
lea rdx, str.MagicXEHumanSegmentProcess
lea rcx, str.load_func___s__from___s__failed__n
call fcn.140002e20
xor al, al
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x28]
lea rdx, str.MagicXEHumanSegmentDestroy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x1400029e8
cmp qword [rbx + 0x20], 0x10
lea r8, [rbx + 8]
jb 0x1400029cd
mov r8, qword [r8]
lea rdx, str.MagicXEHumanSegmentDestroy
lea rcx, str.load_func___s__from___s__failed__n
call fcn.140002e20
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400036a0
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 0x1400036fd
lea rbx, [0x1400d17b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400036e4
cmp r10, 2
jb 0x1400036e4
cmp byte [r9], r8b
jne 0x1400036e4
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 0x1400036c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000373f
lea rbx, [0x1400d17b0]
cmp r8b, 0x23
jne 0x140003723
cmp byte [r9], r8b
jne 0x140003723
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 0x140003710
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140003880
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000389a
mov qword [r8], 0
lea rdx, [0x1400d1300]
call fcn.140003750
mov rbx, rax
test rax, rax
jne 0x1400038ba
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 0x140003993
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003993
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003993
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 0x140003993
cmp rdi, 0xffffffffffffffff
je 0x140003993
mov rax, qword [0x140183010]
test rax, rax
je 0x140003930
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003993
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 0x140003980
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140183010]
test rax, rax
je 0x140003975
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000399c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000398e
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000399e
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