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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140023bcc
xor eax, eax
jmp 0x140023c8f
mov rbp, rbx
cmp word [rax], si
je 0x140023bf1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140023bd8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140023bd4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140021a58
movsxd r14, eax
test eax, eax
jne 0x140023c2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140023bc5
mov rcx, r14
call fcn.14001e6c4
mov rdi, rax
test rax, rax
jne 0x140023c48
xor ecx, ecx
call fcn.14001b464
jmp 0x140023c24
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140021a58
test eax, eax
jne 0x140023c79
mov rcx, rdi
call fcn.14001b464
jmp 0x140023c83
xor ecx, ecx
call fcn.14001b464
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140023cac
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140023d33
mov rsi, rbx
cmp word [rax], bp
je 0x140023cf2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140023cdc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140023cd8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e6c4
mov rdi, rax
test rax, rax
je 0x140023d20
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002b0a0
mov rbp, rdi
xor ecx, ecx
call fcn.14001b464
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400284b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140015e8c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002853e
cmp byte [rbp - 0x21], r15b
je 0x140028539
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028574
call fcn.140020190
test eax, eax
jne 0x140028560
cmp byte [rbp - 0x21], r15b
je 0x140028558
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028574
cmp byte [rbp - 0x21], r15b
je 0x140028571
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016468
test eax, eax
jne 0x140028614
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140015e8c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400285b3
cmp byte [rbp - 0x21], r15b
je 0x1400285e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400285e8
call fcn.140020190
test eax, eax
jne 0x1400285d4
cmp byte [rbp - 0x21], r15b
je 0x1400285cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400285e8
cmp byte [rbp - 0x21], r15b
je 0x1400285e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016468
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028614
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028617
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028625
mov rcx, rdi
call fcn.14001b464
cmp byte [rbp + 0x3f], r15b
je 0x140028634
mov rcx, qword [rbp + 0x27]
call fcn.14001b464
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140029be4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d184
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d184
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d34
cmp rax, 0xffffffffffffffff
je 0x140029d34
xor edi, edi
test rbp, rbp
jle 0x140029cdf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fe04
mov rbx, rax
test rax, rax
jne 0x140029c6c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cd5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001ab20
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de60
cmp eax, 0xffffffff
je 0x140029cb5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c7c
mov edx, r15d
mov ecx, r14d
call fcn.14001ab20
jmp 0x140029cd5
cmp byte [rsi + 0x38], dil
je 0x140029ccc
cmp dword [rsi + 0x34], 5
jne 0x140029ccc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cd5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b464
jmp 0x140029d48
jns 0x140029d48
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d184
cmp rax, 0xffffffffffffffff
jne 0x140029d00
cmp byte [rsi + 0x30], dil
je 0x140029d48
mov edi, dword [rsi + 0x2c]
jmp 0x140029d48
mov ecx, r14d
call fcn.140019658
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d48
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d41
mov eax, dword [rsi + 0x2c]
jmp 0x140029d46
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d184
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x410
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x400], rax
xor eax, eax
lea r11, [rsp]
mov rbx, rdx
mov rdi, rcx
mov r9d, eax
mov r10, rcx
lea edx, [rax + 8]
nop dword [rax]
nop dword [rax + rax]
lea r11, [r11 + 0x80]
movups xmm0, xmmword [r10]
movups xmm1, xmmword [r10 + 0x10]
lea r10, [r10 + 0x80]
movups xmmword [r11 - 0x80], xmm0
movups xmm0, xmmword [r10 - 0x60]
movups xmmword [r11 - 0x70], xmm1
movups xmm1, xmmword [r10 - 0x50]
movups xmmword [r11 - 0x60], xmm0
movups xmm0, xmmword [r10 - 0x40]
movups xmmword [r11 - 0x50], xmm1
movups xmm1, xmmword [r10 - 0x30]
movups xmmword [r11 - 0x40], xmm0
movups xmm0, xmmword [r10 - 0x20]
movups xmmword [r11 - 0x30], xmm1
movups xmm1, xmmword [r10 - 0x10]
movups xmmword [r11 - 0x20], xmm0
movups xmmword [r11 - 0x10], xmm1
sub rdx, 1
jne 0x1400012d0
test r8d, r8d
je 0x1400013c5
mov r11d, r8d
nop
inc eax
and eax, 0x800000ff
jge 0x140001352
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
lea r8, [rsp]
lea r8, [r8 + rcx*4]
mov ecx, dword [r8]
add r9d, ecx
movzx r10d, cl
and r9d, 0x800000ff
jge 0x14000137d
dec r9d
or r9d, 0xffffff00
inc r9d
movsxd rcx, r9d
lea rdx, [rsp]
lea rdx, [rdx + rcx*4]
mov byte [rdi + 0x408], r10b
mov ecx, dword [rdx]
mov dword [r8], ecx
mov dword [rdx], r10d
mov edx, dword [r8]
add edx, r10d
and edx, 0x800000ff
jge 0x1400013af
dec edx
or edx, 0xffffff00
inc edx
movsxd rcx, edx
movzx edx, byte [rsp + rcx*4]
xor byte [rbx], dl
inc rbx
sub r11, 1
jne 0x140001340
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140004dd0
mov rbx, qword [rsp + 0x430]
add rsp, 0x410
pop rdi
ret

Function at 0x140001bf0
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 0x140001c27
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 0x140001c48
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001c4a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001ca3
test ecx, ecx
jle 0x140001c83
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 0x140001ca3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001ca3
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 0x140001cd0
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 0x140001cf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001d08
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 0x140001d24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001d26
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140001d60
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 0x140001e07
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140001d9b
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 0x140001de1
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 0x140001e20
cmp rbx, rax
ja 0x140001db0
mov r8, rdi
test rdi, rdi
je 0x140001e07
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 0x140001e0a
Function at 0x140002250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000227d
xor eax, eax
jmp 0x1400023d2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400022a8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400022a8
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 0x1400023d2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400023c5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400022eb
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 0x140002316
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 0x1400023ca
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
js 0x1400023c5
cmp eax, 1
jle 0x140002385
cmp eax, 3
jne 0x1400023c5
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 0x1400023ca
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400023b3
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 0x1400023c5
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1400023ca
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004dd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002820
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400028f3
cmp byte [rcx + 0x71], 0
je 0x1400028f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400028ef
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 0x1400028b4
sub eax, 1
je 0x1400028b8
cmp eax, 2
jne 0x1400028ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004dd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400028e6
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 0x1400028ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000289c
xor al, al
jmp 0x14000289c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004dd0
add rsp, 0x60
pop rbx
ret
Function at 0x140002f50
Capabilities:
Decompress data using quicklz
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
test byte [rcx], 2
lea rbp, [rdx - 1]
mov esi, 3
lea rbx, [rdx - 1]
mov eax, 9
lea r12, [0x140006640]
cmovne esi, eax
mov r15, r8
add rsi, rcx
mov r10, rdx
add rbp, r8
mov r11d, 1
lea r14, [rbp - 0xa]
nop
mov eax, r11d
cmp r11d, 1
jne 0x140002fac
mov r11d, dword [rsi]
cmp eax, 1
lea rdx, [rsi + 4]
cmovne rdx, rsi
mov esi, dword [rdx]
mov ecx, esi
shr ecx, 0x10
test r11b, 1
je 0x140003060
mov eax, esi
shr r11d, 1
shr rax, 4
and eax, 0xfff
and esi, 0xf
mov rdi, qword [r9 + rax*8]
lea r8d, [rsi + 2]
movzx eax, cl
cmove r8d, eax
neg esi
sbb rsi, rsi
add rsi, 3
add rsi, rdx
xor eax, eax
nop word [rax + rax]
mov ecx, dword [rax + rdi]
mov dword [rax + r10], ecx
add eax, 3
cmp eax, r8d
jb 0x140003000
mov eax, r8d
add r10, rax
mov r8, r10
sub r8, rax
cmp rbx, r8
jae 0x140003057
lea rdx, [rbx + 1]
sub r8, rbx
nop word [rax + rax]
mov eax, dword [rdx]
mov ecx, eax
shr rcx, 0xc
xor rcx, rax
and ecx, 0xfff
mov qword [r9 + rcx*8], rdx
inc rdx
mov byte [rcx + r9 + ResumeThread], 1
sub r8, 1
jne 0x140003030
lea rbx, [r10 - 1]
jmp 0x140002fa0
cmp r10, r14
jae 0x1400030bf
mov eax, r11d
mov dword [r10], esi
and eax, 0xf
mov ecx, dword [r12 + rax*4]
add r10, rcx
shr r11d, cl
lea rsi, [rdx + rcx]
lea r8, [r10 - 3]
cmp rbx, r8
jae 0x140002fa0
sub r8, rbx
lea rdx, [rbx + 1]
add rbx, r8
mov eax, dword [rdx]
mov ecx, eax
shr rcx, 0xc
xor rcx, rax
and ecx, 0xfff
mov qword [r9 + rcx*8], rdx
inc rdx
mov byte [rcx + r9 + ResumeThread], 1
sub r8, 1
jne 0x140003093
jmp 0x140002fa0
cmp r10, rbp
ja 0x1400030fb
mov r8d, 0x80000000
nop word [rax + rax]
cmp r11d, 1
lea rcx, [rdx + 4]
mov eax, r11d
cmove r11d, r8d
cmp eax, 1
cmovne rcx, rdx
shr r11d, 1
movzx eax, byte [rcx]
lea rdx, [rcx + 1]
mov byte [r10], al
inc r10
cmp r10, rbp
jbe 0x1400030d0
lea r8, [rbp - 3]
cmp rbx, r8
jae 0x140003137
lea rdx, [rbx + 1]
sub r8, rbx
nop dword [rax + rax]
mov eax, dword [rdx]
mov ecx, eax
shr rcx, 0xc
xor rcx, rax
and ecx, 0xfff
mov qword [r9 + rcx*8], rdx
inc rdx
mov byte [rcx + r9 + ResumeThread], 1
sub r8, 1
jne 0x140003110
mov rbx, qword [rsp + 0x20]
mov rax, r15
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x140011023
Capabilities:
Create process on windows
Create process suspended

Disassembly:
jmp 0x1400126f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x50]
mov rdi, rsp
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x140025038]
call fcn.140011442
mov r8d, 0x68
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.140011361
mov r8d, 0x18
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.140011361
mov dword [rbp + 0x10], 0x68
lea rax, [rbp + 0x98]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400127d1
mov rax, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0xa0]
mov qword [rax], rcx
mov eax, dword [rbp + 0xa8]
jmp 0x1400127d3
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14001bce0]
call fcn.1400113bb
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.14001122b
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x140011276
Capabilities:
Terminate process

Disassembly:
jmp 0x140014700
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015a50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015a70
xor al, al
jmp 0x140015af1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015a83
xor al, al
jmp 0x140015af1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015aad
xor al, al
jmp 0x140015af1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015ac1
xor al, al
jmp 0x140015af1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015ad3
xor al, al
jmp 0x140015af1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015aef
xor al, al
jmp 0x140015af1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113c0
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140012850
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x14001f008]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x140025038]
call fcn.140011442
mov dword [rbp + 0x10], 0x130
lea rax, [rbp + 0x14]
mov rdi, rax
xor eax, eax
mov ecx, 0x12c
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call fcn.140011217
mov qword [rbp + 0x158], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x158]
call fcn.1400113ac
test eax, eax
je 0x14001290f
mov rdx, qword [rbp + 0x250]
lea rcx, [rbp + 0x3c]
call fcn.1400114b5
test eax, eax
jne 0x1400128fb
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x18]
jmp 0x14001291e
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x158]
call fcn.14001144c
test eax, eax
jne 0x1400128d5
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bd70]
call fcn.1400113bb
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.14001122b
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret