joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c800
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, r8
mov rdi, rdx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov rdx, r8
mov rcx, rdi
call fcn.14003ae50
mov dword [rsp + 0x20], 1
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140196250
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, 0x104
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14003c8ee
mov r8d, 0xffffffff
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140196320
nop
mov rdx, rax
mov rcx, rdi
call fcn.14003b5c0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14003c8db
inc rdx
mov rcx, qword [rsp + 0x50]
cmp rdx, 0x1000
jb 0x14003c8d6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003c967
mov rcx, r8
call fcn.140096c70
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], sendto
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14003c92c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
cmp rdx, 0x1000
jb 0x14003c927
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003c96e
mov rcx, r8
call fcn.140096c70
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov rax, rdi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401f11e0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400412d0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140041492
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [rsi + 8]
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
mov r8, rbx
call fcn.140040f10
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140041450
movabs rbp, 0x100000001b3
movabs r14, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdx]
movzx r8d, byte [rcx + 0x10]
xor r8, r14
imul r8, rbp
movzx eax, byte [rcx + 0x11]
xor r8, rax
imul r8, rbp
movzx eax, byte [rcx + 0x12]
xor r8, rax
imul r8, rbp
movzx eax, byte [rcx + 0x13]
xor r8, rax
imul r8, rbp
and r8, qword [rsi + 0x30]
mov r11, r8
shl r11, 4
add r11, qword [rsi + 0x18]
add r8, r8
mov rax, qword [rsi + 0x18]
lea rdi, [rax + r8*8]
cmp qword [r11], rbx
jne 0x1400413c8
mov qword [r11], rcx
mov qword [rdi + 8], rcx
jmp 0x140041444
mov rax, qword [rdi + 8]
mov r8d, dword [rax + 0x10]
cmp dword [rcx + 0x10], r8d
jne 0x140041405
mov r8, qword [rax]
cmp r8, rcx
je 0x1400413ff
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov rax, qword [rdx + 8]
mov qword [rax], r8
mov r9, qword [r8 + 8]
mov qword [r9], rcx
mov qword [r8 + 8], rax
mov qword [rdx + 8], r10
mov qword [rcx + 8], r9
mov qword [rdi + 8], rcx
jmp 0x140041444
cmp qword [r11], rax
je 0x140041420
mov r9d, dword [rcx + 0x10]
mov r8, qword [r11]
mov rax, qword [rax + 8]
cmp r9d, dword [rax + 0x10]
je 0x14004146c
cmp r8, rax
jne 0x140041411
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov qword [rax + 8], r8
mov qword [rdx + 8], r10
mov qword [rcx + 8], r9
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140041370
mov qword [rsp + 0x48], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov qword [rax + 8], r8
mov qword [rdx + 8], r10
mov qword [rcx + 8], r9
jmp 0x140041444
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
Function at 0x1400414a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rbp, r8
mov r14, rdx
mov r10, rcx
cmp rdx, r8
je 0x1400415e5
mov rax, qword [rcx + 8]
mov qword [rsp + 0xc0], rax
mov r11, qword [rcx + 0x18]
mov qword [rsp + 0x28], r11
lea r12, [rcx + 8]
mov qword [rsp + 0x40], r12
mov rax, qword [rdx + 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdx
mov rax, qword [rdx + 8]
mov qword [rsp + 0x20], rax
lea r8, [rdx + 0x10]
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0x10
jb 0x140041513
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
movabs rbx, 0x100000001b3
test r9, r9
je 0x140041544
nop
movzx eax, byte [rcx + r8]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, r9
jb 0x140041530
mov rax, qword [r10 + 0x30]
and rax, rdx
mov r15, rax
shl r15, 4
add r15, r11
add rax, rax
inc rax
lea rax, [r11 + rax*8]
mov qword [rsp + 0xb8], rax
cmp qword [r15], r14
sete r13b
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
nop dword [rax]
cmp r14, rax
sete sil
mov rdi, r14
mov r14, qword [r14]
mov qword [rsp + 0x50], r14
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x38], rbx
lea rcx, [rbx + 0x20]
call fcn.14002d530
nop
mov rcx, rbx
call fcn.14002d530
mov edx, 0x50
mov rcx, rdi
call fcn.140096c70
dec qword [r12 + 8]
test sil, sil
jne 0x1400415f9
cmp r14, rbp
mov rax, qword [rsp + 0xc8]
jne 0x140041580
test r13b, r13b
je 0x1400415d9
mov qword [r15], r14
mov rax, qword [rsp + 0x30]
mov qword [rax], r14
mov qword [r14 + 8], rax
mov rax, rbp
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0xb8]
test r13b, r13b
je 0x140041613
mov rcx, qword [rsp + 0xc0]
mov qword [r15], rcx
jmp 0x140041618
mov rcx, qword [rsp + 0x20]
cmp r14, rbp
mov qword [rax], rcx
je 0x1400415d9
lea r8, [r14 + 0x10]
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0x10
jb 0x140041632
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor eax, eax
test r9, r9
je 0x140041669
movabs r12, 0x100000001b3
nop dword [rax]
movzx ecx, byte [rax + r8]
xor rdx, rcx
imul rdx, r12
inc rax
cmp rax, r9
jb 0x140041650
mov r12, qword [rsp + 0x40]
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x30]
and rax, rdx
mov r15, rax
shl r15, 4
mov rcx, qword [rsp + 0x28]
add r15, rcx
add rax, rax
inc rax
lea rax, [rcx + rax*8]
mov qword [rsp + 0xb8], rax
mov r13, qword [rax]
nop dword [rax]
cmp r14, r13
sete sil
mov rdi, r14
mov r14, qword [r14]
mov qword [rsp + 0x50], r14
lea rbx, [rdi + 0x10]
mov qword [rsp + 0xc8], rbx
lea rcx, [rbx + 0x20]
call fcn.14002d530
nop
mov rcx, rbx
call fcn.14002d530
mov edx, 0x50
mov rcx, rdi
call fcn.140096c70
dec qword [r12 + 8]
test sil, sil
jne 0x1400416f2
cmp r14, rbp
je 0x1400415d6
jmp 0x1400416a0
mov rcx, qword [rsp + 0xc0]
mov qword [r15], rcx
mov rax, qword [rsp + 0xb8]
jmp 0x140041618
Function at 0x140041710
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbx, r8
mov r14, rdx
mov rdx, rcx
cmp r14, r8
je 0x14004183b
mov r13, qword [rcx + 8]
mov r8, qword [rcx + 0x18]
mov qword [rsp + 0x20], r8
lea rbp, [rcx + 8]
mov qword [rsp + 0x38], rbp
mov rax, qword [r14 + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
mov rax, qword [r14 + 8]
mov qword [rsp + 0xb8], rax
movzx ecx, byte [r14 + 0x10]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs r9, 0x100000001b3
imul rcx, r9
movzx eax, byte [r14 + 0x11]
xor rcx, rax
imul rcx, r9
movzx eax, byte [r14 + 0x12]
xor rcx, rax
imul rcx, r9
movzx eax, byte [r14 + 0x13]
xor rcx, rax
imul rcx, r9
mov rax, qword [rdx + 0x30]
and rax, rcx
mov r12, rax
shl r12, 4
add r12, r8
add rax, rax
inc rax
lea rax, [r8 + rax*8]
mov qword [rsp + 0xb0], rax
cmp qword [r12], r14
sete byte [rsp + 0xa8]
mov r15, qword [rax]
cmp r14, r15
sete sil
mov rdi, r14
mov r14, qword [r14]
mov qword [rsp + 0x48], r14
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x30], rcx
add rcx, 8
call fcn.14002d530
mov edx, gethostname
mov rcx, rdi
call fcn.140096c70
dec qword [rbp + 8]
test sil, sil
jne 0x14004184f
cmp r14, rbx
jne 0x1400417e2
cmp byte [rsp + 0xa8], sil
je 0x14004182f
mov qword [r12], r14
mov rax, qword [rsp + 0x28]
mov qword [rax], r14
mov qword [r14 + 8], rax
mov rax, rbx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0xb0]
cmp byte [rsp + 0xa8], 0
je 0x14004186a
mov qword [r12], r13
mov qword [rax], r13
jmp 0x140041875
mov rcx, qword [rsp + 0xb8]
mov qword [rax], rcx
cmp r14, rbx
je 0x14004182f
movzx ecx, byte [r14 + 0x10]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r14 + 0x11]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r14 + 0x12]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r14 + 0x13]
xor rcx, rax
imul rcx, rdx
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x30]
and rax, rcx
mov r12, rax
shl r12, 4
mov rcx, qword [rsp + 0x20]
add r12, rcx
add rax, rax
inc rax
lea rax, [rcx + rax*8]
mov qword [rsp + 0xa8], rax
mov r15, qword [rax]
cmp r14, r15
sete sil
mov rdi, r14
mov r14, qword [r14]
mov qword [rsp + 0x48], r14
lea rcx, [rdi + 0x10]
mov qword [rsp + 0xb0], rcx
add rcx, 8
call fcn.14002d530
mov edx, gethostname
mov rcx, rdi
call fcn.140096c70
dec qword [rbp + 8]
test sil, sil
jne 0x140041939
cmp r14, rbx
je 0x14004182b
jmp 0x1400418f1
mov qword [r12], r13
mov rax, qword [rsp + 0xa8]
mov qword [rax], r13
jmp 0x140041875
Function at 0x14004ef90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004f00e
cmp byte [rcx + 0x71], 0
je 0x14004f00e
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + SafeArrayPutElement]
cmp eax, 0xffffffff
jne 0x14004efda
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x60
pop rbx
ret
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 0x14004f023
sub eax, 1
je 0x14004f027
cmp eax, 2
jne 0x14004efc5
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov qword [rsp + 0x78], rdi
lea rax, [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
sub rdi, rax
je 0x14004f05e
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
je 0x14004f05e
xor al, al
jmp 0x14004f065
cmp byte [rbx + 0x71], 0
sete al
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401f11e0
add rsp, 0x60
pop rbx
ret
Function at 0x140051560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005158d
xor eax, eax
jmp 0x1400516f6
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400515b6
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x1400515b6
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400516f6
cmp qword [rcx + 0x80], 0
jne 0x1400515ca
mov eax, 0xffffffff
jmp 0x1400516f6
mov rcx, qword [rcx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [rcx], rax
jne 0x1400515f9
mov rdx, qword [rbx + 0x88]
mov r8, qword [rbx + 0x90]
mov qword [rcx], rdx
sub r8d, edx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
mov rax, qword [rbx + 0x50]
mov dword [rax], r8d
cmp qword [rbx + 0x68], 0
jne 0x140051622
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 0x1400516f6
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140051699
sub eax, 1
je 0x140051699
cmp eax, 2
jne 0x1400515c0
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400516f6
mov qword [rsp + 0xa0], rsi
lea rax, [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
sub rsi, rax
je 0x1400516d6
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
je 0x1400516d6
mov eax, 0xffffffff
jmp 0x1400516ee
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401f11e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140053590
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 0x1400535c1
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 0x1400535df
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
cmp qword [rax], 0
je 0x1400535f9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400535fb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140053648
mov rdx, qword [rsi + 0x38]
cmp rax, rbp
mov qword [rsp + 0x38], rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
mov rdi, rbx
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
mov rbx, rbp
sub rbx, rdi
mov ecx, dword [rax]
sub ecx, edi
mov dword [rax], ecx
mov rax, qword [rsi + 0x38]
movsxd rcx, edi
mov rdi, qword [rsp + 0x38]
add rcx, qword [rax]
mov qword [rax], rcx
cmp qword [rsi + 0x80], 0
je 0x1400536de
mov rcx, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [rcx], rax
jne 0x140053685
mov rdx, qword [rsi + 0x88]
mov r8, qword [rsi + 0x90]
mov qword [rcx], rdx
sub r8d, edx
mov rax, qword [rsi + 0x38]
mov qword [rax], rdx
mov rax, qword [rsi + 0x50]
mov dword [rax], r8d
cmp rbx, 0xfff
jbe 0x1400536be
nop
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 0x1400536de
cmp rbx, rax
ja 0x140053690
test rbx, rbx
je 0x1400536de
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 0x140053700
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140053737
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
cmp qword [rax], 0
je 0x140053756
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140053758
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400537c1
test ecx, ecx
jle 0x140053797
mov rcx, qword [rdi + 0x40]
cmp rbx, rbp
cmovl rbp, rbx
mov r8, rbp
mov rcx, qword [rcx]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
mov ecx, dword [rax]
sub ecx, ebp
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
movsxd rcx, ebp
add rcx, qword [rax]
mov qword [rax], rcx
test rbx, rbx
jle 0x1400537c1
cmp qword [rdi + 0x80], 0
je 0x1400537c1
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14005f3a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov edi, r8d
mov rsi, rcx
je 0x14005f3fa
test r8d, r8d
jle 0x14005f3fa
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x40], edi
sete al
test al, al
cmovne ebx, edi
add dword [rsi + 0x10], ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x1400653c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx r10d, byte [rcx + 0x100]
mov edi, r8d
movzx r11d, byte [rcx + 0x101]
mov rbx, rdx
test r8d, r8d
jle 0x14006542e
nop word [rax + rax]
lea eax, [r10 + 1]
dec edi
movzx r10d, al
lea rbx, [rbx + 1]
movzx r9d, byte [r10 + rcx]
movzx r8d, byte [r10 + rcx]
add r9d, r11d
movzx r11d, r9b
movzx edx, byte [r11 + rcx]
mov byte [r10 + rcx], dl
mov byte [r11 + rcx], r8b
lea eax, [rdx + r8]
movzx edx, al
movzx eax, byte [rdx + rcx]
xor byte [rbx - 1], al
test edi, edi
jg 0x1400653f0
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov byte [rcx + 0x101], r11b
mov byte [rcx + 0x100], r10b
ret

Function at 0x140065450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov eax, 1
mov word [rcx + 0x100], 0
cmp r9d, eax
mov edi, r8d
mov rsi, rdx
mov r10, rcx
cmovl r9d, eax
xor ebx, ebx
mov eax, ebx
nop dword [rax]
nop word [rax + rax]
mov byte [r10], al
lea r10, [r10 + 1]
inc eax
cmp eax, 0x100
jb 0x140065490
test edi, edi
jle 0x14006555c
test r9d, r9d
jle 0x14006555c
xor r11b, r11b
mov r10, rcx
nop word [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
xor edx, edx
mov eax, ebx
div edi
inc ebx
movzx eax, byte [rdx + rsi]
add al, byte [r10 - 1]
add r11b, al
movzx eax, r11b
movzx edx, byte [rax + rcx]
mov byte [r10 - 1], dl
movzx eax, r11b
mov byte [rax + rcx], r8b
cmp ebx, 0x100
jb 0x1400654c0
cmp r9d, 1
jle 0x14006555c
movzx r10d, byte [rcx + 0x100]
movzx r11d, byte [rcx + 0x101]
shl r9d, 8
test r9d, r9d
jle 0x14006554e
nop word [rax + rax]
lea eax, [r10 + 1]
dec r9d
movzx r10d, al
movzx edx, byte [r10 + rcx]
movzx r8d, byte [r10 + rcx]
add edx, r11d
movzx r11d, dl
movzx eax, byte [r11 + rcx]
mov byte [r10 + rcx], al
mov byte [r11 + rcx], r8b
test r9d, r9d
jg 0x140065520
mov byte [rcx + 0x100], r10b
mov byte [rcx + 0x101], r11b
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140065570
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1403e3c28]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r10d, r9d
mov rax, r8
mov edi, edx
mov rbx, rcx
mov r8d, r10d
lea rcx, [rsp + 0x20]
mov rdx, rax
mov r9d, 0xc00
call fcn.140065450
movzx r8d, byte [rsp + 0x120]
movzx r9d, byte [rsp + 0x121]
test edi, edi
jle 0x140065613
nop word [rax + rax]
lea eax, [r8 + 1]
dec edi
movzx r8d, al
lea rbx, [rbx + 1]
movzx ecx, byte [rsp + r8 + 0x20]
movzx edx, byte [rsp + r8 + 0x20]
add ecx, r9d
movzx r9d, cl
movzx ecx, byte [rsp + r9 + 0x20]
mov byte [rsp + r8 + 0x20], cl
mov byte [rsp + r9 + 0x20], dl
lea eax, [rcx + rdx]
movzx ecx, al
movzx eax, byte [rsp + rcx + 0x20]
xor byte [rbx - 1], al
test edi, edi
jg 0x1400655d0
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401f11e0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret
Function at 0x140068b20
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
lea r10d, [rdx + 2]
mov r11d, edx
mov eax, 0x55555556
mov rdi, r8
imul r10d
mov rbp, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx*4 + 1]
cmp eax, r9d
jle 0x140068b5a
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x20]
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x18], rsi
xor esi, esi
mov r10d, esi
cmp r11d, 3
jl 0x140068c11
mov eax, 0xaaaaaaab
lea r8, [rcx + 2]
mul r11d
lea r9, [rdi + 2]
shr edx, 1
imul eax, edx, 0xfffffffd
lea esi, [rdx + rdx*2]
lea r10d, [rdx*4]
add r11d, eax
nop dword [rax + rax]
movzx eax, byte [r8 - 2]
lea r9, [r9 + 4]
shr rax, 2
lea r8, [r8 + 3]
movzx eax, byte [rax + rbx]
mov byte [r9 - 6], al
movsx eax, byte [r8 - 5]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [r8 - 4]
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + rbx]
mov byte [r9 - 5], al
movsx eax, byte [r8 - 4]
and eax, 0xf
shl eax, 2
movsxd rcx, eax
movzx eax, byte [r8 - 3]
shr eax, 6
or rcx, rax
movzx eax, byte [rcx + rbx]
mov byte [r9 - 4], al
movsx rax, byte [r8 - 3]
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 - 3], al
sub rdx, 1
jne 0x140068ba0
sub r11d, 1
je 0x140068c93
cmp r11d, 1
jne 0x140068ce1
movsxd rcx, r10d
movsxd rax, esi
movzx eax, byte [rax + rbp]
shr rax, 2
movzx eax, byte [rax + rbx]
mov byte [rcx + rdi], al
movsxd rax, esi
movsx ecx, byte [rax + rbp]
lea eax, [rsi + 1]
and ecx, 3
shl ecx, 4
movsxd rdx, ecx
movsxd rcx, eax
movzx eax, byte [rcx + rbp]
shr rax, 4
or rdx, rax
lea eax, [r10 + 1]
movsxd rcx, eax
movzx eax, byte [rdx + rbx]
mov byte [rcx + rdi], al
lea eax, [rsi + 1]
movsxd rcx, eax
movsx eax, byte [rcx + rbp]
and eax, 0xf
shl eax, 2
movsxd rdx, eax
lea eax, [r10 + 2]
movsxd rcx, eax
movzx eax, byte [rdx + rbx]
mov byte [rcx + rdi], al
lea eax, [r10 + 3]
movsxd rcx, eax
mov byte [rcx + rdi], 0x3d
jmp 0x140068cdd
movsxd rcx, r10d
movsxd rax, esi
movzx eax, byte [rax + rbp]
shr rax, 2
movzx eax, byte [rax + rbx]
mov byte [rcx + rdi], al
movsxd rax, esi
movsx ecx, byte [rax + rbp]
and ecx, 3
shl ecx, 4
movsxd r8, ecx
lea ecx, [r10 + 1]
movsxd rdx, ecx
movzx ecx, byte [r8 + rbx]
mov byte [rdx + rdi], cl
lea ecx, [r10 + 2]
movsxd rdx, ecx
lea ecx, [r10 + 3]
mov byte [rdx + rdi], 0x3d
movsxd rdx, ecx
mov byte [rdx + rdi], 0x3d
add r10d, 4
mov rsi, qword [rsp + 0x18]
mov eax, r10d
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x20]
movsxd rcx, r10d
mov byte [rcx + rdi], 0
pop rdi
ret