joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401fa6a0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401fa540
call fcn.1401e21f4
mov dword [rax], 0x16
call fcn.1401e20a4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401fa528
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401fa528
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401fa572
lock or dword [rax + 0x14], 0x10
jmp 0x1401fa528
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401fa58f
mov rcx, qword [rbp + 0x10]
call fcn.140202dbc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401ec2d0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401f9d64
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401fa5e6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401fa528
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401fa652
mov rcx, qword [rbp + 0x10]
call fcn.1401ec2d0
cmp eax, 0xffffffff
je 0x1401fa639
mov rcx, qword [rbp + 0x10]
call fcn.1401ec2d0
cmp eax, 0xfffffffe
je 0x1401fa639
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401ec2d0
movsxd rdi, eax
lea rsi, [0x1402db4a0]
mov rcx, rbx
sar rdi, 6
call fcn.1401ec2d0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401fa640
lea rax, [0x1402c9ba0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401fa652
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401fa688
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401fa684
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401fa684
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401fa52b
jmp 0x1401fa4f8
Function at 0x1400110ff
Capabilities:
Write file on windows

Disassembly:
jmp 0x140023160
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400ed]
call fcn.140011b72
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400231b8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400232ca
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140023263
cmp qword [rbp + 0x28], 0
jle 0x140023263
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140023201
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011ae1
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x1400232b9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400232b9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011659
Capabilities:
Terminate process

Disassembly:
jmp 0x140026c20
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]
nop
add rsp, 0x28
ret

Function at 0x1400117ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140025fb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140025fd0
xor al, al
jmp 0x140026051
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140025fe3
xor al, al
jmp 0x140026051
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 0x14002600d
xor al, al
jmp 0x140026051
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140026021
xor al, al
jmp 0x140026051
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140026033
xor al, al
jmp 0x140026051
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002604f
xor al, al
jmp 0x140026051
mov al, 1
add rsp, 0x38
ret
Function at 0x14001185c
Capabilities:
Log keystrokes via application hook

Disassembly:
jmp 0x14001c470
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400400fb]
call fcn.140011b72
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14001137a]
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x140037880], rax
cmp qword [0x140037880], 0
jne 0x14001c4e2
lea rax, str.Failed_to_install_hook_
mov qword [rbp + 8], rax
lea rax, str.Error
mov qword [rbp + 0x28], rax
mov r9d, 0x10
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011b4f
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001d0a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140037040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400400ed]
call fcn.140011b72
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001d107
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001d10e
mov al, 1
jmp 0x14001d25e
call fcn.140011334
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140011334
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011910
movzx eax, al
test eax, eax
je 0x14001d15f
xor al, al
jmp 0x14001d25e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001d1c4
cmp dword [rbp + 0x154], 1
je 0x14001d1cf
cmp dword [rbp + 0x154], 3
je 0x14001d24d
jmp 0x14001d25c
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001d21f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001d21f
xor al, al
jmp 0x14001d25e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001d23a
mov dword [rbp + 0x154], 1
jmp 0x14001d244
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001d25e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001d25e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002fb20]
call fcn.140011992
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011573
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140024da0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011bdb
movzx eax, al
test eax, eax
jne 0x140024dc0
mov ecx, 7
call fcn.1400119b5
nop
mov byte [rsp + 0x20], 0
call fcn.1400119f6
mov byte [rsp + 0x21], al
cmp dword [0x140037b78], 1
jne 0x140024de4
mov ecx, 7
call fcn.1400119b5
nop
jmp 0x140024e3c
cmp dword [0x140037b78], 0
jne 0x140024e37
mov dword [0x140037b78], 1
lea rdx, [0x14002e888]
lea rcx, [0x14002e558]
call fcn.140011550
test eax, eax
je 0x140024e18
mov eax, 0xff
jmp 0x140024f41
lea rdx, [0x14002e448]
lea rcx, [section..rdata]
call fcn.1400119d8
mov dword [0x140037b78], 2
jmp 0x140024e3c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011974
call fcn.140011834
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140024e99
mov rcx, qword [rsp + 0x30]
call fcn.14001146f
movzx eax, al
test eax, eax
je 0x140024e99
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140041020]
nop
call fcn.1400118d4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140024ecd
mov rcx, qword [rsp + 0x38]
call fcn.14001146f
movzx eax, al
test eax, eax
je 0x140024ecd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011b22
nop
call fcn.140024fb0
mov dword [rsp + 0x28], eax
call fcn.1400117ee
movzx eax, al
test eax, eax
jne 0x140024eec
mov ecx, dword [rsp + 0x28]
call fcn.1400110b4
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140024efb
call fcn.140011b36
nop
xor edx, edx
mov cl, 1
call fcn.140011433
mov eax, dword [rsp + 0x28]
jmp 0x140024f41
add rsp, 0x68
ret
Function at 0x1400044c0
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
lea rdx, [0x1400136a0]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
mov dword [rbp - 0x50], 0x5000
lea rcx, [rbp - 0x50]
call qword [sym.imp.kernel32.dll_SetThreadStackGuarantee]
call qword [sym.imp.kernel32.dll_GetCurrentThread]
mov r8, qword [0x14002c038]
lea rdx, str.main
mov rcx, rax
call r8
mov qword [rbp - 0x50], 0
lea rcx, [rbp - 0x50]
call fcn.1400138f0
mov rsi, rax
mov rax, qword [rax + 0x28]
mov qword [rbp - 8], rax
mov qword [rbp], rsi
lea rax, [rbp - 8]
mov qword [rbp + 8], rax
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x60]
test eax, eax
je 0x140004596
cmp eax, 1
je 0x1400045b9
lock dec qword [rsi]
jne 0x14000456c
mov rcx, rbp
call fcn.140014c30
lea rax, [0x140026ee0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140026e83]
lea r9, [0x140026c30]
lea r8, [rbp + 0x18]
mov edx, 0x46
call fcn.14001d540
ud2
mov byte [rbp + 0x1f], 1
call fcn.140014ad0
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov byte [rax + 0x60], 1
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x58], 0
jne 0x14000464e
mov eax, dword [0x14002c1f4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x58], rsi
mov rcx, qword [rbp - 8]
mov qword [rax + 0x50], rcx
lea rcx, [0x14000191d]
call fcn.140001056
mov eax, dword [0x14002c100]
cmp eax, 3
je 0x140004642
mov byte [rbp], 1
mov rax, rbp
mov qword [rbp - 0x50], rax
lea rax, str.std_src_rt.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14002c100]
lea r9, [0x1400272e8]
lea r8, [rbp - 0x50]
xor edx, edx
call fcn.14001dd80
xor eax, eax
add rsp, 0xb8
pop rsi
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rsi
mov dword [rbp + 0x10], 0
mov byte [rbp + 0x14], 0
lea rax, str.fatal_runtime_error:_thread::set_current_should_only_be_called_once_per_thread_n
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rax, [rbp + 0x18]
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
lea rcx, [rbp + 0x10]
lea rdx, [rbp - 0x50]
call fcn.140013a00
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140013b60
mov ecx, 7
int 0x29
ud2
Function at 0x1400093d7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x1400093ea
xor esi, esi
jmp 0x1400095a3
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
test byte [rcx], 1
je 0x140009425
lea rdx, [rdi + 8]
mov r9, qword [rdi + 0x50]
cmp qword [rdi + 0x38], 0xffffffffffffffff
mov rax, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
je 0x14000950b
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
jmp 0x14000951a
cmp byte [rdi + 0x1a], 0
jne 0x140009531
mov rdx, qword [rdi + 0x50]
mov r8, qword [rdi + 8]
mov al, byte [rdi + 0x18]
mov ecx, eax
xor cl, 1
mov byte [rdi + 0x18], cl
test r8, r8
je 0x14000945e
cmp r8, rdx
jae 0x140009458
cmp byte [rsi + r8], 0xbf
jg 0x14000945e
jmp 0x1400095ad
jne 0x1400095ad
cmp r8, rdx
je 0x140009529
mov r10b, byte [rsi + r8]
movzx ecx, r10b
test cl, cl
jns 0x1400094d2
mov r9d, ecx
and r9d, 0x1f
movzx r11d, byte [rsi + r8 + 1]
and r11d, 0x3f
cmp cl, 0xdf
jbe 0x1400094bf
movzx ecx, byte [rsi + r8 + 2]
shl r11d, 6
and ecx, 0x3f
or ecx, r11d
cmp r10b, 0xf0
jb 0x1400094cb
movzx r10d, byte [rsi + r8 + 3]
and r9d, 7
shl r9d, 0x12
shl ecx, 6
and r10d, 0x3f
or r10d, ecx
or r10d, r9d
mov ecx, r10d
jmp 0x1400094d2
shl r9d, 6
or r9d, r11d
mov ecx, r9d
jmp 0x1400094d2
shl r9d, 0xc
or ecx, r9d
test al, 1
jne 0x140009535
mov eax, 1
cmp ecx, 0x80
jb 0x1400094ff
mov eax, 2
cmp ecx, 0x800
jb 0x1400094ff
cmp ecx, 0x10000
mov eax, 4
sbb rax, 0
add r8, rax
mov qword [rdi + 8], r8
jmp 0x140009437
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.140009631
jmp 0x14000954c
test al, 1
jne 0x140009538
mov byte [rdi + 0x1a], 1
xor eax, eax
jmp 0x140009547
mov rdx, r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rdx
mov eax, 1
mov qword [rsp + 0x40], rax
test byte [rsp + 0x40], 1
je 0x14000956d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
jmp 0x1400095a3
cmp byte [rdi + 0x79], 0
jne 0x1400093e3
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 1
jne 0x14000958b
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x14000959c
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x1400093e3
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
lea rax, [0x140026e38]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r9, rdx
call fcn.14001d7a0
int3
Function at 0x140010580
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400105a5
cmp rax, rcx
je 0x1400105ab
cmp rdx, 4
jae 0x1400105b2
xor eax, eax
xor r8d, r8d
jmp 0x140010650
pop rbp
jmp fcn.140005d50
xor eax, eax
jmp 0x140010667
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001f510]
movdqa xmm3, xmmword [0x14001f520]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400105e0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140010667
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140010650
pop rbp
ret
Function at 0x1400172d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rsi + 7], esi
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x14001733e
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x14001cba0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14151d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14151d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14151d06f
add dl, dl
jne 0x14151d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14151d0f6
xor eax, eax
add dl, dl
jne 0x14151d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14151d1ad
add dl, dl
jne 0x14151d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14151d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14151d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14151d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14151d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14151d07e
mov eax, 1
add dl, dl
jne 0x14151d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14151d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14151d0fb
sub eax, ebx
mov ebx, 1
jne 0x14151d14c
mov ecx, 1
add dl, dl
jne 0x14151d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14151d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14151d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14151d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14151d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14151d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14151d15d
cmp eax, 0x7d00
jae 0x14151d19b
cmp eax, 0x500
jb 0x14151d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14151d07e
cmp eax, 0x7f
ja 0x14151d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14151d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14151d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14151d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001f98
Capabilities:
Parse pe header

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

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140013008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140013008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140013008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140013008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140130000
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
xchg rdi, r9
mov qword [rsp + 0x20], rdi
xchg r9, rdi
xchg rbx, r8
mov qword [rsp + 0x18], rbx
xchg rbx, r8
Function at 0x140132432
Capabilities:
Resolve function by parsing pe exports

Disassembly:
clc
cdq
jg 0x140131d78
and ebp, 0x42411744
call rax
ror r15d, 0xee
movabs r13, 0x71a6d8fffffb7ae9
call rcx
lea r15d, [rdx + 0xebbc]
neg r15
syscall
jg 0x140131719
ret 0x18
Function at 0x140133e3f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea r8, [rsp + 0x36]
lea rdx, [rbp + 0x14]
xor ecx, ecx
call r13
jmp 0x140133c2b
mov dword [rbp + 0x60], 0x76766b7e
mov word [rbp + 0x10], 0xf6f6
mov dword [rbp + 0x64], 0x386e6f
mov byte [rbp + 0x12], 0xf6
nop word [rax + rax]
jmp 0x140133cce
xchg rcx, rax
mov rcx, r15
xchg rcx, rax
jmp 0x140133c82
mov byte [rbp + rdx + 0x14], cl
mov byte [rbp + rdx - 0x40], r15b
inc rdx
jmp 0x140133e05
nop word [rax + rax]
mov dword [rbp + 0x4c], 0x737c7e7d
mov dword [rbp - 4], 0xf6f6f6f6
mov dword [rbp + 0x50], 0x6b7e7f6c
mov dword [rbp], 0xf6f6f6f6
mov dword [rbp + 0x54], 0x7d6f766c
jmp 0x140133cfc
movzx eax, byte [rbp + rdx + 0x14]
movzx ecx, byte [rbp + rdx - 0x40]
add cl, al
jmp 0x140133c58
mov dword [rbp + 4], 0xf6f6f6f6
mov dword [rbp + 0x58], 0x6f7c6b2a
mov dword [rbp + 8], 0xf6f6f6f6
mov dword [rbp + 0x5c], 0x7d78732a
mov dword [rbp + 0xc], 0xf6f6f6f6
jmp 0x140133c08
cmp rdx, 0x53
jb 0x140133cce
mov r9d, 0x10
jmp 0x140133bbf
clc
div dh
div dh
jmp 0x140133ca6