joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004f40
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 0x140004f77
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
mov r9, qword [rax]
test r9, r9
je 0x140004f98
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004f9a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004ff3
test ecx, ecx
jle 0x140004fd3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004ff3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004ff3
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 0x140005020
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 0x140005042
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005058
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 0x140005074
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005076
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1400050b0
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]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140005157
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400050eb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140005131
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140005170
cmp rbx, rax
ja 0x140005100
mov r8, rdi
test rdi, rdi
je 0x140005157
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]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x14000515a
Function at 0x140005580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001f028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400055ad
xor eax, eax
jmp 0x140005702
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400055d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400055d8
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 0x140005702
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400056f5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000561b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140005646
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 0x1400056fa
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 0x1400056b5
sub eax, 1
je 0x1400056b5
cmp eax, 2
jne 0x1400056f5
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 0x1400056fa
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400056e3
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 0x1400056f5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400056fa
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000cbf0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005ab0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001f028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005b83
cmp byte [rcx + 0x71], 0
je 0x140005b83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005b7f
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 0x140005b44
sub eax, 1
je 0x140005b48
cmp eax, 2
jne 0x140005b7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000cbf0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005b76
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 0x140005b7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005b2c
xor al, al
jmp 0x140005b2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000cbf0
add rsp, 0x60
pop rbx
ret
Function at 0x14000b1c0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14001f028]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000b2dc
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000b2dc
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x14000b238
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x14000b2e9
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14000b2ca
mov r8d, eax
cmp r8, rbp
jae 0x14000b2ca
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x14000b2ca
lea rax, [r8 + rsi]
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r9 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x14000b2a2
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x14000b2be
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000b810
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x14000b251
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x14000b2e9
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000cbf0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000c7b0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14001f028]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000c839
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000c7f0
test eax, eax
jns 0x14000c85a
test rbx, rbx
je 0x14000c85f
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000c954
test rbx, rbx
jne 0x14000c866
xor eax, eax
jmp 0x14000c954
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000c934
nop
mov ebp, edi
lea rdx, [rbx + 0x30]
imul rax, rbp, 0x128
mov qword [rsp + 0x28], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], 0xf
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000c8b2
lea rcx, [rsp + 0x28]
call fcn.140005ef0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14000c8d2
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000c96a
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000c92a
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c925
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c9bb
call fcn.14000cc10
inc edi
cmp edi, dword [rbx]
jb 0x14000c880
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000cbf0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
imul rax, rbp, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000c9c7
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c9c2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c9c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000cc10
mov rax, rdi
jmp 0x14000c947
Function at 0x100001d60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x100001298]
mov rsi, rdx
call qword [sym.imp.msvcrt.dll_getenv]
mov rdi, rax
test rax, rax
je 0x100001ddd
cmp byte [rax], 0
je 0x100001ddd
lea rdx, [rbx + 0x20]
lea r8, [0x1000012a8]
mov rcx, rax
mov dword [rbx + 0x1c], 1
call fcn.100002620
test eax, eax
je 0x100001ddd
mov dword [rbx + 0x1c], 0
test rsi, rsi
je 0x100001ddd
mov ecx, eax
call qword [sym.imp.msvcrt.dll_strerror]
lea r8, [0x1000012b0]
mov r9, rdi
mov edx, 0x400
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.100001cd0
lea rcx, [0x1000012c8]
call qword [sym.imp.msvcrt.dll_getenv]
add rbx, 0x1c
je 0x100001e46
test rax, rax
je 0x100001e46
movzx eax, byte [rax]
test al, al
je 0x100001e46
cmp al, 0x6e
je 0x100001e40
cmp al, 0x4e
je 0x100001e40
cmp al, 0x76
je 0x100001e2a
cmp al, 0x56
je 0x100001e2a
cmp al, 0x64
je 0x100001e14
cmp al, 0x44
jne 0x100001e46
mov dword [rbx], 3
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], 2
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1000023b0
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
sub rsp, 0x858
mov rax, qword [0x100006110]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp dword [rcx + 4], 0
mov rbx, rdx
mov rsi, rcx
mov byte [rsp + 0x40], 0
jne 0x1000023e7
mov eax, 1
jmp 0x100002467
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x850], rdi
test rcx, rcx
je 0x1000025bf
cmp byte [rcx], 0
je 0x1000025bf
lea rdx, [0x100001480]
mov qword [rsp + 0x880], rbp
call qword [sym.imp.msvcrt.dll_fopen]
mov rbp, rax
test rax, rax
jne 0x100002481
test rbx, rbx
je 0x100002455
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.msvcrt.dll_strerror]
mov r9, qword [0x100006748]
lea r8, [0x1000014a0]
mov edx, 0x400
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.100001cd0
xor eax, eax
mov rbp, qword [rsp + 0x880]
mov rdi, qword [rsp + 0x850]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.100004b40
add rsp, 0x858
pop rsi
pop rbx
ret
mov edi, 0x400
lea rcx, [rsp + 0x440]
mov r8, rax
mov edx, edi
call qword [sym.imp.msvcrt.dll_fgets]
test rax, rax
je 0x100002566
lea rcx, [rsp + 0x440]
call fcn.100002be0
cmp byte [rax], 0
je 0x10000254a
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x440]
call fcn.100001e60
cmp eax, 1
jne 0x10000254a
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100002500
cmp qword [rsi + 0x28], 0
lea rax, [rsi + 0x28]
je 0x1000024fd
nop dword [rax]
mov rax, qword [rax]
add rax, 0x28
cmp qword [rax], 0
jne 0x1000024f0
mov qword [rax], rcx
cmp qword [rcx + 0x18], 0
je 0x10000250d
mov rdx, qword [rcx + 0x18]
jmp 0x100002514
lea rdx, [0x100001290]
cmp qword [rcx + 0x10], 0
je 0x100002521
mov r9, qword [rcx + 0x10]
jmp 0x100002528
lea r9, [0x100001290]
mov rax, qword [rcx + 0x20]
mov r8d, dword [rcx]
mov ecx, 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rdx, [0x1000014c8]
call fcn.100002700
lea rcx, [rsp + 0x440]
mov r8, rbp
mov edx, edi
call qword [sym.imp.msvcrt.dll_fgets]
test rax, rax
jne 0x1000024a2
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fclose]
cmp dword [rsi + 0x10], 0
je 0x100002586
cmp byte [rsp + 0x40], 0
jne 0x10000258f
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx ecx, byte [rsp + 0x40]
test cl, cl
je 0x1000025b3
mov r9, qword [rsi + 8]
lea rax, [rsp + 0x40]
lea r8, [0x1000014e0]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.100001cd0
mov cl, byte [rsp + 0x40]
xor eax, eax
test cl, cl
sete al
jmp 0x100002457
test rdx, rdx
je 0x10000260a
lea rcx, [0x100001488]
mov edi, 0x400
sub rcx, rdx
lea rax, [rdi + 0x7ffffbfe]
test rax, rax
je 0x1000025ff
movzx eax, byte [rcx + rbx]
test al, al
je 0x1000025ff
mov byte [rbx], al
inc rbx
sub rdi, 1
jne 0x1000025d3
dec rbx
xor eax, eax
mov byte [rbx], dil
jmp 0x10000245f
test rdi, rdi
jne 0x100002607
dec rbx
mov byte [rbx], 0
xor eax, eax
jmp 0x10000245f
Function at 0x100002950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, r8
xor r8d, r8d
mov rsi, rdx
mov rdi, rcx
mov rbx, rcx
mov qword [rdx], r8
test rcx, rcx
je 0x1000029a4
nop word [rax + rax]
movzx eax, byte [rbx]
test al, al
je 0x100002a5a
cmp al, 0x20
je 0x10000299b
cmp al, 9
je 0x10000299b
cmp al, 0xa
jne 0x100002a5a
inc rdi
add rbx, 1
jne 0x100002980
inc rdi
add rbx, 1
je 0x1000029cc
nop dword [rax]
movzx eax, byte [rbx]
test al, al
je 0x1000029cc
cmp al, 0x20
je 0x1000029c3
cmp al, 9
je 0x1000029c3
cmp al, 0xa
jne 0x1000029cc
inc rdi
add rbx, 1
jne 0x1000029b0
movzx ecx, byte [rdi]
test cl, cl
je 0x100002aae
test r8d, r8d
jne 0x1000029e5
cmp cl, 0x7d
je 0x100002aae
xor eax, eax
cmp cl, 0x22
mov cl, byte [rdi + 1]
sete al
inc rdi
xor r8d, eax
test cl, cl
jne 0x1000029d7
test r8d, r8d
je 0x100002aae
test r9, r9
je 0x100002a9b
lea rcx, [0x100001510]
mov edx, 0x400
sub rcx, r9
nop dword [rax + rax]
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x100002a8f
movzx eax, byte [rcx + r9]
test al, al
je 0x100002a8f
mov byte [r9], al
inc r9
sub rdx, 1
jne 0x100002a20
dec r9
mov rax, rdi
mov byte [r9], dl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rbx], 0x7b
je 0x1000029a4
test r9, r9
je 0x100002a7c
lea r8, [0x100001540]
mov edx, 0x400
mov rcx, r9
call fcn.100001c50
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdx, rdx
jne 0x100002a97
dec r9
mov byte [r9], 0
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp byte [rdi], 0x7d
je 0x100002ac1
test r9, r9
je 0x100002a7c
lea r8, [0x100001590]
jmp 0x100002a6f
cmp rdi, rbx
je 0x100002afa
mov rcx, rdi
sub rcx, rbx
inc rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsi], rax
test rax, rax
je 0x100002af6
nop dword [rax]
movzx ecx, byte [rbx]
inc rbx
inc rax
mov byte [rax - 1], cl
cmp rbx, rdi
jne 0x100002ae0
mov byte [rax], 0
jmp 0x100002b13
xor edi, edi
jmp 0x100002b13
test r9, r9
je 0x100002b13
lea r8, [0x1000015c0]
mov edx, 0x400
mov rcx, r9
call fcn.100001c50
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
lea rax, [rdi + 1]
add rsp, 0x20
pop rdi
ret
Function at 0x1000045b0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x378
mov rax, qword [0x100006110]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov r12, rcx
mov rbx, rdx
mov esi, 0x104
lea rcx, [rsp + 0x250]
mov edx, esi
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10000465a
test rdi, rdi
je 0x100004653
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov ebx, eax
lea rax, [rsp + 0x150]
xor edx, edx
mov ecx, 0x1000
mov r8d, ebx
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r11, [rsp + 0x150]
lea r8, [0x100001ba0]
mov r9d, ebx
mov edx, 0x400
mov rcx, rdi
mov qword [rsp + 0x20], r11
call fcn.100001cd0
xor eax, eax
jmp 0x100004789
lea r9, [rsp + 0x250]
lea r8, [0x100001be0]
lea rcx, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x370], rbp
call fcn.100001cd0
lea rdx, [0x1000012a8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_fopen]
mov rbp, rax
test rax, rax
jne 0x1000046ce
test rdi, rdi
je 0x1000046c7
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.msvcrt.dll_strerror]
lea r8, [0x100001bf0]
mov r9, rbx
mov edx, 0x400
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.100001cd0
xor eax, eax
jmp 0x100004781
mov rdi, qword [r12 + 0x28]
test rdi, rdi
je 0x100004731
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll_fputs]
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x100004718
cmp byte [rax], 0
je 0x100004718
lea rcx, [0x100001c14]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll_fputs]
mov rcx, qword [rdi + 0x20]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll_fputs]
lea rcx, [0x10000150c]
mov rdx, rbp
call qword [sym.imp.msvcrt.dll_fputs]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1000046e0
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fclose]
test rbx, rbx
je 0x10000477c
lea rcx, [rsp + 0x40]
sub rcx, rbx
nop word [rax + rax]
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x100004771
movzx eax, byte [rcx + rbx]
test al, al
je 0x100004771
mov byte [rbx], al
inc rbx
sub rsi, 1
jne 0x100004750
jmp 0x100004776
test rsi, rsi
jne 0x100004779
dec rbx
mov byte [rbx], 0
mov eax, 1
mov rbp, qword [rsp + 0x370]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.100004b40
add rsp, 0x378
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x100004b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rbp - 0x40], 6
mov r13, 7
mov rax, 0x54
mov r10, qword [rbp - 0x40]
cqo
cdq
idiv r10
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 9
xor r15d, r15d
mov r10, qword [rbp - 0x58]
mov r14, r10
sub r14, 9
movabs r10, 0x21a4
mov qword [rbp - 0xb8], r10
mov edi, 0xb13c7c25
mov r14d, 0x44e1
mov r10, qword [rbp - 0xb8]
movabs r9, 4
mov r15, r10
imul r15, r9
mov r10d, r14d
movabs r9, 0x284b
mov r14, r10
add r14, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
add r15, qword [rbp - 0x60]
mov r10, qword [rbp - 0x40]
mov r12, r10
sub r12, 6
mov esi, 0x1e4b
movabs r10, 0x1eb8
add r15, r10
mov r10d, r14d
movabs r9, 0x486d4
xchg byte [rax + rax], al
add byte [rax], al
add byte [rax], al
mov r14, r10
add r14, r9
sub edi, 1
sub r15, rsi

Function at 0x100004b68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rbp - 0x40], 6
mov r13, 7
mov rax, 0x54
mov r10, qword [rbp - 0x40]
cqo
cdq
idiv r10
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 9
xor r15d, r15d
mov r10, qword [rbp - 0x58]
mov r14, r10
sub r14, 9
movabs r10, 0x21a4
mov qword [rbp - 0xb8], r10
mov edi, 0xb13c7c25
mov r14d, 0x44e1
mov r10, qword [rbp - 0xb8]
movabs r9, 4
mov r15, r10
imul r15, r9
mov r10d, r14d
movabs r9, 0x284b
mov r14, r10
add r14, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
add r15, qword [rbp - 0x60]
mov r10, qword [rbp - 0x40]
mov r12, r10
sub r12, 6
mov esi, 0x1e4b
movabs r10, 0x1eb8
add r15, r10
mov r10d, r14d
movabs r9, 0x486d4
xchg byte [rax + rax], al
add byte [rax], al
add byte [rax], al
mov r14, r10
add r14, r9
sub edi, 1
sub r15, rsi

Function at 0x100004bda
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rbp - 0x40], 6
mov r13, 7
mov rax, 0x54
mov r10, qword [rbp - 0x40]
cqo
cdq
idiv r10
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 9
xor r15d, r15d
mov r10, qword [rbp - 0x58]
mov r14, r10
sub r14, 9
movabs r10, 0x21a4
mov qword [rbp - 0xb8], r10
mov edi, 0xb13c7c25
mov r14d, 0x44e1
mov r10, qword [rbp - 0xb8]
movabs r9, 4
mov r15, r10
imul r15, r9
mov r10d, r14d
movabs r9, 0x284b
mov r14, r10
add r14, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
add r15, qword [rbp - 0x60]
mov r10, qword [rbp - 0x40]
mov r12, r10
sub r12, 6
mov esi, 0x1e4b
movabs r10, 0x1eb8
add r15, r10
mov r10d, r14d
movabs r9, 0x486d4
xchg byte [rax + rax], al
add byte [rax], al
add byte [rax], al
mov r14, r10
add r14, r9
sub edi, 1
sub r15, rsi