joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b4d8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140054a78], 0
je 0x14000b4f3
or eax, 0xffffffff
jmp 0x14000b5f8
mov rax, qword [0x140044928]
test rax, rax
jg 0x14000b513
dec rax
mov qword [0x140044928], rax
and qword [0x140054988], 0
jmp 0x14000b4eb
mov rbx, qword [0x140054988]
test rbx, rbx
jg 0x14000b567
mov rcx, qword [0x140054978]
mov ebx, 0x2000
mov edx, ebx
call fcn.14000b774
movsxd rcx, eax
mov qword [0x140054988], rcx
test eax, eax
je 0x14000b509
cmp rcx, 0xffffffffffffffff
je 0x14000b59a
mov rax, qword [0x140054978]
add qword [0x1400549c8], rbx
mov qword [0x140054980], rax
call fcn.14000af64
mov rbx, qword [0x140054988]
mov rax, qword [0x140044960]
test byte [rax + 0x40], 1
je 0x14000b5dd
cmp byte [0x140055c71], 0
je 0x14000b5b2
test rbx, rbx
je 0x14000b5dd
mov rdx, qword [0x140054980]
lea rcx, [0x140055c78]
mov r8, rbx
call fcn.14000e6b8
jmp 0x14000b5d6
lea rdx, [0x1400643e2]
lea rcx, [0x140059fd0]
call fcn.140001b4c
jmp 0x14000b509
mov rdi, qword [0x140054980]
test rbx, rbx
je 0x14000b5dd
call fcn.14000e430
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.14000e57c
inc rdi
sub rbx, 1
jne 0x14000b5be
mov rbx, qword [0x140054988]
mov rax, qword [0x140054980]
dec rbx
mov qword [0x140054988], rbx
movzx eax, byte [rax]
inc qword [0x140054980]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000e49c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
call fcn.14000e450
mov r8d, 0xc
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140017920
xor ebx, ebx
mov ecx, dword [0x140055ad8]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + rbx + 0x20], al
movzx ecx, byte [rsp + rbx + 0x20]
call fcn.14000e57c
inc rbx
cmp rbx, 0xc
jl 0x14000e4c6
mov rax, qword [0x140044960]
movzx ecx, byte [0x1400549f7]
test byte [rax + 0x40], 2
movzx eax, byte [0x1400549ef]
cmovne ecx, eax
movzx eax, byte [rsp + 0x2b]
cmp eax, ecx
je 0x14000e521
or eax, 0xffffffff
jmp 0x14000e571
mov rbx, qword [0x140054988]
mov rax, qword [0x140044928]
mov rdi, qword [0x140054980]
movsxd rcx, ebx
cmp rcx, rax
cmovg ebx, eax
test ebx, ebx
je 0x14000e56f
mov ecx, dword [0x140055ad8]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.14000e57c
inc rdi
sub ebx, 1
jne 0x14000e543
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e57c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov rdx, qword [0x140055ad0]
lea r9, [0x140044500]
mov eax, ecx
mov r8d, ecx
xor rdx, rax
movzx eax, dl
mov edx, dword [0x140055ad0]
shr edx, 8
xor edx, dword [r9 + rax*4]
movzx eax, dl
add eax, dword [0x140055ad4]
imul eax, eax, 0x8088405
mov dword [0x140055ad0], edx
inc eax
mov dword [0x140055ad4], eax
shr rax, 0x18
xor rax, qword [0x140055ad8]
movzx ecx, al
mov eax, dword [0x140055ad8]
shr eax, 8
xor eax, dword [r9 + rcx*4]
mov dword [0x140055ad8], eax
mov eax, r8d
ret
Function at 0x14000e844
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r12, rdx
mov rsi, r9
lea rdx, [rax - 0x30]
mov r15, r8
mov rdi, rcx
call fcn.140006fc0
xor ebx, ebx
lea r10, [rsp + 0x38]
mov r9d, ebx
mov r11d, ebx
lea r14d, [r9*4]
mov r8d, ebx
mov edx, dword [r10]
lea eax, [r14 + r11]
mov ecx, 0x18
inc r11d
sub ecx, r8d
add r8d, 8
shr edx, cl
mov byte [rsp + rax + 0x20], dl
cmp r8d, 0x20
jb 0x14000e88e
inc r9d
add r10, 4
cmp r9d, 5
jb 0x14000e880
mov r14, qword [rsp + 0x90]
test rsi, rsi
je 0x14000e8ff
cmp byte [r14], bl
je 0x14000e8ff
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [rdi + 0x30], xmm1
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [rdi + 0x40], xmm0
movups xmm1, xmmword [rsi + 0x50]
movups xmmword [rdi + 0x50], xmm1
jmp 0x14000e933
lea rax, [rdi + 0x60]
mov ecx, 0x40
xor byte [rax], 0x6a
inc rax
sub rcx, 1
jne 0x14000e908
mov rcx, rdi
call fcn.1400070d0
mov r8d, 0x40
lea rdx, [rdi + 0x60]
mov rcx, rdi
call fcn.1400070f8
test rsi, rsi
je 0x14000e96a
cmp byte [r14], bl
jne 0x14000e96a
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rsi + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rsi + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rsi + 0x50], xmm1
mov byte [r14], 1
mov r8d, 0x14
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400070f8
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140006fc0
mov r8d, ebx
lea r9, [rsp + 0x38]
mov r11d, ebx
lea edi, [r8*4]
mov r10d, ebx
mov edx, dword [r9]
lea eax, [rdi + r11]
mov ecx, 0x18
inc r11d
sub ecx, r10d
add r10d, 8
shr edx, cl
mov byte [rsp + rax + 0x20], dl
cmp r10d, 0x20
jb 0x14000e9a0
inc r8d
add r9, 4
cmp r8d, 5
jb 0x14000e992
test r15, r15
je 0x14000e9e8
mov rcx, rbx
mov al, byte [rsp + rcx + 0x20]
inc ebx
mov byte [rcx + r12], al
mov ecx, ebx
cmp rcx, r15
jb 0x14000e9d7
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14000ea08
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
xor esi, esi
mov rdi, r8
mov r14, rdx
mov rbx, rcx
cmp r8, 0x40
jbe 0x14000eaa2
call fcn.1400070d0
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.1400070f8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006fc0
mov r8d, esi
lea r9, [rsp + 0x20]
mov r11d, esi
lea edi, [r8*4]
mov r10d, esi
mov edx, dword [r9]
lea eax, [rdi + r11]
mov ecx, 0x18
inc r11d
sub ecx, r10d
add r10d, 8
shr edx, cl
mov byte [rax + rbx + 0x60], dl
cmp r10d, 0x20
jb 0x14000ea68
inc r8d
add r9, 4
cmp r8d, 5
jb 0x14000ea5a
mov edi, 0x14
lea rbp, [rbx + 0x60]
jmp 0x14000eaae
lea rbp, [rcx + 0x60]
mov rcx, rbp
call fcn.140017920
mov qword [rbx + 0xa0], rdi
mov edx, 0x36
test rdi, rdi
je 0x14000ead6
mov rax, rsi
xor byte [rax + rbx + 0x60], dl
inc esi
mov rdi, qword [rbx + 0xa0]
mov eax, esi
cmp rax, rdi
jb 0x14000eac2
mov r8d, 0x40
lea rcx, [rbx + 0x60]
sub r8, rdi
add rcx, rdi
call fcn.140016e70
mov rcx, rbx
call fcn.1400070d0
mov r8d, 0x40
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
jmp fcn.1400070f8
Function at 0x14000efcc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rbx, rcx
mov rax, qword [rax + 0x20]
call qword [0x14002b478]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002b478]
cmp eax, 0x40
jne 0x14000f0b4
cmp byte [rsp + 0x20], 0x4d
jne 0x14000f0b4
cmp byte [rsp + 0x21], 0x5a
jne 0x14000f0b4
mov rax, qword [rbx]
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14002b478]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x108
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002b478]
cmp eax, 0x108
jne 0x14000f0b4
cmp byte [rsp + 0x20], 0x50
jne 0x14000f0b4
cmp byte [rsp + 0x21], 0x45
jne 0x14000f0b4
cmp byte [rsp + 0x22], 0
jne 0x14000f0b4
cmp byte [rsp + 0x23], 0
jne 0x14000f0b4
cmp byte [rsp + 0x38], 0xb
jne 0x14000f0b4
cmp byte [rsp + 0x39], 1
jne 0x14000f09b
cmp dword [rbp - 0x6c], 4
jbe 0x14000f09b
mov eax, dword [rbp - 0x48]
jmp 0x14000f0b6
cmp byte [rsp + 0x38], 0xb
jne 0x14000f0b4
cmp byte [rsp + 0x39], 2
jne 0x14000f0b4
cmp dword [rbp - 0x5c], 4
jbe 0x14000f0b4
mov eax, dword [rbp - 0x38]
jmp 0x14000f0b6
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rbp
ret
Function at 0x14000fa54
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
mov r9, rdx
and qword [r11 + 0x20], 0
lea rdx, [r11 + 0x20]
and qword [r11 + 0x10], 0
mov rdi, rcx
mov rcx, r9
mov rsi, r8
mov rax, qword [rax + 0x90]
call qword [0x14002b478]
mov ebx, eax
test eax, eax
js 0x14000fb0f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000fb1d
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x14002d790]
mov rax, qword [rax]
call qword [0x14002b478]
mov ebx, eax
test eax, eax
js 0x14000fafd
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14002b478]
mov ebx, eax
test eax, eax
js 0x14000faeb
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14002b478]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002b478]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002b478]
test ebx, ebx
js 0x14000fb1d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x14000fb8e
cmp qword [rdi + 0x10], 0
je 0x14000fb8e
cmp qword [rdi + 0x40], 0
jne 0x14000fb8e
mov rdx, qword [rdi + 0x38]
test rdx, rdx
je 0x14000fb8e
mov rcx, rdi
call fcn.1400102b0
mov rsi, rax
test rax, rax
je 0x14000fb8e
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 0x204
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x10]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rsi
call fcn.14001ab64
mov rsi, qword [rsp + 0x60]
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140010d6c
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140010e1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14002c8f0]
mov rcx, qword [0x140055e80]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140010f9a
mov rcx, qword [0x140055e80]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140010f9a
mov rcx, qword [0x140055e80]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140010f9a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140010f9a
and qword [rsp + 0x58], 0
mov edx, edi
mov ecx, 2
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140010f93
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140010f8a
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.140017920
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x140010f81
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x140010f2e
and qword [rsp + 0x50], 0
lea rax, [0x14002c8c0]
lea rdx, [rsp + 0x50]
mov qword [rbx], rax
mov rcx, rsi
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
jmp 0x140010f30
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002b478]
test rbx, rbx
je 0x140010f81
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x140010f6d
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x140010f6d
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x14002b478]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x58]
jmp 0x140010f9c
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001140c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140011524
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1070
call fcn.140015fe0
sub rsp, rax
xor ebx, ebx
cmp word [0x140056ec2], bx
je 0x1400115cc
lea rcx, [0x140056ec2]
call fcn.140003fb4
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140008dd4
test eax, eax
jne 0x1400115cc
lea rcx, [0x140055ec0]
call fcn.14001140c
mov r8d, 0x800
lea rdx, [0x140056ec2]
lea rcx, [rsp + 0x60]
call fcn.140007728
lea rcx, [rsp + 0x60]
call fcn.14001ab48
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.140016e70
lea eax, [rbx + 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]
add rsp, 0x1070
pop rbx
ret
Function at 0x140011634
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x14003a7d0], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x14001169c
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x14006da08], ax
lea rax, [0x14006da08]
mov qword [0x14003a7d0], rax
mov word [0x14006da0a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000758c
lea r9, [0x14003a7b8]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400117f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.140015fe0
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x140057ec8], sil
mov rbx, rcx
je 0x1400118df
mov r8d, 0x800
lea rdx, [rbp + 0xf40]
call fcn.140013124
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400118df
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400118d4
mov eax, dword [rbp + 0x1f70]
lea rdx, [rsp + 0x40]
shr eax, 1
mov r8, rdi
mov ecx, eax
mov dword [rbp + 0x1f70], eax
mov eax, 0x7ff
cmp ecx, eax
cmovb eax, ecx
mov rcx, rbx
mov word [rsp + rax*2 + 0x40], si
call fcn.140007728
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400119d8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
mov eax, 0x2020
call fcn.140015fe0
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x140011a0b
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x140011a1b
mov byte [rcx], r14b
test rbx, rbx
je 0x140011ad0
movzx eax, word [rbx]
test ax, ax
je 0x140011ad0
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x140011a60
test rsi, rsi
je 0x140011a6c
test rdi, rdi
jne 0x140011a6c
test r9, r9
je 0x140011a5b
mov byte [r9], 1
mov rdi, rdx
jmp 0x140011a7b
cmp ax, 0xd
je 0x140011a8d
cmp ax, 0xa
je 0x140011a91
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x140011a88
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x140011a3e
jmp 0x140011a91
mov byte [rcx], 1
jmp 0x140011a91
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x140011acb
mov word [rsi], r14w
test rdi, rdi
je 0x140011acb
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140007728
mov word [rdi], r14w
mov rax, rbx
jmp 0x140011ad2
xor eax, eax
lea r11, [rsp + 0x2020]
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 0x140011af0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x140011b5c
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14002b478]
jmp 0x140011b5f
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400147a4
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140055e70], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140055e75], 1
mov byte [0x140055e76], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400011f4
cmp qword [0x14006d9f0], 0
jne 0x1400147ef
cmp byte [0x140055e9f], 0
je 0x1400147f8
cmp dword [0x140055e98], 0
jne 0x14001480d
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400148b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140015fe0
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x140057ec8], dil
je 0x140014982
cmp word [0x140057eca], di
je 0x140014982
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x140057eca]
call fcn.140013124
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140014982
mov rcx, rbx
call fcn.14001ab48
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x140014994
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.140015fe0
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007404
mov rbx, rax
test rax, rax
je 0x1400149f6
movzx ecx, word [rax]
jmp 0x1400149dd
add rbx, 2
movzx ecx, word [rbx]
call fcn.14000752c
test al, al
jne 0x1400149d6
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x140016a7c
Capabilities:
Parse pe header

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

Function at 0x14001f230
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001ef94
Function at 0x140003a60
Capabilities:
Encrypt data using rc4 prga

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, 0x60
xor r12d, r12d
lea r15, [0x140101e30]
mov esi, r12d
lea r14, [0x140100b00]
lea r13, [0x140101e50]
cmp byte [r15], r12b
je 0x140003b30
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WSOCK32.dll_gethostbyname
mov ecx, esi
mov dword [rsp + 0x24], 0x80
call qword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x140003b30
mov eax, dword [rsp + 0x40]
mov ebp, dword [r14]
xor ebp, eax
mov dword [r14], eax
and ebp, eax
je 0x140003b30
mov rdx, qword [0x1400fee48]
mov ebx, r12d
cmp r12w, word [rdx]
jae 0x140003b30
mov rdi, r13
mov rax, qword [rdi]
cmp byte [rax + 0x1c], 4
jne 0x140003b23
movzx ecx, byte [rax + 0x1a]
cmp ecx, esi
jne 0x140003b23
movzx ecx, word [rax + 0x10]
sub ecx, 0xc
movzx eax, cl
bt ebp, eax
jae 0x140003b23
mov rcx, qword [0x140100f00]
xor r9d, r9d
movsxd r8, ebx
mov edx, 0x312
call qword [sym.imp.USER32.dll_PostMessageW]
mov rdx, qword [0x1400fee48]
movzx eax, word [rdx]
inc ebx
add rdi, 8
cmp ebx, eax
jl 0x140003ae4
inc esi
inc r15
add r14, 4
cmp esi, 0x10
jl 0x140003a97
lea r11, [rsp + 0x60]
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