joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180058e90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4b0
mov rax, qword [0x180087e88]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rdi, qword [rsp + 0x48]
mov r15, r8
imul r13d, ecx, 0xa30
mov r14, rdx
mov r12d, ecx
mov ebp, ecx
cmp ecx, r13d
ja 0x18005907c
xor ebx, ebx
movabs rcx, 0x4e00540053
cmp ebp, 0x1980
ja 0x180058fe3
je 0x180058fd6
cmp ebp, 0x520
ja 0x180058f9f
je 0x180058f8e
mov eax, ebp
sub eax, 8
je 0x180058f7c
sub eax, 0x9e
je 0x180058f32
cmp eax, 0x4f
jne 0x18005911e
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x44], 0x36
jmp 0x18005911e
movsxd rax, dword [0x180088028]
cmp eax, 0x61a80
jge 0x180058f6e
mov r8, qword [r15]
mov rcx, rax
add rcx, qword [0x180088018]
add rax, r8
mov rdx, r14
cmp rax, 0x61a80
jb 0x180058f69
mov eax, 0x61a80
sub eax, dword [0x180088028]
movsxd r8, eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [r15]
add dword [0x180088028], eax
jmp 0x18005911e
mov dword [rsp + 0x58], 0x50
mov qword [rsp + 0x5a], rcx
jmp 0x18005911e
movups xmm0, xmmword [str.Listene]
movups xmmword [rsp + 0x60], xmm0
jmp 0x18005911e
cmp ebp, 0xa38
je 0x180058fc9
cmp ebp, 0xf50
je 0x180058fc0
cmp ebp, 0x1468
je 0x1800590c0
jmp 0x18005911e
mov qword [r14 + 0x10], rbx
jmp 0x18005911e
mov dword [rsp + 0x6e], 0x72
jmp 0x18005911e
mov dword [rsp + 0x40], 0x104
jmp 0x18005911e
cmp ebp, 0x6a58
ja 0x180059047
je 0x18005907c
cmp ebp, 0x1e98
je 0x18005903e
cmp ebp, 0x28c8
je 0x180059016
cmp ebp, 0x2de0
jne 0x18005911e
mov qword [r14 + 0x38], rbx
jmp 0x18005911e
mov edx, dword [rsp + 0x40]
lea r8, [rsp + 0x58]
xor r9d, r9d
mov qword [r14 + 0x30], rbx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_PathMakeUniqueName]
jmp 0x18005911e
mov dword [r14 + 0x28], ebx
jmp 0x18005911e
cmp ebp, 0x9cf4
je 0x1800590f5
cmp ebp, 0x138f3
je 0x1800590ca
cmp ebp, 0x1d4f2
jne 0x18005911e
mov esi, 0x3c
nop dword [rax]
mov eax, esi
sub eax, 0x3c
je 0x1800590aa
cmp eax, 1
jne 0x1800590b9
mov rax, rdi
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.180079740
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [r14]
mov rdx, r15
call qword [0x180087f88]
mov rdi, rax
inc esi
cmp esi, 0x3e
jb 0x180059070
mov qword [r14 + 0x18], rbx
mov qword [r14 + 0x20], rbx
jmp 0x18005911e
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x290]
mov edx, dword [rsp + 0x44]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
jmp 0x18005911e
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x20], rbx
lea edx, [r9 + 5]
call fcn.18006fe40
test al, al
je 0x180059135
imul eax, r12d, 0xa3
add ebp, eax
cmp ebp, r13d
ja 0x18005907c
jmp 0x180058edb
mov rax, rbx
jmp 0x18005907f
Function at 0x180064690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx ebx, byte [rsp + 0x50]
mov r15, r9
imul r13d, ecx, 0x150
mov rbp, r8
mov r14, rdx
mov r12d, ecx
mov esi, ecx
cmp ecx, r13d
ja 0x180064799
nop
cmp esi, 0x759
ja 0x18006477a
je 0x180064730
cmp esi, 0x21
je 0x180064752
cmp esi, 0x5d
je 0x180064745
cmp esi, 0xe4
jne 0x18006478a
mov edi, 0x46
nop dword [rax]
cmp edi, 0x46
je 0x180064710
cmp edi, 0x68
je 0x180064799
jmp 0x180064725
mov rdx, qword [r15]
mov r9, rbp
mov r8d, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add edi, 0x22
cmp edi, 0x8a
jb 0x180064700
cmp qword [r14 + 0x18], 0x10
mov rax, r14
jb 0x18006473d
mov rax, qword [r14]
cmp dword [rax], 0xffffffff
sete bl
jmp 0x18006478a
mov eax, dword [r15 + 0x24]
cmp dword [r14 + 0x24], eax
setb bl
jmp 0x18006478a
cmp qword [r14 + 0x10], 4
jae 0x18006478a
mov eax, ILRemoveLastID
nop
cmp eax, 0x10
je 0x18006476c
cmp eax, 0x78
je 0x180064799
jmp 0x18006476e
xor bl, bl
add eax, 0x68
cmp eax, 0xe0
jb 0x180064760
jmp 0x18006478a
cmp esi, 0xe91
je 0x180064799
cmp esi, 0x14b5
je 0x180064799
imul eax, r12d, 0x38
add esi, eax
cmp esi, r13d
jbe 0x1800646d0
mov rbp, qword [rsp + 0x60]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800647f0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
imul r14d, r8d, 0x3f0
mov rdi, r9
mov esi, r8d
mov r15, rdx
mov r12, rcx
mov ebx, r8d
cmp r8d, r14d
ja 0x18006498f
mov qword [rax + 8], rbp
mov rbp, qword [rsp + 0x60]
mov qword [rax + 0x10], r13
xor r13d, r13d
movaps xmmword [rax - 0x38], xmm6
movsd xmm6, qword [rsp + 0x60]
movaps xmmword [rax - 0x48], xmm7
movsd xmm7, qword [0x180080b40]
nop dword [rax + rax]
cmp ebx, 0x82b6
ja 0x180064934
je 0x1800648c5
mov eax, ebx
sub eax, 0x81
je 0x1800648ae
sub eax, 0x45
je 0x180064884
cmp eax, 0x5463
jne 0x180064944
mov eax, dword [rdi]
add dword [0x180088004], eax
jmp 0x180064944
mov eax, dword [rdi]
lea r9, [r15 + 0x48]
xor r8d, r8d
mov dword [rsp + 0xd0], eax
lea rdx, [rsp + 0xd0]
mov ecx, 0x123
call fcn.18004c260
mov rbp, rax
jmp 0x180064944
mov rdx, qword [rdi]
mov r9, r12
mov r8d, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180064944
test rbp, rbp
je 0x18006492d
mov qword [rsp + 0x58], r13
xor r9d, r9d
mov dword [rsp + 0x50], 0x12d
xor r8d, r8d
mov qword [rsp + 0x48], r13
xor edx, edx
mov qword [rsp + 0x40], r13
xor ecx, ecx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r13
call fcn.18004d8f0
cmp eax, 1
jne 0x18006492d
mov eax, reloc.SHELL32.dll_PathYetAnotherMakeUniqueName
nop
cmp eax, 0x4b
je 0x18006491e
cmp eax, 0x1b8a
je 0x180064955
jmp 0x180064921
movaps xmm6, xmm7
add eax, 0x1b3f
cmp eax, 0x367e
jbe 0x180064910
movsd xmm6, qword [rdi + 8]
jmp 0x180064944
cmp ebx, 0xa9d1
je 0x180064955
cmp ebx, 0x104a6
je 0x180064955
imul eax, esi, 0xa8
add ebx, eax
cmp ebx, r14d
jbe 0x180064850
mov r13, qword [rsp + 0xc8]
movq rax, xmm6
movaps xmm6, xmmword [rsp + 0x80]
mov rbp, qword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0x70]
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x60]
jmp 0x180064977
Function at 0x180071c50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea r15d, [rdx + 0x1d8]
mov r12, r9
mov rdi, r8
mov ebp, edx
mov r13, rcx
cmp edx, r15d
jae case.0x180071cc0.3
mov rsi, qword [rsp + 0x88]
lea r14d, [rdx - 0x84]
lea rdx, [0x180000000]
nop dword [rax]
cmp r14d, 0xd3
ja case.0x180071cc0.8
movzx eax, byte [rdx + r14 + 0x71ebc]
mov ecx, dword [rdx + rax*4 + 0x71e98]
add rcx, rdx
jmp rcx
cmp dword [rdi], 0
jge case.0x180071cc0.8
nop dword [rax + rax]
xor eax, eax
jmp 0x180071d32
mov rax, qword [rsp + 0x80]
mov r9, rsi
mov r8d, 1
mov rcx, r13
mov rdx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180071e61
mov eax, dword [rdi + 0x1c]
and eax, 7
lea rcx, [rax + rax*2]
cmp dword [rdx + rcx*4 + 0x7b6b4], 0
jne case.0x180071cc0.8
cmp dword [rdi + 0x38], 1
jb 0x180071cd0
mov ebx, 0x90
nop dword [rax]
mov eax, ebx
sub eax, 0x90
je 0x180071d4f
cmp eax, 1
jne 0x180071d79
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [rdi]
lea r8, [rsp + 0x68]
sub eax, dword [rdi + 0x38]
lea rdx, [rsp + 0x20]
inc eax
mov ecx, 0xdc
mov dword [rsp + 0x68], eax
mov eax, dword [rdi + 8]
mov dword [rsp + 0x20], eax
call fcn.18006cdb0
mov dword [rsp + 0x68], eax
inc ebx
cmp ebx, 0x92
jb 0x180071d20
jmp 0x180071e61
mov r8, rdi
mov rdx, r13
mov ecx, 0x8b
call fcn.180059ce0
mov byte [rsp + 0x68], al
jmp 0x180071e61
mov ecx, 0x11c
nop word [rax + rax]
mov eax, ecx
sub eax, 0x11b
je case.0x180071cc0.3
cmp eax, 1
jne 0x180071dc9
mov eax, dword [rdi + 8]
mov dword [rsp + 0x68], eax
dec ecx
cmp ecx, 0x11a
ja 0x180071db0
cmp dword [r12], 0
jne case.0x180071cc0.8
mov ebx, 0xba
mov eax, ebx
sub eax, 0xba
je 0x180071e48
sub eax, 1
je 0x180071e34
sub eax, 1
je 0x180071e13
cmp eax, 1
jne 0x180071e57
mov r8d, dword [0x180087fe4]
lea rdx, str._10lu_n
mov rcx, rsi
call fcn.180079020
jmp 0x180071e57
mov eax, dword [rdi + 4]
lea rdx, [0x180087ff8]
mov rcx, rsi
mov dword [0x180087fe4], eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
mov dword [section..data], eax
jmp 0x180071e57
mov r8d, dword [rdi]
lea rdx, str._10lu_n
mov rcx, rsi
call fcn.180079020
jmp 0x180071e57
lea rdx, [0x18007c294]
mov rcx, rsi
call fcn.180079020
inc ebx
cmp ebx, 0xbe
jb 0x180071de3
lea rdx, [0x180000000]
add ebp, 0x3b
add r14d, 0x3b
cmp ebp, r15d
jb 0x180071ca0
jmp case.0x180071cc0.3
mov ecx, dword [0x180088000]
xor eax, eax
dec ecx
cmp dword [r12], ecx
sete al
jmp 0x180071d32
Function at 0x1406a9738
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406a98bf
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 0x1406a9769
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a974f
add dl, dl
jne 0x1406a9776
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a97d6
xor eax, eax
add dl, dl
jne 0x1406a9785
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406a988d
add dl, dl
jne 0x1406a9796
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a97a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a97b0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a97bd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406a97ca
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406a975e
mov eax, 1
add dl, dl
jne 0x1406a97e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406a97f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a97db
sub eax, ebx
mov ebx, 1
jne 0x1406a982c
mov ecx, 1
add dl, dl
jne 0x1406a980e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406a981b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a9803
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a975e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406a9848
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406a9855
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406a983d
cmp eax, 0x7d00
jae 0x1406a987b
cmp eax, 0x500
jb 0x1406a9876
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a975e
cmp eax, 0x7f
ja 0x1406a987e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406a975e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406a98b2
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 0x1406a975e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002790
Capabilities:
Parse pe header

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

Function at 0x140485f8f
Capabilities:
Encode data using xor

Disassembly:
mov r9, rax
lea rsp, [rsp + 8]
jmp 0x1404713e7

Function at 0x140486601
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg dx
rol r11b, 1
not rbx
mov qword [rsp + rbx*2 + 0x4f2d326c], rbx
sub dl, byte [rsp + rbx + 0x2796993c]
dec r11b
xor bpl, r11b
bswap rbx
mov qword [rsp], r9
xor ebx, edx
push rdi
shr dl, 0x87
sets bl
push rbp
movzx ebp, bl
or rbp, r10
inc dx
mov ebx, r11d
mov edx, ebx
jne 0x140487c3d
mov rbx, qword [r8 + 8]
call fcn.140486731
mov r10d, 0xbaa2418f
rol r10, 0xe9
movzx r10w, byte [r8]
mov dl, byte [r8 + 2]
add r8, 2
not r10b
push 0xffffffffcc83c814
not dl
or r10b, dl
jmp 0x14046596c
call fcn.140461180
not dword [rsp + 4]
call fcn.1404685a6
jae 0x14046553f
mov word [rbx], r8w
jae 0x140485292
jae 0x14044327f
lea rsp, [rsp + 0x20]
jb fcn.14045d388
push 0x18015380
add r10, 4
ror dword [rsp + 2], 0xa
not ebx
jae 0x14045961d
js 0x1404455ac
mov edx, 0x1b08021a
and edx, edx
rdtsc
push 0xffffffffd787fe29
sbb r10, 8
mov dword [r10 + 4], eax
push 0x418ea9b3
mov dword [r10], edx
lea rsp, [rsp + 0x10]
jmp fcn.14047a992
Function at 0x14001a5d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
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 0x14001a660
cmp r11, r10
ja 0x14001a6d6
cmp r10, rdx
ja 0x14001a6ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a662
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a640
jmp 0x14001a6c4
ja 0x14001a66a
mov r11, r10
cmp rax, r8
jne 0x14001a604
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 0x14001a6a0
mov rdi, r8
sub ecx, edx
jns 0x14001a6bb
jmp 0x14001a6c6
cmp r8, rsi
je 0x14001a6fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a6c6
xor al, 1
cmp rdi, rsi
jne 0x14001a680
jmp 0x14001a6c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413b4620]
mov rcx, r11
mov rdx, r10
call fcn.140050c40
ud2
lea r8, [0x1413b4620]
mov rcx, r10
call fcn.1400509c0
ud2
lea rcx, [0x1413b8cb0]
lea r8, [0x1413b4608]
mov edx, 0x2b
call fcn.140050a40
ud2

Function at 0x14001fe90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017eb0
cmp rax, rcx
je 0x14001feb5
cmp rdx, 4
jae 0x14001feb8
xor eax, eax
xor r8d, r8d
jmp 0x14001ff50
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140053730]
movdqa xmm3, xmmword [0x140053540]
pxor xmm1, xmm1
nop dword [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 0x14001fee0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001ff67
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001ff50
ret
Function at 0x140020ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140020f3b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140020f3b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140020f56
cmp eax, 0x42
jne 0x140020f3b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140021006
cmp byte [r9 + r11], 0x5f
jne 0x140021006
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002106e
mov rcx, rsi
xor edx, edx
call fcn.14001c620
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001c620
test al, al
jne 0x140021101
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140020f92
lea rdx, [0x1413b85ab]
mov r8d, 1
call fcn.140018320
test al, al
jne 0x140021101
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140020f4a
xor r14d, r14d
lea rbx, [0x1413b8960]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140020fc4
cmp byte [rax + rcx], 0x45
je 0x14002112a
sub r14, 1
jb 0x140020fe9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140020fe9
mov r8d, 2
mov rdx, rbx
call fcn.140018320
test al, al
jne 0x140021101
mov rcx, rsi
call fcn.14001de80
test al, al
jne 0x140021101
mov rax, qword [rsi]
test rax, rax
jne 0x140020fb0
jmp 0x140020f4a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400210c8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140021062
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002104c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002103b
add dl, 0xa9
jmp 0x14002104a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400210c8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400210c8
movzx edx, bl
add rax, rdx
jae 0x140021010
jmp 0x1400210c8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400210c8
cmp rax, rcx
jae 0x1400210c5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140021109
cmp qword [rsi + 0x20], 0
je 0x140021123
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140020ee0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140020f4c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021118
lea rax, [0x1413b8910]
lea rdx, [0x1413b8920]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140018320
test al, al
je 0x140021118
mov dil, 2
jmp 0x140020f4a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400210d3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140020f4a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140020f4a
Function at 0x140024f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413bb348]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140024ff3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002502a
test eax, eax
js 0x140025004
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002501d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413bb3a8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023790
mov rcx, rax
call fcn.1400238d0
mov ecx, 7
int 0x29
ud2
Function at 0x14002ca40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413bb348]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002caac
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002cabb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002caf3
cmp eax, 0x103
je 0x14002cafd
test eax, eax
js 0x14002cad8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002caf3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1413bb3a8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140023790
mov rcx, rax
call fcn.1400238d0
mov ecx, 7
int 0x29
ud2

Function at 0x14002de70
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
Function at 0x14003b120
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140042510
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140042d90
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, [0x140030dd0]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003b30e
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003b1e7
cmp dword [rbp + 0xff0], 0
jne 0x14003b323
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x14003b323
cmp ebx, 0x1000
ja 0x14003b367
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14003b353
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14003b316
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003b290
cmp dword [rbp + 0xff0], 0
jne 0x14003b31c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x14003b230
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003b1e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003b323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x1413bb690]
mov rcx, r14
mov rdx, rbx
call fcn.140050c40
jmp 0x14003b37b
lea r8, [0x1413bb690]
mov edx, 0x1000
mov rcx, rbx
call fcn.1400509c0
ud2