joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100179f28
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1001a9138], rdi
je 0x100179f81
cmp rax, rdi
jne 0x100179f74
mov esi, 1
jmp 0x100179f81
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100179f5b
mov eax, dword [0x1001a9134]
cmp eax, 1
jne 0x100179f96
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100179ffb
mov eax, dword [0x1001a9134]
test eax, eax
jne 0x100179ff1
mov dword [0x1001a9134], 1
lea r12, [0x100002118]
lea rdi, [0x100002100]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x100179fe3
test eax, eax
jne 0x100179fe3
mov rcx, qword [rdi]
test rcx, rcx
je 0x100179fd8
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x100179fc1
test eax, eax
je 0x100179ffb
mov eax, 0xff
jmp 0x10017a145
mov dword [0x100199f64], 1
mov eax, dword [0x1001a9134]
cmp eax, 1
jne 0x10017a023
lea rdx, [0x1000020f8]
lea rcx, [0x100002028]
call sub.msvcrt.dll__initterm
mov dword [0x1001a9134], 2
test esi, esi
jne 0x10017a030
xor eax, eax
xchg qword [0x1001a9138], rax
cmp qword [0x1001a9150], 0
je 0x10017a059
lea rcx, [0x1001a9150]
call fcn.10017a69c
test eax, eax
je 0x10017a059
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1001a9150]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10017a0e4
cmp byte [rdi], 0
je 0x10017a07a
test esi, esi
jne 0x10017a0e4
cmp byte [rdi], 0x22
jne 0x10017a0f6
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10017a10b
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10017a06c
sub rsp, 0x28
call fcn.10017a7a4
add rsp, 0x28
jmp 0x100179f28
Function at 0x10017a260
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100190170]
jne 0x10017a27b
rol rcx, 0x10
test cx, 0xffff
jne 0x10017a277
ret 0
ror rcx, 0x10
jmp 0x10017a860
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10019a020]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10019a118]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10017a8e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10019a020]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10017a907
mov rax, qword [rsp + 0x88]
mov qword [0x10019a118], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10019a0b8], rax
mov rax, qword [0x10019a118]
mov qword [0x100199f90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10019a0a0], rax
mov dword [0x100199f80], 0xc0000409
mov dword [0x100199f84], 1
mov rax, qword [0x100190170]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100190178]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100002160]
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, 0x88
ret

Function at 0x10017a6fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10017a749
cmp rcx, 0xffffffffffffffff
je 0x10017a749
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10017a741
cmp dword [rcx + 0x3c], edx
jl 0x10017a741
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10017a741
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10017a749
mov rax, rdx
add rsp, 0x18
ret
Function at 0x4257c0
Capabilities:
Hash data using murmur3

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x425a67
sub rsp, 0x38
mov qword [rsp + 0x30], rbp
lea rbp, [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
movzx ebx, byte [rdx + 0x63]
cmp bl, 1
jne 0x425903
movzx ebx, word [rdx + 0x60]
mov word [rsp + 0x16], bx
test bx, bx
jne 0x42592b
mov rsi, qword [rsp + 0x40]
mov edi, dword [rsi + 0x18]
cmp dword [rdx + 0x58], edi
jne 0x42592b
mov rbx, qword [rsi + 0x98]
sub rbx, qword [rdx + 0x20]
mov qword [rsi + 0x98], rbx
nop
nop
mov rbx, qword [rdx + 0x18]
nop
movabs rdi, 0x800000000000
lea rax, [rbx + rdi]
mov rdi, rax
shr rax, 0x2a
cmp rax, 0x40
jae 0x425921
lea rcx, [0x0063a970]
mov rax, qword [rcx + rax*8]
shr rdi, 0x16
and rdi, 0xfffff
mov rcx, qword [rax + rdi*8]
test byte [rcx], al
test byte [rax], al
mov rax, rbx
shr rbx, 0x10
and rbx, 0x3f
movzx edi, byte [rcx + rbx + 0x21000]
shr rax, 0xd
and rax, 7
btr edi, eax
mov byte [rcx + rbx + 0x21000], dil
movzx eax, byte [rsp + 0x50]
test al, al
je 0x4258b1
mov rax, qword [rdx + 0x20]
shl rax, 0xd
sub qword [0x00656568], rax
movzx eax, byte [rsp + 0x51]
test al, al
je 0x4258c9
mov rax, qword [rdx + 0x20]
shl rax, 0xd
add qword [0x00656560], rax
mov byte [rdx + 0x63], 3
mov qword [rsp], rsi
mov qword [rsp + 8], rdx
call fcn.004237c0
mov rax, qword [rsp + 0x40]
test byte [rax], al
add rax, 8
mov qword [rsp], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 8], rax
call fcn.0041c580
mov rbp, qword [rsp + 0x30]
add rsp, 0x38
ret
cmp bl, 2
jne 0x425a4d
cmp word [rdx + 0x60], 0
jne 0x425a34
mov rsi, qword [rsp + 0x40]
jmp 0x425899
mov ecx, 0x40
call fcn.00459ce0
mov eax, dword [rdx + 0x58]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x18]
mov qword [rsp + 0x20], rcx
mov rbx, qword [rdx + 0x18]
mov qword [rsp + 0x18], rbx
call fcn.0042f930
lea rax, [0x0054e1c6]
mov qword [rsp], rax
mov qword [rsp + 8], 0x1c
call fcn.004302e0
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.00430290
lea rax, [0x0054871e]
mov qword [rsp], rax
mov qword [rsp + 8], 5
call fcn.004302e0
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
call fcn.00430170
lea rax, [0x00549898]
mov qword [rsp], rax
mov qword [rsp + 8], 0xc
call fcn.004302e0
movzx eax, word [rsp + 0x16]
mov qword [rsp], rax
call fcn.0042fff0
lea rax, [0x0054927f]
mov qword [rsp], rax
mov qword [rsp + 8], 0xa
call fcn.004302e0
mov rax, qword [rsp + 0x28]
mov qword [rsp], rax
call fcn.0042fff0
lea rax, [0x005483a9]
mov qword [rsp], rax
mov qword [rsp + 8], 1
call fcn.004302e0
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
call fcn.0042fff0
call fcn.0042fbd0
call fcn.0042f9c0
lea rax, [0x0054fc89]
mov qword [rsp], rax
mov qword [rsp + 8], 0x23
call fcn.0042ef20
lea rax, [0x00550baa]
mov qword [rsp], rax
mov qword [rsp + 8], 0x29
call fcn.0042ef20
lea rax, [0x00550b81]
mov qword [rsp], rax
mov qword [rsp + 8], 0x29
call fcn.0042ef20
nop
call fcn.00457320
jmp fcn.004257c0
Function at 0x448810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4489de
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x448998
mov ecx, dword [rax + 0x18]
mov qword [rsp], rax
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], 0
movzx ebx, byte [rsp + 0x88]
mov byte [rsp + 0x28], bl
call fcn.004480e0
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
mov edx, dword [rcx + 0x1c]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
mov dword [rsp + 0x10], edx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], 0
movzx edx, byte [rsp + 0x88]
mov byte [rsp + 0x28], dl
call fcn.004480e0
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x44890c
lea rax, [0x005483b1]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov dword [rsp + 0xa0], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp eax, 0xffffffff
je 0x4488dc
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rdx + 0x38]
mov rsi, qword [rdx + 0x30]
cmp rcx, rbx
jge 0x4488dc
mov rdi, qword [rdx + 8]
mov rdx, qword [rdx]
jae 0x4489d2
mov ebx, dword [rsi + rcx*4]
cmp rbx, rdi
jae 0x4489c8
mov dword [rsp + 0x3c], eax
lea rax, [rdx + rbx]
mov qword [rsp + 0x48], rax
mov qword [rsp], rax
call fcn.00446400
mov rax, qword [rsp + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xa0], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x005483b1]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov dword [rsp + 0xa0], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov eax, ebx
mov rcx, rdi
call fcn.00459cd0
mov rax, rcx
mov rcx, rbx
call fcn.00459cd0
nop
call fcn.00457320
jmp fcn.00448810
Function at 0x448a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x448bd2
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x14]
mov qword [rsp], rax
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rcx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 1
call fcn.004480e0
mov eax, dword [rsp + 0x30]
test eax, 7
jne 0x448af2
mov dword [rsp + 0x90], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
call fcn.004486a0
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx]
mov qword [rsp + 0x48], rbx
movsxd rdx, dword [rdx + 0x14]
mov qword [rsp + 0x40], rdx
call fcn.0042f930
lea rax, [0x0054a870]
mov qword [rsp], rax
mov qword [rsp + 8], 0x10
call fcn.004302e0
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
call fcn.004302e0
call fcn.0042fb80
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.00430170
call fcn.0042fb80
mov rax, qword [rsp + 0x80]
mov qword [rsp], rax
call fcn.00430170
call fcn.0042fb80
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
call fcn.00430170
call fcn.0042fb80
mov eax, dword [rsp + 0x3c]
movsxd rcx, eax
mov qword [rsp], rcx
call fcn.00430100
call fcn.0042fbd0
call fcn.0042f9c0
mov eax, dword [rsp + 0x3c]
jmp 0x448ae1
call fcn.00457320
jmp fcn.00448a70
Function at 0x44f590
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x44f670
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x00456bd0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004571d0
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.00457320
jmp fcn.0044f590
Function at 0x468290
Capabilities:
Encode data using base64

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rdx, qword [rsp + 0x20]
mov rbx, qword [rdx + 8]
lea rsi, [rbx + 0x2e]
neg rsi
imul rsi, rsi, 0x1c
movabs rax, 0x5816058160581606
mov rcx, rdx
imul rsi
sar rsi, 0x3f
sar rdx, 5
sub rdx, rsi
lea rsi, [rdx + 0x15c]
sar rsi, 0x3f
shr rsi, 0x3d
lea rdx, [rsi + rdx]
lea rdx, [rdx + 0x15c]
sar rdx, 3
cmp rdx, 0x57
jae 0x46836b
lea rsi, [rdx + rdx*2]
lea rdi, [0x0062c000]
mov r8, qword [rdi + rsi*8 + 8]
lea r9, [r8 + rbx]
lea r9, [r9 + 0x40]
cmp r9, 0xffffffffffffffc4
jge 0x468314
inc rdx
jmp 0x4682eb
cmp r9, 0xffffffffffffffe0
jle 0x46831f
dec rdx
jmp 0x4682eb
mov rbx, qword [rdi + rsi*8]
mov rax, qword [rcx]
mov rsi, rdx
mul rbx
shr rax, 0x3f
add rdx, rax
mov qword [rcx], rdx
mov rdx, qword [rcx + 8]
lea rdx, [rdx + r8]
lea rdx, [rdx + 0x40]
mov qword [rcx + 8], rdx
mov rcx, rsi
shl rsi, 3
lea rdx, [rsi - 0x15c]
neg rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, rdx
mov ecx, 0x57
call fcn.00459cd0
nop
int3
Function at 0x14001e0e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001e160
cmp r11, r10
ja 0x14001e1d7
cmp r10, rdx
ja 0x14001e1e9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14001e162
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001e140
jmp 0x14001e1c4
ja 0x14001e16a
mov r11, r10
cmp rax, r8
jne 0x14001e10e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001e1a0
mov rdi, r8
sub ecx, edx
jns 0x14001e1bb
jmp 0x14001e1c6
cmp r8, rsi
je 0x14001e1f8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001e1c6
xor al, 1
cmp rdi, rsi
jne 0x14001e180
jmp 0x14001e1c6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140032ef0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140032c10
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140032f60
int3

Function at 0x140022e60
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140022e85
cmp rax, rcx
je 0x140022e8b
cmp rdx, 4
jae 0x140022e92
xor eax, eax
xor r8d, r8d
jmp 0x140022f30
pop rbp
jmp fcn.14001b730
xor eax, eax
jmp 0x140022f47
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140034570]
movdqa xmm3, xmmword [0x140034580]
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 0x140022ec0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140022f47
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140022f30
pop rbp
ret
Function at 0x14002bce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, r9
mov esi, ecx

Function at 0x1400303f0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
mov r9, rcx
mov ecx, 0xfffffff4
pop rbp
jmp fcn.1400268d0

Function at 0x140031d70
Capabilities:
Parse pe header

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

Disassembly:
call fcn.034c81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x34c8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x34c806f
add dl, dl
jne 0x34c8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x34c80f6
xor eax, eax
add dl, dl
jne 0x34c80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x34c81ad
add dl, dl
jne 0x34c80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x34c80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x34c80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x34c80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x34c80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x34c807e
mov eax, 1
add dl, dl
jne 0x34c8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x34c8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x34c80fb
sub eax, ebx
mov ebx, 1
jne 0x34c814c
mov ecx, 1
add dl, dl
jne 0x34c812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x34c813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x34c8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x34c807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x34c8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x34c8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x34c815d
cmp eax, 0x7d00
jae 0x34c819b
cmp eax, 0x500
jb 0x34c8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x34c807e
cmp eax, 0x7f
ja 0x34c819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x34c807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x34c81d2
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 0x34c807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14005da30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x14005dad4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14005da90
mov ecx, dword [r10]
jmp 0x14005dbb7
cmp ecx, 0x4e0
jb 0x14005dbb7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14005daf0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x14005db40
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x14005da70
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x14005da60
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret

Function at 0x14016c0d0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0x10
jb 0x14016c0de
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
add rsp, 0x28
ret