joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098b62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ca148]
test eax, eax
je 0x140098bfa
lea rax, [0x1400ca120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ca150]
mov qword [rbp - 8], rax
jmp 0x140098bde
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140098bd2
cmp qword [rbp - 0x10], 0
je 0x140098bd2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140098b98
lea rax, [0x1400ca120]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140098bfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140098d00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140098d28
mov eax, 0
jmp 0x140098d76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140098d51
mov eax, 0
jmp 0x140098d76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140098d71
mov eax, 0
jmp 0x140098d76
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140098d7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140098dfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140098df1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140098df1
mov rax, qword [rbp - 8]
jmp 0x140098e0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140098dc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140004c10
Capabilities:
Enumerate pe sections
Parse pe header
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x14001d028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r15, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
je 0x140004d12
mov r12d, 0x5a4d
cmp word [rax], r12w
jne 0x140004d12
movsxd rdi, dword [rax + 0x3c]
add rdi, rax
cmp dword [rdi], 0x4550
jne 0x140004d12
movzx ebx, word [rdi + 0x14]
add rbx, 0x18
mov dword [rsp + 0x40], 0x104
add rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x40]
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
xor esi, esi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov r13d, 1
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140004d12
mov qword [rsp + 0x28], rsi
lea r8d, [rsi + 2]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
jne 0x140004d45
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400159d0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r9, rax
test rax, rax
je 0x140004d12
cmp word [rax], r12w
jne 0x140004e56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004e56
mov eax, dword [rdi + 8]
cmp dword [rcx + 8], eax
jne 0x140004e56
movzx edx, word [rcx + 6]
cmp dx, word [rdi + 6]
jne 0x140004e56
movzx r10d, word [rcx + 0x14]
xor dil, dil
add r10, 0x18
mov r11d, edx
add r10, rcx
test edx, edx
je 0x140004e3b
nop word [rax + rax]
mov r8, r15
mov rax, rbx
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140004de3
inc rax
test ecx, ecx
jne 0x140004dd0
test edx, edx
jne 0x140004df0
test dword [rbx + 0x24], 0x20000000
jne 0x140004e01
inc esi
add rbx, 0x28
add r10, 0x28
cmp esi, r11d
jl 0x140004dc0
jmp 0x140004e3b
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x140004e3b
mov r8d, dword [r10 + 0x14]
mov r10d, eax
mov edx, dword [rbx + 0xc]
add rdx, r14
add r8, r9
nop dword [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
cmp byte [rdx], al
lea rdx, [rdx + 1]
movzx edi, dil
cmovne edi, r13d
sub r10, r13
jne 0x140004e20
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
jmp 0x140004d14
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r13b
jmp 0x140004d14
Function at 0x140016484
Capabilities:
Parse pe header

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

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

Function at 0x1400112bc
Capabilities:
Create process on windows

Disassembly:
jmp 0x140011c60
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x1400230f5]
call fcn.1400113e8
mov dl, 7
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011316
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.https:__www.youtube.com_watch_vZJUKD8ApkT4ab_channel_D0_94_D0_B0_D1_80_D0_BA_D1_81
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
lea rcx, str.shutdown__s__t_0
call qword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400112c6
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014ba0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014bc0
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014bd3
xor al, al
jmp 0x140014c41
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 0x140014bfd
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c11
xor al, al
jmp 0x140014c41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c23
xor al, al
jmp 0x140014c41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c3f
xor al, al
jmp 0x140014c41
mov al, 1
add rsp, 0x38
ret
Function at 0x140cc3058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cc31df
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 0x140cc3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc306f
add dl, dl
jne 0x140cc3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc30f6
xor eax, eax
add dl, dl
jne 0x140cc30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc31ad
add dl, dl
jne 0x140cc30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cc30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cc307e
mov eax, 1
add dl, dl
jne 0x140cc3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc30fb
sub eax, ebx
mov ebx, 1
jne 0x140cc314c
mov ecx, 1
add dl, dl
jne 0x140cc312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cc3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc315d
cmp eax, 0x7d00
jae 0x140cc319b
cmp eax, 0x500
jb 0x140cc3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc307e
cmp eax, 0x7f
ja 0x140cc319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cc31d2
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 0x140cc307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x14000105c
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x98
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.140001db0
and dword [rsp + 0x50], 0
lea rax, str.C:WindowsSystem32_svchost.exe
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0x70
mov dword [rsp + 0x24], 0x440
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400010be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ShellExecuteEx_failed___d_._n
call fcn.140001008
mov eax, 1
jmp 0x1400010c0
xor eax, eax
add rsp, 0x98
ret

Function at 0x140004ee8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004d14
Function at 0x1400017f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007570
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007570
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140001860
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000f0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001990
mov rax, qword [0x14000f0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400018ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001933
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001890
mov rcx, r12
call fcn.1400022c0
mov rsi, rax
test rax, rax
je 0x1400019b2
mov rax, qword [0x14000f0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400023f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000f0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000192c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001940
add dword [0x14000f0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000f0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000192c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017f0
nop dword [rax]
xor ebx, ebx
jmp 0x1400018b7
mov rax, qword [0x14000f0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000f120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f100]
test rbx, rbx
je 0x140001f84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001f7b
test r12, r12
je 0x140001f7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f60
lea rcx, [0x14000f120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b880]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002335
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000232c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002318
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b880]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002360
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002360
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b880]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002418
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140009220
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb48
lea rbp, [rsp + 0x80]
lea rsi, [0x14000b040]
call fcn.1400015e0
lea rdi, [rbp - 0x60]
mov ecx, 0x23
sub rsp, 0x120
rep movsq qword [rdi], qword [rsi]
lea r14, [rsp + 0x20]
mov rbx, r14
mov eax, dword [rsi]
lea rsi, [rbp - 0x60]
mov dword [rdi], eax
movzx eax, byte [0x14000b15c]
mov byte [rdi + 4], al
mov rax, qword [rbp - 0x60]
lea rdi, [rsp + 0x28]
sub rsp, 0x120
mov qword [rsp + 0x140], rax
mov rax, qword [rbp + 0xb5]
mov qword [rsp + 0x255], rax
mov rax, r14
sub rax, rdi
sub rsi, rax
add eax, 0x11d
shr eax, 3
mov ecx, eax
xor eax, eax
rep movsq qword [rdi], qword [rsi]
mov word [rsp + 0x25d], ax
lea rcx, str.Original_data:_n
lea rdi, [r14 + 0x120]
mov byte [rsp + 0x25f], 0
lea r13, [rsp + 0x20]
sub rsp, 0x120
lea rsi, str._02x
lea r12, [rsp + 0x20]
call fcn.140007cf0
nop
movzx edx, byte [rbx]
mov rcx, rsi
add rbx, 1
call fcn.140007cf0
cmp rbx, rdi
jne 0x1400092f0
lea rcx, [0x14000b016]
lea r15, [rbp + 0xc0]
mov rbx, r13
call fcn.140007cf0
mov r8, r13
mov rdx, r14
mov rcx, r15
mov r9d, 0x120
lea rdi, [r13 + 0x120]
lea rsi, str._02x
call fcn.140007ca0
lea rcx, str.Encrypted_data:_n
call fcn.140007cf0
nop dword [rax + rax]
movzx edx, byte [rbx]
mov rcx, rsi
add rbx, 1
call fcn.140007cf0
cmp rbx, rdi
jne 0x140009350
lea rcx, [0x14000b016]
mov rbx, r12
lea rdi, [r12 + 0x120]
call fcn.140007cf0
mov r8, r12
mov rdx, r13
mov rcx, r15
mov r9d, 0x120
lea rsi, str._02x
call fcn.140007c60
lea rcx, str.Decrypted_data:_n
call fcn.140007cf0
nop word [rax + rax]
movzx edx, byte [rbx]
mov rcx, rsi
add rbx, 1
call fcn.140007cf0
cmp rbx, rdi
jne 0x1400093a8
lea rcx, [0x14000b016]
call fcn.140007cf0
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
mov edx, 0x120
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, r12
mov r8d, 0x120
mov rcx, rax
mov r13, rax
call sub.msvcrt.dll_memmove
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, r13
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
xor eax, eax
lea rsp, [rbp + 0xac8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140001564
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1080
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000161d
mov ecx, eax
call fcn.140005264
xor esi, esi
test al, al
je 0x14000161d
mov ecx, ebx
call fcn.140005274
test al, al
jne 0x14000161d
mov r8d, 0x800
lea rcx, [rsp + 0x60]
mov rdx, rdi
call fcn.140008cbc
lea rcx, [rsp + 0x60]
call fcn.140017978
lea rax, [rax*2 + 2]
cmp rax, 0x1002
jae 0x140001642
xor edx, edx
mov word [rsp + rax + 0x60], si
lea r8d, [rsi + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000d8e0
lea eax, [rsi + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.14000ca30
lea r11, [rsp + 0x1080]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14000c724
int3

Function at 0x14000169c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov eax, r8d
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x104
jb 0x1400016dc
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
mov edx, eax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1400016dc
mov bl, 1
jmp 0x1400016ee
mov r8, rdi
lea rdx, str.unknown_folder
mov rcx, rsi
call fcn.140008cbc
mov rsi, qword [rsp + 0x48]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001a78
Capabilities:
Enumerate pe sections
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdi, [0x140029a08]
mov rbx, rcx
mov rdx, rdi
lea rcx, str.Setup.rar
call fcn.14000a834
movzx r8d, byte [rbx + 1]
lea rcx, str.Setup.zip
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 2]
lea rcx, str.Setup.cab
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 3]
lea rcx, str.Setup.arj
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 4]
lea rcx, str.Setup.lz
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 5]
lea rcx, str.Setup.lzh
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 6]
lea rcx, str.Setup.7z
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 7]
lea rcx, str.Setup.tar
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 8]
lea rcx, str.Setup.gz
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 9]
lea rcx, str.Setup.uue
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0xa]
lea rcx, str.Setup.bz2
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0xb]
lea rcx, str.Setup.jar
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0xc]
lea rcx, str.Setup.iso
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0xd]
lea rcx, str.Setup.z
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0xe]
lea rcx, str.Setup.xz
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0xf]
lea rcx, str.Setup.zipx
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0x10]
lea rcx, str.Setup.zst
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0x11]
lea rcx, str.Setup.001
mov rdx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0x14]
lea rdi, str.SetupLinks
mov rcx, rdi
lea rdx, str.Desktop
call fcn.14000a834
movzx r8d, byte [rbx + 0x15]
lea rdx, str.StartMenu
mov rcx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0x16]
lea rdx, str.Programs
mov rcx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0x17]
lea rdi, str.Setup
mov rcx, rdi
lea rdx, str.ShellExt
call fcn.14000a834
movzx r8d, byte [rbx + 0x18]
lea rdx, str.CascadedMenu
mov rcx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0x19]
lea rdx, str.MenuIcons
mov rcx, rdi
call fcn.14000a834
movzx r8d, byte [rbx + 0x1a]
lea rdx, str.LegacyMenu
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000a834
Function at 0x1400029f0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rbp + 0xf90], rax
movzx ebx, cl
call fcn.14000a69c
test al, al
je 0x140002b19
mov r8d, 0x800
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x800
lea rdx, str.RarExtPackage.msix
lea rcx, [rbp - 0x70]
call fcn.140006a6c
lea rcx, [rbp - 0x70]
call fcn.14000513c
test al, al
je 0x140002b19
mov r8d, 0x800
lea rdx, str.RarExtInstaller.exe
lea rcx, [rbp - 0x70]
call fcn.140006a6c
lea rcx, [rbp - 0x70]
call fcn.14000513c
test al, al
je 0x140002b19
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.14000d8e0
mov dword [rsp + 0x20], 0x70
test bl, bl
jne 0x140002aad
or dword [rsp + 0x24], 0x40
lea rax, [rbp - 0x70]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x38], rax
lea rcx, str._install
test bl, bl
lea rax, str._Uninstall
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140002b03
test bl, bl
jne 0x140002b03
mov rcx, qword [rbp - 0x78]
mov edx, 0x4e20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
lea rdx, str.NewContextMenu
lea rcx, str.Setup
call fcn.14000a834
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x10a0
pop rbp
ret