joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017d40
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
test rdx, rdx
jne 0x140017d70
or eax, 0xffffffff
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
mov r10, qword [rsp + 0x70]
mov qword [rsp + 0x50], rdi
test r10, r10
je 0x140017eaa
mov r10, qword [r10]
test r10, r10
je 0x140017eaa
cmp word [r10], 0
je 0x140017eaa
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r10
repne scasw ax, word [rdi]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x30]
not rcx
xor edi, edi
mov edx, ecx
mov rcx, r10
mov qword [rsp + 0x30], rdi
call fcn.1400100c0
test eax, eax
jne 0x140017ee7
mov rcx, qword [rsp + 0x30]
call fcn.140006e70
test eax, eax
je 0x140017e0b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.140019be0
mov edx, 0x40000238
lea rcx, [rax + 0x60]
call fcn.140007250
or eax, 0xffffffff
jmp 0x140017eee
mov eax, dword [rsp + 0x58]
mov r9d, 7
xor r8d, r8d
add eax, eax
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140017e87
cmp dword [rsp + 0x58], edi
je 0x140017e54
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fd0
lea r8, str.AppEnvironment
mov edx, 0xc00003fb
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rdi
movzx ecx, ax
call fcn.140007190
or eax, 0xffffffff
jmp 0x140017eee
cmp dword [rsp + 0x58], edi
je 0x140017ea3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
jmp 0x140017eee
mov rdx, r8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140017eec
cmp eax, 2
je 0x140017eec
mov ecx, eax
call fcn.140006fd0
mov rdi, rax
call fcn.140019be0
mov r9, rbp
lea rcx, [rax + 0x60]
mov r8, rsi
mov edx, 0x4000020d
mov qword [rsp + 0x20], rdi
call fcn.140007250
or eax, 0xffffffff
jmp 0x140017eee
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x14001b45c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.14001c2f0
nop
cmp dword [0x14004ef20], 1
je 0x14001b408
mov dword [0x14004ef1c], 1
mov byte [0x14004ef18], r12b
test ebx, ebx
jne 0x14001b3f4
mov rcx, qword [0x140050018]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001b3e1
mov rcx, qword [0x140050010]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14001b380
call fcn.14001dea0
cmp qword [rdi], rax
jne 0x14001b380
jmp 0x14001b366
cmp rdi, rsi
jb 0x14001b3e1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001dea0
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140050018]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140050010]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14001b3bf
cmp r13, rax
je 0x14001b3df
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001b366
lea rdx, [0x140025738]
lea rcx, [0x140025720]
call fcn.14001b1b0
lea rdx, [0x140025748]
lea rcx, [0x140025740]
call fcn.14001b1b0
nop
test r12d, r12d
je 0x14001b417
mov ecx, 8
call fcn.14001c1f0
test r12d, r12d
jne 0x14001b442
mov dword [0x14004ef20], 1
lea ecx, [r12 + 8]
call fcn.14001c1f0
mov ecx, r15d
call fcn.14001b144
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001b2d0

Function at 0x14001b468
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001b2d0
Function at 0x14001e397
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002dda0]
jne 0x14001a4aa
rol rcx, 0x10
test cx, 0xffff
jne 0x14001a4a6
repz ret
ror rcx, 0x10
jmp 0x14001e2f0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14004f260]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14004f358]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001e375
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14004f260]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001e397
mov rax, qword [rsp + 0x88]
mov qword [0x14004f358], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14004f2f8], rax
mov rax, qword [0x14004f358]
mov qword [0x14004f1d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14004f2e0], rax
mov dword [0x14004f1c0], 0xc0000409
mov dword [0x14004f1c4], 1
mov rax, qword [0x14002dda0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002dda8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14004f258], eax
mov ecx, 1
call fcn.140021d1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140027cf0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14004f258], 0
jne 0x14001e41e
mov ecx, 1
call fcn.140021d1c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140022e88
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.14001dea0
xor ebx, ebx
mov rdi, rax
cmp qword [0x14004fcf0], rbx
jne 0x140022f8e
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140023063
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140023063
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14004fcf0], 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 [0x14004fcf8], 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 [0x14004fd00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14004fd10], rax
test rax, rax
je 0x140022f85
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14004fd08], rax
jmp 0x140022f95
mov rax, qword [0x14004fd08]
jmp 0x140022f9c
mov rax, qword [0x14004fd08]
mov r11, qword [0x14004fd10]
cmp rax, rdi
je 0x140023004
cmp r11, rdi
je 0x140023004
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14004fd10]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140023004
test rax, rax
je 0x140023004
call rsi
test rax, rax
je 0x140022ffe
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 0x140022ffe
test byte [rsp + 0x38], 1
jne 0x140023004
bts ebp, 0x15
jmp 0x140023042
mov rcx, qword [0x14004fcf8]
cmp rcx, rdi
je 0x140023042
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140023042
call rax
mov rbx, rax
test rax, rax
je 0x140023042
mov rcx, qword [0x14004fd00]
cmp rcx, rdi
je 0x140023042
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140023042
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14004fcf0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140023063
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140023065
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 0x140002db0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
call fcn.140002a40
mov r11, rax
test rax, rax
je 0x140002e53
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x140002e53
movsxd rcx, dword [r11 + 0x3c]
cmp dword [rcx + r11], 0x4550
jne 0x140002e53
mov eax, dword [rcx + r11 + 0x88]
test eax, eax
je 0x140002e53
mov ebx, dword [rax + r11 + 0x1c]
xor r9d, r9d
mov r10d, dword [rax + r11 + 0x20]
mov ebp, dword [rax + r11 + 0x24]
add r10, r11
add rbp, r11
lea rsi, [r11 + rbx]
test ebx, ebx
je 0x140002e53
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140002e43
inc rax
test ecx, ecx
jne 0x140002e30
test edx, edx
je 0x140002e6a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140002e20
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x140002e55

Function at 0x140011840
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 0x140011868
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 0x14001188e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140011890
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400118e9
test ecx, ecx
jle 0x1400118c9
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 0x1400118e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400118e9
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 0x140011910
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 0x140011941
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 0x14001195f
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 rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001197b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001197d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400119b9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140011a4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400119f4
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 0x140011a2e
nop dword [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 0x140011a4e
cmp rbx, rax
ja 0x140011a00
test rbx, rbx
je 0x140011a4e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140011e90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140011eb4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140011ef7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140011ef7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140012028
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140011f3a
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 0x140011f65
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
cmove edi, ecx
mov eax, edi
jmp 0x14001202d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x140011fda
sub eax, 1
je 0x140011fda
cmp eax, 2
jne 0x140012028
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
cmove edi, ecx
mov eax, edi
jmp 0x14001202d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14001200b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140012028
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001202d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140012320
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400123e9
cmp byte [rcx + 0x71], 0
je 0x1400123e9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400123dc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x140012398
sub eax, 1
je 0x14001239c
cmp eax, 2
jne 0x1400123dc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x1400123ca
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400123dc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140016260
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x10], rdx
push r14
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rdx + 0x10]
lea rdx, [rsi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rdx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
call fcn.140007d80
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400162b1
mov r8, qword [rdi]
xor edx, edx
lea r10, [rsi - 2]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_________________________________________________456789:_________
test r10, r10
je 0x14001638e
nop word [rax + rax]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400162dd
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r8], al
cmp qword [rbx + 0x18], 0xf
jbe 0x1400162fd
mov rax, qword [rbx]
lea r9, [rdx + rax]
jmp 0x140016304
lea r9, [rbx + rdx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
cmp qword [rbx + 0x18], 0xf
jbe 0x140016334
mov rax, qword [rbx]
lea r9, [rax + 1]
jmp 0x14001633b
lea r9, [rbx + 1]
mov rax, rbx
add r9, rdx
movzx ecx, byte [rax + rdx + 2]
shr rcx, 6
movsx rax, byte [r9]
and eax, 0xf
shl rax, 2
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14001636b
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 2]
and eax, 0x3f
movzx eax, byte [rax + r14]
mov byte [r8 + 3], al
add r8, 4
add rdx, 3
cmp rdx, r10
jb 0x1400162d0
cmp rdx, rsi
jae 0x140016447
mov rax, rbx
lea r10, [rbx + 0x18]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400163a8
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r8], al
lea rax, [rsi - 1]
cmp rdx, rax
jne 0x1400163ea
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400163ce
mov rax, qword [rbx]
movsx rax, byte [rax + rdx]
and eax, 3
add rax, rax
movzx eax, byte [r14 + rax*8]
mov byte [r8 + 1], al
mov al, 0x3d
add r8, 2
jmp 0x14001643f
cmp qword [rbx + 0x18], 0xf
jbe 0x1400163fa
mov rax, qword [rbx]
lea r9, [rax + rdx]
jmp 0x140016401
lea r9, [rdx + rbx]
mov rax, rbx
movzx ecx, byte [rax + rdx + 1]
shr rcx, 4
movsx rax, byte [r9]
and eax, 3
shl rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r8 + 1], al
add r8, 2
mov rax, rbx
cmp qword [r10], 0xf
jbe 0x140016431
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 1]
and eax, 0xf
movzx eax, byte [r14 + rax*4]
mov byte [r8], al
mov byte [r8 + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14001647d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140016478
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400164a9
mov rcx, r8
call fcn.14006ec4c
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140023b60
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x140035be0
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, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140035c3e
mov dl, 1
call fcn.140025cf0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140025cf0
mov eax, ebx
jmp 0x140035c82
cmp ebx, 2
ja 0x140035c80
mov r9, qword [rdi + 0x668]
lea rdx, [0x1400f2a70]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140035ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140316140]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x140035ce3
cmp qword [rcx + 0x678], 0
je 0x140035dc0
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140023f60
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140035d11
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x140035d58
cmp byte [rdi + 0x1597], 0
jne 0x140035d58
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140035d40
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x140035db8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x140035e13
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x140035dd9
mov dl, 1
mov rcx, rdi
call fcn.140025cf0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.140025cf0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14006f2d0
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x1400f2a70]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140035db8
call fcn.14006f458
int3