joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140e80058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e801df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e80089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e8006f
add dl, dl
jne 0x140e80096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e800f6
xor eax, eax
add dl, dl
jne 0x140e800a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e801ad
add dl, dl
jne 0x140e800b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e800c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e800d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e800dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e800ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e8007e
mov eax, 1
add dl, dl
jne 0x140e80106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e80113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e800fb
sub eax, ebx
mov ebx, 1
jne 0x140e8014c
mov ecx, 1
add dl, dl
jne 0x140e8012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e8013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e80123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e80168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e80175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e8015d
cmp eax, 0x7d00
jae 0x140e8019b
cmp eax, 0x500
jb 0x140e80196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8007e
cmp eax, 0x7f
ja 0x140e8019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e801d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e8007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008040
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400130c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x140013650]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x140008088
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x14000807c
mov rax, qword [rax + 0x10]
jmp 0x140008082
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140008070
cmp byte [rcx + 0x19], 0
jne 0x140008164
cmp dword [rcx + 0x20], 4
jg 0x140008164
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1400080b1
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x1400080e3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x1400080d0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007a10
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14000811e
cmp rcx, qword [rbx + 8]
je 0x14000811e
cmp qword [rbx + 0x10], 1
jne 0x140008122
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000c160
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x140008108
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140008190
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.1400051f0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140007fe0
lea rdx, [0x1400110f0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, str.invalid_map_K__T__key
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3

Function at 0x14000cea4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [rsi + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x140001954
mov qword [rsp + 0x178], rbx
lea rax, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x180], rbp
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov rbx, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
inc rbx
cmp byte [rax + rbx], sil
jne 0x140001846
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x140001991
cmp rbx, 0xf
ja 0x14000188d
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x18], 0xf
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x140001920
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x1400018c2
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003ed0
test rax, rax
je 0x1400018ed
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001901
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x1400018f4
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001997
jmp 0x1400018a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001901
call fcn.140003ed0
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbx, qword [rsp + 0x178]
mov rax, rdi
mov rbp, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140003eb0
mov rsi, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_AppData_path.
call fcn.140003660
mov rcx, rax
lea rdx, [0x140003830]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
mov rax, rdi
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 0xf
mov byte [rdi], sil
jmp 0x140001933
call fcn.1400011b0
int3
call fcn.140001110
int3
Function at 0x1400027d0
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 case.default.0x1400027f1
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 0x14000281e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002820
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002879
test ecx, ecx
jle 0x140002859
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 0x140002879
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002879
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x1400028a0
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 0x1400028c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400028d1
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 0x1400028f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400028f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002932
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 0x1400029ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000296d
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 0x1400029ae
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 0x1400029ce
cmp rbx, rax
ja 0x140002980
test rbx, rbx
je 0x1400029ce
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002e5d
xor eax, eax
jmp 0x140002fc9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002e97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002e97
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 0x140002fc9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002fbc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002eda
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 0x140002f05
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 0x140002fc1
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 0x140002f74
sub eax, 1
je 0x140002f74
cmp eax, 2
jne 0x140002fbc
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 0x140002fc1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002fa2
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 0x140002fbc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002fc1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003eb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003210
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400032e3
cmp byte [rcx + 0x71], 0
je 0x1400032e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400032df
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 0x1400032a4
sub eax, 1
je 0x1400032a8
cmp eax, 2
jne 0x1400032df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003eb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400032d6
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 0x1400032df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000328c
xor al, al
jmp 0x14000328c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003eb0
add rsp, 0x60
pop rbx
ret

Function at 0x140004830
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov eax, dword [rdx]
mov ebp, dword [r8]
mov r12, r8
mov r13, rdx
mov rbx, rcx
mov rdi, rcx
mov esi, 0x10
nop
xor eax, dword [rdi]
mov rcx, rbx
mov edx, eax
mov r11d, eax
call fcn.180001000
add rdi, 4
xor eax, ebp
sub rsi, 1
mov ebp, r11d
jne 0x180001070
mov ecx, dword [rbx + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor ecx, eax
mov eax, dword [rbx + 0x44]
mov rbx, qword [rsp + 0x40]
xor eax, r11d
mov dword [r13], eax
mov dword [r12], ecx
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1800010c0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
lea rbx, [rcx + 0x4c]
mov rsi, rcx
mov r13, rdx
lea r9, [0x18000e364]
lea rcx, [0x18000f364]
mov r10, rbx
nop
nop
nop
nop
mov r11d, 0x80
nop
nop
nop
mov eax, dword [r9 - 4]
add r10, 8
add r9, 8
sub r11, 1
mov dword [r10 - 0xc], eax
mov eax, dword [r9 - 8]
mov dword [r10 - 8], eax
jne 0x180001110
cmp r9, rcx
jl 0x180001100
xor edi, edi
lea r12, [0x18000e310]
movsxd r11, r8d
mov r8, rsi
mov ebp, 4
sub r12, rsi
mov rcx, rdi
lea r10d, [rdi + 0x12]
mov edx, edi
mov r9, rbp
nop
nop
nop
movzx eax, byte [rcx + r13]
shl edx, 8
add rcx, 1
or edx, eax
cmp rcx, r11
cmovge rcx, rdi
sub r9, 1
jne 0x180001160
mov eax, dword [r12 + r8]
xor eax, edx
mov dword [r8], eax
add r8, rbp
sub r10, 1
jne 0x180001151
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x20], edi
nop
nop
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.180001040
mov eax, dword [rsp + 0x68]
add rdi, 2
cmp rdi, 0x12
mov dword [rsi + rdi*4 - 8], eax
mov eax, dword [rsp + 0x20]
mov dword [rsi + rdi*4 - 4], eax
jl 0x1800011a0
nop
mov edi, 0x80
nop
nop
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.180001040
mov r11d, dword [rsp + 0x68]
mov eax, dword [rsp + 0x20]
mov dword [rbx - 4], r11d
mov dword [rbx], eax
add rbx, 8
sub rdi, 1
jne 0x1800011e0
sub rbp, 1
jne 0x1800011d0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x180001240
Capabilities:
Create pipe

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x180013008]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x104
call fcn.1800023a0
lea r8, [0x18000f360]
lea rcx, [rsp + 0x40]
mov r9, rbx
mov edx, 0x104
call fcn.180002290
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x2710
lea edx, [rbx + 3]
lea r8d, [rbx + 6]
mov r9d, 0xff
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 0x1f4
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp rax, 0xffffffffffffffff
mov qword [0x180014518], rax
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180002370
add rsp, 0x160
pop rbx
ret
Function at 0x1800012f0
Capabilities:
Connect pipe

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x180014518]
test rcx, rcx
je 0x180001343
cmp rcx, 0xffffffffffffffff
je 0x180001343
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [0x180014518]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x180001339
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x180001339
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x218
jne 0x180001343
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret

Function at 0x180001350
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x1a0
mov rax, qword [0x180013008]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov ecx, 0x1f4
call fcn.1800025a0
cmp qword [rsp + 0x1b0], 0
mov byte [rsp + 0x30], 3
mov rbx, rax
mov byte [rsp + 0x31], 0
mov byte [rsp + 0x32], 0
je 0x1800014a7
mov qword [rsp + 0x198], rsi
mov ecx, 0x1f5
mov qword [rsp + 0x190], rdi
lea rsi, [rsp + 0x1b8]
call fcn.1800025a0
xor edx, edx
mov rcx, rax
mov r8d, 0x1f5
mov rdi, rax
call fcn.1800023a0
mov r8, qword [rsp + 0x1b0]
mov r9, rsi
mov edx, 0x1f4
mov rcx, rdi
call fcn.1800024e0
lea rcx, [rsp + 0x80]
mov r8, rdi
mov edx, 0xff
call fcn.180002290
xor edx, edx
mov r8d, 0x1f4
mov rcx, rbx
mov byte [rsp + 0x32], 0
call fcn.1800023a0
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
movzx eax, word [rcx]
mov r8d, 0x140
mov word [rbx], ax
movzx eax, byte [rcx + 2]
lea rcx, [rbx + 3]
mov byte [rbx + 2], al
call fcn.180002680
mov rcx, qword [0x180014518]
test rcx, rcx
mov rsi, qword [rsp + 0x198]
je 0x18000148f
cmp rcx, 0xffffffffffffffff
je 0x18000148f
lea r9, [rsp + 0x34]
mov r8d, 0x143
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180014518]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call fcn.1800012f0
mov rcx, rdi
call fcn.180002490
mov rcx, rbx
call fcn.180002490
mov rdi, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.180002370
add rsp, 0x1a0
pop rbx
ret