joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400529a0
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 0x1400529c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400529d8
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 0x1400529f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400529f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140052a32
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 0x140052ace
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140052a6d
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 0x140052aae
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 0x140052ace
cmp rbx, rax
ja 0x140052a80
test rbx, rbx
je 0x140052ace
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 0x140052f30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140052f5d
xor eax, eax
jmp 0x1400530c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140052f97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140052f97
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 0x1400530c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400530bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140052fda
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 0x140053005
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 0x1400530c1
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 0x140053074
sub eax, 1
je 0x140053074
cmp eax, 2
jne 0x1400530bc
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 0x1400530c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400530a2
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 0x1400530bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400530c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005ae40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140053440
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140053513
cmp byte [rcx + 0x71], 0
je 0x140053513
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14005350f
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 0x1400534d4
sub eax, 1
je 0x1400534d8
cmp eax, 2
jne 0x14005350f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ae40
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140053506
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 0x14005350f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400534bc
xor al, al
jmp 0x1400534bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ae40
add rsp, 0x60
pop rbx
ret
Function at 0x140054af0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140054b15
cvtsi2ss xmm0, rdx
jmp 0x140054b2a
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x14006727c]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140054b58
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140054b58
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140054b8a
cmp rbx, 0x200
jae 0x140054b87
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x140054b8a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140040220

Function at 0x1400565f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rsi, rcx
call fcn.14003f7e0
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rsi + r8], dil
jne 0x140056631
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.14003f2a0
lea rcx, [rsp + 0x20]
mov rbp, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
cmp r14, 0xf
cmova rcx, rbp
movabs r9, 0xcbf29ce484222325
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140056693
movabs r8, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdi]
xor r9, rax
imul r9, r8
inc rdi
cmp rdi, rdx
jb 0x140056680
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1400404b0
mov rdi, qword [rax + 8]
cmp r14, 0xf
jbe 0x1400566e3
lea rdx, [r14 + 1]
mov rax, rbp
cmp rdx, 0x1000
jb 0x1400566db
add rdx, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400566db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call fcn.14005af80
test rdi, rdi
je 0x14005677d
call fcn.14003f7e0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140056705
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.14003f2a0
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14003fe90
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x30]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140056778
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056773
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056773
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005af80
mov rax, rbx
jmp 0x14005677f
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400567a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor r13d, r13d
call fcn.14003f7e0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdi + r8], r13b
jne 0x1400567f0
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14003f2a0
lea rdx, [rsp + 0x20]
mov rbp, qword [rsp + 0x20]
mov r15, qword [rsp + 0x38]
cmp r15, 0xf
cmova rdx, rbp
movabs r9, 0xcbf29ce484222325
mov rcx, r13
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x140056853
movabs r10, 0x100000001b3
nop
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x140056840
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.1400404b0
mov r14, qword [rax + 8]
cmp r15, 0xf
jbe 0x1400568a3
lea rdx, [r15 + 1]
mov rax, rbp
cmp rdx, 0x1000
jb 0x14005689b
add rdx, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005689b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call fcn.14005af80
test r14, r14
je 0x140056953
call fcn.14003f7e0
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x1400568c5
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14003f2a0
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.14003fe90
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x70]
test rcx, rcx
jne 0x140056904
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
mov r8, r12
mov rdx, rsi
call qword [rax + reloc.WSOCK32.dll_recv]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140056956
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005694c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005694c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005af80
jmp 0x140056956
mov qword [rsi], r13
mov rax, rsi
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140057390
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rsi
push r15
sub rsp, 0x48
cmp byte [rcx + 0x18], 0
mov rsi, rdx
movups xmm1, xmmword [rdx]
mov r15, rcx
movups xmm0, xmmword [rdx + 0x10]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x20], xmm0
jne 0x1400573bf
call fcn.140043730
movups xmm1, xmmword [rsp + 0x30]
mov rcx, qword [r15 + 0x10]
xor r9d, r9d
movd r8d, xmm1
psrldq xmm1, 8
movq rdx, xmm1
call qword [sym.imp.WSOCK32.dll_send]
test eax, eax
js 0x1400574d4
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
xor ebp, ebp
mov qword [rsp + 0x70], rdi
mov ebx, ebp
mov qword [rsp + 0x78], r12
mov edi, 4
mov r12d, dword [rsp + 0x20]
mov qword [rsp + 0x40], r14
mov r14, qword [rsp + 0x28]
nop
mov rcx, qword [r15 + 0x10]
mov r8d, r12d
movsxd rdx, ebx
sub r8d, ebx
add rdx, r14
xor r9d, r9d
call qword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jle 0x1400574c9
add ebx, eax
cmp edi, 4
jne 0x14005744b
cmp ebx, edi
jl 0x140057410
mov edi, dword [r14]
cmp edi, 0x9eb10
jg 0x1400574c9
cmp ebx, edi
jl 0x140057410
test ebx, ebx
je 0x1400574c9
cmp byte [r14 + 4], 0xff
je 0x1400574ee
cmp byte [rsi + 0x2c], bpl
je 0x1400574a8
mov edx, ebp
cmp dword [rsi + 0x28], edx
jbe 0x1400574a8
nop dword [rax + rax]
mov eax, edx
lea rcx, [rax*4]
mov rax, qword [rsi + 0x20]
add dword [rax + rcx], ebp
mov r8, qword [rsi + 0x20]
mov eax, dword [r8 + rcx]
test eax, eax
jns 0x1400574a1
btr eax, 0x1f
mov dword [r8 + rcx], eax
mov rax, qword [rsi + 0x20]
movsxd rcx, dword [rax + rcx]
add ebp, dword [rcx + r14]
inc edx
cmp edx, dword [rsi + 0x28]
jb 0x140057470
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop rsi
ret
mov edx, 1
call fcn.1400406d0
int3
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov edx, 3
mov byte [r15 + 0x18], 0
call fcn.1400406d0
int3
mov edx, 1
call fcn.1400406d0
int3

Function at 0x140058470
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea rcx, str.Written_by_Moonless_Formless
call fcn.140031730
xor edx, edx
lea rcx, str.PS2_Cam_Acolyte_v_d._02d
mov r8d, 4
call fcn.140031730
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x48], 0
lea rcx, str.Check_for_Newer_Version
call fcn.1400320f0
test al, al
je 0x1400584dc
mov dword [rsp + 0x28], 0xa
lea r8, str.https:__github.com_moonlessformless_ps2_cam_acolyte_releases
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
add rsp, 0x38
ret

Function at 0x14005ab70
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
lea r9, [rsp + 0x38]
mov r8, rcx
call fcn.14005ab10
lea rcx, [0x140074e10]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [0x1400607d0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14005b61c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005b666
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005b666
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005b666
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005b666
cmp dword [rcx + 0x84], 0xe
jbe 0x14005b666
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005b668
xor al, al
add rsp, 0x28
ret
Function at 0x1400f6bb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400f6bbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400f6bcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400f6bb5
lea eax, [rcx + 1]
jmp 0x1400f6bdb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400f6bee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400f6bd4
sub eax, 3
jb 0x1400f6c0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400f6c5d
sar eax, 1
movsxd rbp, eax
jb 0x1400f6c44
jmp 0x1400f6c1c
add ebx, ebx
jne 0x1400f6c1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f6c44
inc ecx
add ebx, ebx
jne 0x1400f6c2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f6c44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400f6c3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400f6c2c
add ecx, 2
jmp 0x1400f6c49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400f6b72
jmp 0x1400f6bbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1800
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400f6ca9
cmp rsi, rcx
jae 0x1400f6cb1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400f6c90
cmp al, 0x8f
ja 0x1400f6c90
cmp byte [rsi - 2], 0xf
je 0x1400f6c96
sub al, 0xe8
cmp al, 1
ja 0x1400f6c7a
cmp rsi, rcx
jae 0x1400f6cb1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400f6c80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400f6cb1
lodsb al, byte [rsi]
jmp 0x1400f6c90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf4000]
mov eax, dword [rdi]
or eax, eax
je 0x1400f6d0e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf61e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400f6cbe
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400f6d08
mov qword [rbx], rax
add rbx, 8
jmp 0x1400f6cde
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400f6d48
cmp al, 0xef
ja 0x1400f6d3a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400f6d1a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400f6d29
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400f6d9c
sub rsp, 0xffffffffffffff80
jmp 0x140001ecc
Function at 0x140005f30
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402fe080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
mov rsi, qword [rdx + 0x10]
lea rcx, [rsi + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
shr rdx, 1
shl rdx, 2
xor r8d, r8d
mov rcx, rdi
call fcn.1400115b0
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140005f92
mov r8, qword [rdi]
xor edx, edx
lea r9, [rsi - 2]
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test r9, r9
je 0x14000606e
nop dword [rax + rax]
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140005fbd
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [r8], al
cmp qword [rbx + 0x18], 0xf
jbe 0x140005fdd
mov rax, qword [rbx]
lea rcx, [rdx + rax]
jmp 0x140005fe4
lea rcx, [rbx + rdx]
mov rax, rbx
movsx rcx, byte [rcx]
and ecx, 3
shl rcx, 4
movzx eax, byte [rax + rdx + 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [r8 + 1], al
cmp qword [rbx + 0x18], 0xf
jbe 0x140006014
mov rax, qword [rbx]
lea rcx, [rax + 1]
jmp 0x14000601b
lea rcx, [rbx + 1]
mov rax, rbx
add rcx, rdx
movsx rcx, byte [rcx]
and ecx, 0xf
shl rcx, 2
movzx eax, byte [rax + rdx + 2]
shr rax, 6
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [r8 + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000604b
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 2]
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [r8 + 3], al
add r8, 4
add rdx, 3
cmp rdx, r9
jb 0x140005fb0
cmp rdx, rsi
jae 0x140006124
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140006084
mov rax, qword [rbx]
movzx eax, byte [rax + rdx]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [r8], al
lea rax, [rsi - 1]
cmp rdx, rax
jne 0x1400060c6
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400060aa
mov rax, qword [rbx]
movsx rax, byte [rax + rdx]
and eax, 3
add rax, rax
movzx eax, byte [r10 + rax*8]
mov byte [r8 + 1], al
mov al, 0x3d
add r8, 2
jmp 0x14000611c
cmp qword [rbx + 0x18], 0xf
jbe 0x1400060d6
mov rax, qword [rbx]
lea rcx, [rdx + rax]
jmp 0x1400060dd
lea rcx, [rdx + rbx]
mov rax, rbx
movsx rcx, byte [rcx]
and ecx, 3
shl rcx, 4
movzx eax, byte [rax + rdx + 1]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [r8 + 1], al
add r8, 2
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000610e
mov rax, qword [rbx]
movsx rax, byte [rax + rdx + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [r8], al
mov byte [r8 + 1], 0x3d
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000615a
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140006155
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000618d
mov rcx, r8
call fcn.1400df384
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400df0e0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000fcc0
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 0x14000fce8
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 0x14000fd0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000fd10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000fd69
test ecx, ecx
jle 0x14000fd49
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 0x14000fd69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000fd69
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 0x14000fd90
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 0x14000fdb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000fdc8
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 0x14000fde4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000fde6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000fe22
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 0x14000febe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000fe5d
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 0x14000fe9e
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 0x14000febe
cmp rbx, rax
ja 0x14000fe70
test rbx, rbx
je 0x14000febe
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