joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051690
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140157900]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor edi, edi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
test eax, eax
js 0x140051865
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
lea rax, [rbp]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140051705
lea rdx, [rbp]
lea rcx, [rsp + 0x38]
call fcn.140057e90
nop
mov r8d, listen
lea rdx, str.CrashDumps
lea rcx, [rsp + 0x38]
call fcn.140055af0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x1400517ab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400517a6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400517a6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bc820
movdqa xmm0, xmmword [0x1401446f0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], di
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x80]
call fcn.140055910
nop
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova r8, qword [rsp + 0x60]
mov rax, qword [rsp + 0x70]
lea r9, [r8 + rax*2]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140056890
nop
lea rcx, [rbp - 0x80]
call fcn.140055820
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x140051882
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005185e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005185e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bc820
jmp 0x140051882
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
xor r8d, r8d
lea rdx, [0x1400d7560]
mov rcx, rbx
call fcn.140003d20
mov rax, rbx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400bc4a0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140052620
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x2188
call fcn.1400bcf30
sub rsp, rax
mov rax, qword [0x140157900]
xor rax, rsp
mov qword [rsp + 0x2170], rax
xor edx, edx
mov qword [rsp + 0x38], 0
mov r8d, 0xff7
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov byte [rsp + 0x30], 0x65
mov r8d, 0x1008
mov byte [rsp + 0x1037], al
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1040]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x1008
lea rdx, [rsp + 0x1040]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x1008
lea rdx, [rsp + 0x30]
lea rcx, [0x140158a50]
call sub.VCRUNTIME140.dll_memcpy
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
mov r8d, 0x118
movabs rax, 0x346dc5d63886594b
imul rcx
lea rcx, [rsp + 0x2050]
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1401579a0], rdx
mov qword [0x140158a58], rdx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
cmp qword [0x140159c88], 0xf
lea r8, [0x140159c70]
mov edx, 0xff
lea rcx, [rsp + 0x2050]
cmova r8, qword [0x140159c70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
lea r8, [0x1401579d8]
mov edx, 0x19
lea rcx, [rsp + 0x214f]
cmova r8, qword [0x1401579d8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r9, [0x140158a60]
mov ecx, 2
lea rax, [rsp + 0x2050]
nop
lea r9, [r9 + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [r9 - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [r9 - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [r9 - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [r9 - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [r9 - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [r9 - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [r9 - 0x20], xmm0
movups xmmword [r9 - 0x10], xmm1
sub rcx, 1
jne 0x140052760
mov rcx, qword [rax + 0x10]
lea rdx, [0x140158a50]
movups xmm0, xmmword [rax]
mov eax, dword [reloc.WS2_32.dll_recv]
mov r8d, 0x1008
mov dword [rsp + 0x28], eax
lea rax, [0x140159a58]
movups xmmword [r9], xmm0
mov qword [r9 + 0x10], rcx
xor r9d, r9d
mov rcx, qword [0x1401579a8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x14005280a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0x2170]
xor rcx, rsp
call fcn.1400bc4a0
add rsp, 0x2188
ret
Function at 0x140053650
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r15
sub rsp, 0x60
mov rax, qword [0x140157900]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.cleaning_traces..
lea rcx, str.loading..
call fcn.140056c70
mov dword [reloc.WS2_32.dll_accept], 1
lea rbx, [0x1401579b8]
mov rcx, rbx
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rcx, qword [0x1401579b8]
mov rdi, qword [0x1401579c8]
cmp rdi, 3
jne 0x140053761
mov r8, rdi
lea rdx, [0x1400d7684]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140053761
mov ecx, 1
call fcn.1400bc5a4
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140058db0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140053750
cmp dword [rsp + 0x38], r15d
jne 0x140053725
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14005374b
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
jmp 0x140053809
mov dword [rsp + 0x38], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rbx, qword [0x1401579b8]
cmp rdi, 3
jne 0x140053838
mov r8, rdi
lea rdx, [0x1400d7690]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140053838
mov ecx, 1
call fcn.1400bc5a4
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140058de0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140053827
cmp dword [rsp + 0x38], 0
jne 0x1400537e3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x140053809
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400bc4a0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop r15
ret
mov dword [rsp + 0x38], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140053850
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x2078
call fcn.1400bcf30
sub rsp, rax
call fcn.1400500f0
call fcn.140051360
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0x32
lea rdx, str.C:ProgramDataMicrosoftWindowsWERReportArchive
lea rcx, [rsp + 0x30]
call fcn.140003d20
nop
lea rcx, [rsp + 0x30]
call fcn.1400518b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400538db
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400538d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400538d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bc820
lea rcx, [rsp + 0x30]
call fcn.140051690
nop
mov rcx, rax
call fcn.1400518b0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14005392f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005392a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005392a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bc820
mov dword [reloc.WS2_32.dll_accept], 4
mov qword [rsp + 0x58], 0
xor edx, edx
mov r8d, 0xff7
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov byte [rsp + 0x1057], al
mov byte [rsp + 0x50], 0x69
mov r8d, 0x1008
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x1060]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x1008
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x1008
lea rdx, [rsp + 0x50]
lea rcx, [0x140158a50]
call sub.VCRUNTIME140.dll_memcpy
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1401579a0], rdx
mov qword [0x140158a58], rdx
mov eax, dword [reloc.WS2_32.dll_recv]
mov dword [rsp + 0x28], eax
lea rax, [0x140159a58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1008
lea rdx, [0x140158a50]
mov rcx, qword [0x1401579a8]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x140053a1b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x2078
ret
Function at 0x1400540e0
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 0x140054108
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 0x14005412e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140054130
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140054189
test ecx, ecx
jle 0x140054169
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 0x140054189
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140054189
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 0x1400541b0
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 0x1400541d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400541e8
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 0x140054204
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140054206
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140054242
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 0x1400542de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14005427d
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 0x1400542be
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 0x1400542de
cmp rbx, rax
ja 0x140054290
test rbx, rbx
je 0x1400542de
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 0x140054740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140157900]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14005476d
xor eax, eax
jmp 0x1400548d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400547a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400547a7
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 0x1400548d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400548cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400547ea
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 0x140054815
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 0x1400548d1
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 0x140054884
sub eax, 1
je 0x140054884
cmp eax, 2
jne 0x1400548cc
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 0x1400548d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400548b2
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 0x1400548cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400548d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400bc4a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140054c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x140054e05
cmp rcx, rbp
je 0x140054e05
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x140054d0c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x140054e2c
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140054d23
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x140054d23
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140054d36
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x140054d83
mov r8d, eax
cmp eax, 0x800
jae 0x140054d50
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140054d83
cmp eax, 0x10000
jae 0x140054d6a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140054d83
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x140054e05
add qword [rsi], 2
test dil, dil
jne 0x140054da4
cmp r10d, 3
jae 0x140054db0
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x140054dde
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x140054dc0
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x140054e05
cmp qword [rbx], rbp
jne 0x140054ccd
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x140054e0f
Function at 0x140055ff0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140157900]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400560c3
cmp byte [rcx + 0x71], 0
je 0x1400560c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400560bf
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 0x140056084
sub eax, 1
je 0x140056088
cmp eax, 2
jne 0x1400560bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400bc4a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400560b6
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 0x1400560bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005606c
xor al, al
jmp 0x14005606c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400bc4a0
add rsp, 0x60
pop rbx
ret

Function at 0x140057700
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140157900]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 1
call fcn.1400bc5a4
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140058d30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140057773
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bc4a0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400622d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400623b2
call fcn.14007e390
test al, al
jne 0x1400623b2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140062302
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1400897b0
test rax, rax
je 0x140062347
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1400897b0
mov rsi, rax
test rax, rax
je 0x140062347
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14006237b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140078200
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x140062360
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14006a9b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x48
mov rax, qword [rcx]
lea rbp, [rcx + 0x18]
mov r12, qword [rbp]
mov rdi, rdx
mov r15, r8
mov r10, rcx
mov edx, dword [rax + 8]
and edx, 0xa
cmp edx, 0xa
jne 0x14006a9ee
add r12, 0x348
jmp 0x14006a9f5
add r12, 0x2d8
cmp edx, 0xa
mov eax, 0x5f8
mov ecx, 0x540
mov esi, 0
cmovne eax, ecx
mov qword [r9], rsi
mov bl, 1
add rax, rdi
je 0x14006aba0
cmp byte [rax + 0x6c], sil
je 0x14006aba0
cmp qword [rdi + 0xca0], rsi
je 0x14006aba0
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x88], r13
test rax, rax
je 0x14006aa50
test byte [rax + 4], 0x10
lea r13, [rax + 0x118]
jne 0x14006aa57
lea r13, [rdi + 0xca8]
cmp qword [rdi + 0x6c0], rsi
jbe 0x14006ab4f
mov qword [rsp + 0x40], r14
mov r14, rsi
nop dword [rax]
mov rbx, qword [rdi + 0xca0]
add rbx, r14
cmp qword [rbx + 0x18], 0
je 0x14006ab29
mov rdx, qword [rbx]
mov rcx, qword [r15]
call fcn.140078330
test eax, eax
je 0x14006ab29
mov rcx, qword [rbp]
mov rdx, qword [rbx + 8]
cmp byte [rcx + 0x3c0], 0
jne 0x14006aab0
test rdx, rdx
je 0x14006aac5
jmp 0x14006ab29
test rdx, rdx
je 0x14006ab29
mov rcx, qword [rcx + 0x98]
call fcn.140078330
test eax, eax
je 0x14006ab29
mov rcx, qword [rbp]
mov eax, dword [rbx + 0x38]
cmp byte [rcx + 0x3c1], 0
jne 0x14006aadc
cmp eax, 0xffffffff
je 0x14006aae9
jmp 0x14006ab29
cmp eax, 0xffffffff
je 0x14006ab29
cmp dword [rcx + 0x7d0], eax
jne 0x14006ab29
mov eax, dword [rbx + 0x34]
cmp dword [r15 + 0x1c], eax
jne 0x14006ab29
mov eax, dword [rbx + 0x3c]
cmp dword [r15 + 0x20], eax
jne 0x14006ab29
mov rcx, qword [rcx + 0x3e0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rcx]
call fcn.140078330
test eax, eax
je 0x14006ab29
lea r8, [rbx + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.14006b840
test al, al
jne 0x14006abb0
inc rsi
add r14, 0xb0
cmp rsi, qword [rdi + 0x6c0]
jb 0x14006aa70
mov bl, 1
mov r10, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
mov rax, qword [r10 + 0x18]
lea r9, str.Found
mov ecx, dword [r15 + 0x1c]
lea r8, str._s_cached_session_ID_for__s:___s:_d
mov dword [rsp + 0x30], ecx
test bl, bl
mov rcx, qword [r15]
mov rdx, qword [rax + 0x3e0]
lea rax, [0x140143290]
mov qword [rsp + 0x28], rcx
cmovne r9, rax
mov rcx, qword [rdx]
mov rdx, r10
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call fcn.1400719c0
mov r13, qword [rsp + 0x88]
movzx eax, bl
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
inc dword [r13]
mov eax, dword [r13]
mov rcx, qword [rsp + 0x98]
mov dword [rbx + 0x30], eax
mov rax, qword [rbx + 0x18]
mov qword [rcx], rax
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14006abde
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
xor bl, bl
jmp 0x14006ab42