joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5d80], 0
lea rbx, [rcx + 0x5d88]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001e407
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001e3ba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140020bf0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400088b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5d80]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5d90]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14015f8c0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001e40f
mov rcx, rbx
call fcn.1400088b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001e670
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14015f8c8]
xor ebp, ebp
cmp byte [rbx + 0x5cd8], bpl
jne 0x14001e74f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001e748
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.1400080c0
mov rsi, rax
test rax, rax
je 0x14001e748
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001e6d4
mov rcx, rax
call fcn.14001e8a0
mov r8, qword [0x14015f8c8]
test r8, r8
je 0x14001e73f
movsx rdx, word [r8 + 0x5e38]
lea rcx, [r8 + 0x5e3c]
mov r9d, dword [r8 + 0x3e38]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001e734
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5e38], cx
movsx rax, cx
lea rcx, [r8 + 0x5e3c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x5e34]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5cd8], 1
movss xmm0, dword [rbx + 0x5cdc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001e7de
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5cdc], xmm0
jb 0x14001e7de
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001e7d1
mov rax, qword [0x14015f8c8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5cdc], ebp
call fcn.14001eb00
lea rdx, [0x140138b54]
mov rcx, rdi
mov rsi, rax
call fcn.140007fd0
mov rdi, rax
test rax, rax
je 0x14001e7d8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001e7d8
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5cdc], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e800
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14015f8c8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001e863
mov qword [rsp], rbx
lea rbx, [0x1401393c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001e843
cmp byte [r8], r9b
jne 0x14001e843
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001e830
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5cf0]
not eax
mov r8, qword [r10 + 0x5cf8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001e88f
cmp dword [r8 + 8], eax
je 0x14001e896
add r8, 0x48
cmp r8, rcx
jne 0x14001e880
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400475d0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x14015e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14015f8c8]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400477ee
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400477ee
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x14015f8c8]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x1400476a4
movsx rdx, word [r8 + 0x5e38]
lea rax, [r8 + 0x5e3c]
mov r9d, dword [r8 + 0x3e38]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140047699
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5e38], cx
movsx rax, cx
lea rax, [rax*8 + 0x5e3c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5e30]
test rdi, rdi
je 0x1400476c1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400476c4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140143538]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x140047707
mov rsi, qword [r8 + 0x90]
jmp 0x14004770a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140047735
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14015f8c8]
mov rcx, qword [rax + 0x48d8]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1400477ae
inc rbx
cmp rbx, 5
jl 0x140047790
jmp 0x1400477da
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400477f0
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f8640
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x1400540c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14015e040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
mov qword [rbp + 0x27], rcx
xor esi, esi
mov dword [rbp - 0x21], esi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rbp - 0x21], 1
lea r9, [rbp + 0x2f]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400feb40]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400542ba
mov rcx, qword [rbp + 0x2f]
mov qword [rbp - 0x19], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140054142
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 9]
call fcn.14006b730
mov dword [rbp - 0x21], 3
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.140055e40
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x1400541b3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400541ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400541ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f86a4
movdqa xmm0, xmmword [0x140146a30]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], si
movabs rax, 0x901fc3cfc72d0ec0
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x19], rax
movabs rax, 0x662d58d1f30432ea
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x11], rax
movabs rax, 0xfc7eadbda2597685
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x37], rax
movabs rax, 0x662d58b4806570ca
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x29]
mov qword [rbp + 0x3f], rax
movdqa xmm0, xmmword [rbp - 0x19]
xorps xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 0x19], xmm0
lea rax, [rbp - 0x19]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140054230
call fcn.1400f79b4
lea rcx, [rbp - 0x19]
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x1f], rbx
lea r8, [rbp + 0x17]
mov edx, eax
lea rcx, [rbp - 9]
call fcn.14004bab0
mov dword [rbp - 0x21], 0xf
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.14004bd40
nop
mov rdx, qword [rbp + 0xf]
cmp rdx, 7
jbe 0x1400542b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400542ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400542ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f86a4
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400f8640
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140054750
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140054778
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14005479e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400547a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400547f9
test ecx, ecx
jle 0x1400547d9
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 0x1400547f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400547f9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140054820
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140054842
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140054858
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140054874
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140054876
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400548b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14005494e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400548ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14005492e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14005494e
cmp rbx, rax
ja 0x140054900
test rbx, rbx
je 0x14005494e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140054db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14015e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140054ddd
xor eax, eax
jmp 0x140054f49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140054e17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140054e17
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140054f49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140054f3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140054e5a
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 0x140054e85
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 0x140054f41
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140054ef4
sub eax, 1
je 0x140054ef4
cmp eax, 2
jne 0x140054f3c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140054f41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140054f22
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 0x140054f3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140054f41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f8640
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400573d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14015e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400574a3
cmp byte [rcx + 0x71], 0
je 0x1400574a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14005749f
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 0x140057464
sub eax, 1
je 0x140057468
cmp eax, 2
jne 0x14005749f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f8640
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140057496
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 0x14005749f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005744c
xor al, al
jmp 0x14005744c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f8640
add rsp, 0x60
pop rbx
ret
Function at 0x140079860
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14015e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor esi, esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], sil
mov byte [rsp + 0x20], sil
mov edx, 0x20
mov r9d, edx
lea rcx, [rsp + 0x50]
call fcn.140002f00
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14015fc54], eax
jle 0x14007990d
lea rcx, [0x14015fc54]
call fcn.1400f8a1c
cmp dword [0x14015fc54], 0xffffffff
jne 0x14007990d
movabs rcx, 0x91f3227d5e5b0316
call fcn.14008c9e0
mov dword [0x14015fc50], eax
lea rcx, [0x14015fc54]
call fcn.1400f89b0
mov qword [rsp + 0x70], rsi
mov edx, dword [0x14015fc50]
add rdx, rbx
mov qword [rsp + 0x20], rsi
mov r9d, 8
lea r8, [rsp + 0x70]
mov rcx, qword [0x14015e3a0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r8, qword [rsp + 0x70]
test r8, r8
jne 0x1400799a0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], sil
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140079a55
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079996
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140079996
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f86a4
jmp 0x140079a55
lea rdx, [rsp + 0x30]
call fcn.140079560
lea rcx, [rsp + 0x50]
cmp rcx, rax
je 0x140079a04
mov rsi, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400799c2
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
cmp rsi, rcx
ja 0x1400799f4
lea rbx, [rsp + 0x50]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rsi
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140079a04
mov r9, rax
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14005dba0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140079a44
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079a3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140079a3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f86a4
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f8640
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14009fb90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.14008e590
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x14009fbe6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x14009fc3d
mov ebp, 0x4b0000
jmp 0x14009fc4b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.140090b10
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x14009fc61
mov eax, r12d
jmp 0x14009fc6a
mov edx, edi
mov ecx, ebp
call fcn.140090b10
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x14009fc86
shl esi, 0x10
mov ecx, esi
jmp 0x14009fd75
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x14009fce4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.14008e590
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x14009fcd4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1400909e0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.14008e590
add ebx, eax
jmp 0x14009fd7e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x14009fcf1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x14009fd30
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.14008e590
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x14009fd35
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1400909e0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.14008e590
add ebx, eax
jmp 0x14009fd7e
cmp eax, r12d
jge 0x14009fd6e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.14008e590
sub ebp, eax
sub r15d, esi
je 0x14009fd6e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1400909e0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.14008e590
add ebx, eax
jmp 0x14009fd7e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.14008e590
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.14008e590