joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400055ac
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140002d44
xor ebx, ebx
mov rdi, rax
cmp qword [0x140010220], rbx
jne 0x1400056b2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140005787
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005787
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140010220], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140010228], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140010230], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140010240], rax
test rax, rax
je 0x1400056a9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140010238], rax
jmp 0x1400056b9
mov rax, qword [0x140010238]
jmp 0x1400056c0
mov rax, qword [0x140010238]
mov r11, qword [0x140010240]
cmp rax, rdi
je 0x140005728
cmp r11, rdi
je 0x140005728
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140010240]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140005728
test rax, rax
je 0x140005728
call rsi
test rax, rax
je 0x140005722
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140005722
test byte [rsp + 0x38], 1
jne 0x140005728
bts ebp, 0x15
jmp 0x140005766
mov rcx, qword [0x140010228]
cmp rcx, rdi
je 0x140005766
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140005766
call rax
mov rbx, rax
test rax, rax
je 0x140005766
mov rcx, qword [0x140010230]
cmp rcx, rdi
je 0x140005766
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140005766
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140010220]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140005787
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140005789
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x140009b30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140009b7e
cmp dword [rsp + 0x34], 5
jne 0x140009b7e
cmp dword [rsp + 0x38], 2
jb 0x140009b7e
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001080
add rsp, 0x168
ret
Function at 0x140009c50
Capabilities:
Copy file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xac0
mov rax, qword [0x14000e008]
xor rax, rsp
mov qword [rsp + 0xab0], rax
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x260], ax
lea rdi, [rsp + 0x262]
xor eax, eax
mov ecx, 0x40e
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x250], 0
cmp dword [rsp + 0xad0], 3
jge 0x140009cc9
xor eax, eax
jmp 0x140009ebe
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8025
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140009cf1
xor eax, eax
jmp 0x140009ebe
call fcn.140009b30
cmp eax, 1
jne 0x140009e20
lea rdx, str.AdobePDFPortMonitor64Bit
mov rcx, qword [rsp + 0xad8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140009e20
xor eax, eax
mov word [rsp + 0x680], ax
lea rdi, [rsp + 0x682]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x8a0], ax
lea rdi, [rsp + 0x8a2]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x8a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.AdobePDF64.dll
lea rcx, [rsp + 0x8a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0xad8]
mov rdx, qword [rdx + 0x10]
lea rcx, [rsp + 0x680]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dx, 0x5c
lea rcx, [rsp + 0x680]
call fcn.140001040
mov qword [rsp + 0x670], rax
cmp qword [rsp + 0x670], 0
je 0x140009dd1
lea rdx, str.AMD64AdobePDF64.dll
mov rcx, qword [rsp + 0x670]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r8d, r8d
lea rdx, [rsp + 0x8a0]
lea rcx, [rsp + 0x680]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [rsp + 0x890], eax
cmp dword [rsp + 0x890], 0
je 0x140009e0f
lea rcx, [rsp + 0x8a0]
call fcn.140009ba0
mov dword [rsp + 0x890], eax
cmp dword [rsp + 0x890], 0
je 0x140009e20
xor eax, eax
jmp 0x140009ebe
lea rdx, str.SetupAPI.dll
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r9, qword [rsp + 0xad8]
mov r9, qword [r9 + 0x10]
mov r8, qword [rsp + 0xad8]
mov r8, qword [r8 + 8]
lea rdx, str._s_128__s
lea rcx, [rsp + 0x260]
call fcn.140001000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140009ebc
lea rdx, str.InstallHinfSectionW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
je 0x140009eb1
xor r9d, r9d
lea r8, [rsp + 0x260]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0x250]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0xab0]
xor rcx, rsp
call fcn.140001080
add rsp, 0xac0
pop rdi
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000caf0]
mov dword [rax], 1
mov rax, qword [0x14000cb00]
mov dword [rax], 1
mov rax, qword [0x14000cb10]
mov dword [rax], 1
mov rax, qword [0x14000cae0]
mov dword [rax], 1
mov rax, qword [0x14000c990]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c6f
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x248
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
lea rax, [rbp + 0xb0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0xb0]
mov r9, rdx
mov r8d, 0
lea rdx, str.Loader
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call rax
lea rax, [rbp + 0x1bf]
mov rcx, rax
call fcn.140002bf0
lea rdx, [rbp + 0x1bf]
lea rax, [rbp - 0x60]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x1e0]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x1bf]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x140001d20
mov rax, qword [rbp + 0x1e0]
add rsp, 0x248
pop rbx
pop rbp
ret

Function at 0x140001d31
Capabilities:
Download url
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rcx, qword [rbp + 0x20]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rbx, rax
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rbx
mov rdx, rax
mov ecx, 0
call sym.URLDownloadToFileA
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x140001d82
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0xf0
lea rbp, [rsp + 0xf0]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x80]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x80], 0x68
mov rcx, qword [rbp + 0x20]
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
lea rax, [rbp - 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x140001e96
lea rax, str.Process_started._Waiting_for_10_seconds..._n
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov dword [rbp - 4], 0xa
lea rdx, [rbp - 4]
lea rax, [rbp - 0x10]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1ll___.duration_int__void__int_const_
lea rax, [rbp - 0x10]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1ll____std::chrono::duration_long_long__std::ratio_1ll__1ll____const_
lea rax, str.Waiting_complete._Closing_process_handles._n
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rax, qword [rbp - 0x98]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140001ed7
lea rax, str.CreateProcessA_failed_with_error
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cerr]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___unsigned_long_
mov rcx, rax
mov rax, qword [0x14000c910]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
nop
add rsp, 0xf0
pop rbx
pop rdi
pop rbp
ret
Function at 0x140002f70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140003ba2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140011188]
test eax, eax
je 0x140003c3a
lea rax, [0x140011160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140011190]
mov qword [rbp - 8], rax
jmp 0x140003c1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140003c12
cmp qword [rbp - 0x10], 0
je 0x140003c12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003bd8
lea rax, [0x140011160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140003c3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003d40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003d68
mov eax, 0
jmp 0x140003db6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140003d91
mov eax, 0
jmp 0x140003db6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003db1
mov eax, 0
jmp 0x140003db6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012ca0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012cc0
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012cd3
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012cfd
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d11
xor al, al
jmp 0x140012d41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d23
xor al, al
jmp 0x140012d41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d3f
xor al, al
jmp 0x140012d41
mov al, 1
add rsp, 0x38
ret
Function at 0x14001ecd0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call fcn.140098880
test al, al
jne 0x14001edd3
mov ecx, 5
call fcn.140098880
test al, al
jne 0x14001eda8
test rdi, rdi
je 0x14001ed2e
cmp byte [rdi + 0x17], 0
js 0x14001ed20
xor eax, eax
mov byte [rdi], al
mov byte [rdi + 0x17], al
jmp 0x14001ed2e
mov rax, qword [rdi]
mov byte [rax], 0
mov qword [rdi + 8], 0
cmp byte [rbx + 0x17], 0
jns 0x14001ed37
mov rbx, qword [rbx]
lea rdx, [0x1401ca13a]
mov rcx, rbx
call fcn.1401570c8
test rax, rax
je 0x14001eda8
mov rbx, rax
mov ecx, 0x10000
call fcn.14013a7cc
mov r14, rax
xor r12d, r12d
mov edx, 1
mov r8d, 0x10000
mov rcx, r14
mov r9, rbx
call fcn.140159508
test rax, rax
je 0x14001edac
mov r15, rax
mov r13, rsi
sub r13, r12
test rdi, rdi
jne 0x14001ed91
add r12, r15
cmp r13, r15
jae 0x14001ed5e
jmp 0x14001edbc
cmp r13, r15
mov r8, r15
cmovb r8, r13
mov rcx, rdi
mov rdx, r14
call fcn.14008b900
jmp 0x14001ed87
xor ebp, ebp
jmp 0x14001edd3
mov rcx, rbx
call fcn.140158de0
test eax, eax
sete bpl
jmp 0x14001edbe
xor ebp, ebp
mov rcx, rbx
call fcn.140158c28
test r14, r14
je 0x14001edd3
mov rcx, r14
call fcn.14013a7d4
mov eax, ebp
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002cde0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rcx + 0x10]
cmp r14, qword [rcx + 0x18]
jne 0x14002cf97
mov rbx, qword [rsi]
mov r15, qword [rsi + 8]
mov rax, r15
sub rax, rbx
jbe 0x14002ce7d
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov rbx, rax
neg rbx
cmp r15, r14
je 0x14002cf5f
mov rcx, qword [r15]
mov qword [r15], 0
mov rax, qword [r15 + rbx*8]
mov qword [r15 + rbx*8], rcx
test rax, rax
je 0x14002ce67
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rax
add rcx, 8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140219008]
add r15, 8
cmp r15, r14
jne 0x14002ce34
mov r14, qword [rsi + 8]
lea r15, [r15 + rbx*8]
jmp 0x14002cf66
mov rax, r14
sub rax, rbx
sar rax, 2
cmp r14, rbx
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x14002d014
lea rcx, [r12*8]
call fcn.14013a754
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
lea rdx, [rax + r12*8]
sub r14, r15
je 0x14002cf77
mov r8, r14
sar r8, 3
and r14, 0xfffffffffffffff8
add r14, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x14002cfbc
mov r11, qword [r15 + r9]
mov qword [r10], r11
mov qword [r15 + r9], 0
add r9, 8
cmp r8, r9
jne 0x14002cedb
mov rbx, qword [rsi]
mov r15, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
cmp r12, r15
je 0x14002cf86
add r12, 0xfffffffffffffff8
test r12, r12
je 0x14002cfe8
mov rax, qword [r12]
test rax, rax
je 0x14002cf50
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rax
add rcx, 8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140219008]
lea rax, [r12 - 8]
cmp r12, r15
mov r12, rax
jne 0x14002cf22
jmp 0x14002cf86
shl rax, 3
sub r15, rax
mov qword [rsi + 0x10], r15
lea rax, [r14 + rbx*8]
mov qword [rsi + 8], rax
mov r14, r15
jmp 0x14002cf97
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
test rbx, rbx
je 0x14002cf93
mov rcx, rbx
call fcn.14013a790
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x14002cfbc
mov rax, qword [rdi]
mov qword [r14], rax
mov qword [rdi], 0
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140170320
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.140170320
call fcn.14016f5e0
int3
Function at 0x140056070
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov r14, qword [rsi + 8]
sub r14, rcx
sar r14, 3
lea rdx, [r14 + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x140056233
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r15, r8
sar r15, 2
cmp r15, rdx
cmovbe r15, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r15, rax
test r15, r15
je 0x1400560f0
cmp r15, rax
ja 0x140056238
lea rcx, [r15*8]
call fcn.14013a754
mov rbx, rax
jmp 0x1400560f2
xor ebx, ebx
shl r14, 3
add r14, rbx
je 0x140056207
mov rax, qword [rdi]
mov qword [r14], rax
test rax, rax
je 0x140056125
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rax
add rcx, 8
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [0x140219008]
lea rax, [rbx + r15*8]
lea rcx, [r14 + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x1400561ab
mov r8, qword [rdx - 8]
mov qword [r14 - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add r14, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x140056139
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp rbx, rdi
je 0x1400561b6
add rbx, 0xfffffffffffffff8
test rbx, rbx
je 0x1400561db
mov rax, qword [rbx]
test rax, rax
je 0x14005619d
mov rcx, qword [rax + 8]
movsxd rcx, dword [rcx + 4]
add rcx, rax
add rcx, 8
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140219008]
lea rax, [rbx - 8]
cmp rbx, rdi
mov rbx, rax
jne 0x140056174
jmp 0x1400561b6
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
je 0x1400561ce
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14013a790
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.140170320
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140170320
call fcn.140153cb0
call fcn.14016f5e0
int3