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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rbp, [rcx + 0x60]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp r8, 0x40
jbe 0x140019048
call fcn.14000c820
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14000c848
mov rdx, rbp
mov rcx, rbx
call fcn.1400193c4
mov edi, 0x14
jmp 0x140019050
mov rcx, rbp
call fcn.140026dd0
xor eax, eax
mov qword [rbx + 0xa0], rdi
lea edx, [rax + 0x36]
test rdi, rdi
je 0x140019077
mov ecx, eax
xor byte [rcx + rbx + 0x60], dl
inc eax
mov rdi, qword [rbx + 0xa0]
mov ecx, eax
cmp rcx, rdi
jb 0x140019063
mov r8d, 0x40
lea rcx, [rbx + 0x60]
sub r8, rdi
add rcx, rdi
call fcn.140027480
mov rcx, rbx
call fcn.14000c820
mov r8d, 0x40
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14000c848
Function at 0x140019d70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rbx, rcx
mov rax, qword [rax + 0x20]
call qword [0x14003b4b0]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14003b4b0]
cmp eax, 0x40
jne 0x140019e66
cmp byte [rsp + 0x20], 0x4d
jne 0x140019e66
cmp byte [rsp + 0x21], 0x5a
jne 0x140019e66
mov rax, qword [rbx]
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14003b4b0]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x108
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14003b4b0]
cmp eax, 0x108
jne 0x140019e66
cmp byte [rsp + 0x20], 0x50
jne 0x140019e66
cmp byte [rsp + 0x21], 0x45
jne 0x140019e66
cmp byte [rsp + 0x22], 0
jne 0x140019e66
cmp byte [rsp + 0x23], 0
jne 0x140019e66
cmp byte [rsp + 0x38], 0xb
jne 0x140019e66
cmp byte [rsp + 0x39], 1
jne 0x140019e4d
cmp dword [rbp - 0x6c], 4
jbe 0x140019e4d
mov eax, dword [rbp - 0x48]
jmp 0x140019e68
cmp byte [rsp + 0x38], 0xb
jne 0x140019e66
cmp byte [rsp + 0x39], 2
jne 0x140019e66
cmp dword [rbp - 0x5c], 4
jbe 0x140019e66
mov eax, dword [rbp - 0x38]
jmp 0x140019e68
xor eax, eax
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140025bf0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rbp
ret
Function at 0x14001a964
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov r8, rdx
mov rdi, rcx
and qword [rbp - 0x38], 0
and qword [rbp - 0x40], 0
mov rax, qword [rdx]
lea rdx, [rbp - 0x38]
mov rcx, r8
mov rax, qword [rax + 0x90]
call qword [0x14003b4b0]
mov ebx, eax
test eax, eax
js 0x14001aa29
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14001aa36
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
lea rdx, [0x14003d9b0]
mov rax, qword [rax]
call qword [0x14003b4b0]
mov ebx, eax
test eax, eax
js 0x14001aa18
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14003b4b0]
mov ebx, eax
test eax, eax
js 0x14001aa07
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rdx, rsi
mov rax, qword [rax + 0x28]
call qword [0x14003b4b0]
mov ebx, eax
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003b4b0]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003b4b0]
test ebx, ebx
js 0x14001aa36
mov rcx, qword [rbp - 0x38]
test rcx, rcx
jne 0x14001aaa6
cmp qword [rdi + 0x10], 0
je 0x14001aaa6
cmp qword [rdi + 0x48], 0
jne 0x14001aaa6
mov r8, qword [rdi + 0x40]
test r8, r8
je 0x14001aaa6
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14001b4f0
nop
mov dword [rsp + 0x30], 0x204
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 5
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rbp - 0x30]
mov rcx, qword [rdi + 0x10]
call fcn.140002120
nop
lea rcx, [rbp - 0x30]
call fcn.140001b70
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140025bf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14003ca78]
mov rcx, qword [0x14006a550]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14001c39e
mov rcx, qword [0x14006a550]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x14001c39e
mov rcx, qword [0x14006a550]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001c39e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001c39e
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 0x14001c397
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001c38e
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.140026dd0
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 0x14001c385
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x14001c332
and qword [rsp + 0x50], 0
lea rax, [0x14003ca48]
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 0x14001c334
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003b4b0]
test rbx, rbx
je 0x14001c385
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x14001c371
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x14001c371
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x14003b4b0]
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 0x14001c3a0
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001d8c8
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001da5e
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
and dword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea r14d, [r9 + 1]
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14001d94f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001da5e
mov ecx, dword [rsp + 0x30]
call fcn.14002d5e4
mov r9d, dword [rsp + 0x30]
mov rdi, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14001d98c
mov rcx, rdi
call fcn.14002d5dc
jmp 0x14001da5e
mov r8, qword [rdi]
lea rdx, [rbp - 0x40]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rcx, rdi
call fcn.14002d5dc
and qword [rbp - 0x80], 0
lea rax, [rbp - 0x40]
and dword [rsp + 0x7c], 0
lea r9, [rsp + 0x38]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x60]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor r8d, r8d
mov dword [rsp + 0x60], 0x11060000
mov ecx, r14d
mov dword [rsp + 0x64], r14d
movdqu xmmword [rsp + 0x6c], xmm0
mov dword [rsp + 0x68], 3
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x14001da5e
mov edx, r14d
lea rcx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x14001da4e
mov r8, qword [rsp + 0x38]
lea rcx, [rbp - 0x70]
xor r9d, r9d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x14001da4e
and dword [rsp + 0x58], 0
lea rax, [rbp - 0x70]
cmp qword [rbx + 0x18], 8
mov dword [rsp + 0x48], 0x18
mov qword [rsp + 0x50], rax
jb 0x14001da40
mov rbx, qword [rbx]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001da5e
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140025bf0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001da84
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor r14d, r14d
mov ebx, r14d
mov dword [rbp - 0x19], ebx
lea rsi, [0x14006a438]
cmp qword [0x14006a448], r14
je 0x14001db3d
mov rbx, qword [str.RarSFX]
mov qword [rbp - 0x11], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov rcx, rbx
call fcn.14002aecc
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400012bc
nop
mov dword [rbp - 0x19], 1
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.140008b28
nop
lea ebx, [r14 + 3]
mov dword [rbp - 0x19], ebx
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
cmp qword [rax + 0x18], 8
jb 0x14001db28
mov rax, qword [rax]
mov r8d, 6
mov rcx, rax
call fcn.140010a8c
test eax, eax
mov dil, 1
je 0x14001db40
mov dil, r14b
test bl, 2
je 0x14001db52
and ebx, 0xfffffffd
lea rcx, [rbp + 0xf]
call fcn.140001b70
nop
test bl, 1
je 0x14001db97
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14001db97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001db92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001dcc2
call fcn.140025adc
test dil, dil
je 0x14001dc93
lea rcx, [0x14006a410]
call fcn.140008cf8
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
cmp qword [0x14006a450], 8
cmovae rsi, qword [0x14006a438]
mov r8, qword [0x14006a448]
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.140002314
nop
mov rcx, qword [rbp - 1]
cmp rcx, qword [rbp + 7]
jae 0x14001dc02
lea rax, [rcx + 1]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
mov dword [rax + rcx*2], r14d
jmp 0x14001dc15
xor r9d, r9d
mov r8b, r14b
lea edx, [r9 + 1]
lea rcx, [rbp - 0x11]
call fcn.140001734
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x17], 3
mov eax, 0x14
mov word [rbp + 0x2f], ax
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rax, qword [rbp - 0x11]
mov qword [rbp + 0x1f], rax
lea rcx, [rbp + 0xf]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14001dc93
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001dc8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001dcbc
call fcn.140025adc
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140025bf0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14002ae54
int3
call fcn.14002ae54
int3
Function at 0x14001de04
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebp, ebp
mov rdi, r8
cmp qword [0x14004dd78], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x14001de77
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rsp + 0xa0]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x14006a518], ax
lea rax, [0x14006a518]
mov qword [0x14004dd78], rax
mov word [0x14006a51a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000d62c
lea r9, [0x14004dd60]
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]
mov word [rbx + rdi*2 - 2], bp
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140025bf0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001e344
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r14, r9
mov rbx, r8
xor r15d, r15d
mov sil, r15b
cmp qword [rdx + 0x18], 8
jb 0x14001e375
mov rdx, qword [rdx]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rbp + 0x40]
test eax, eax
jne 0x14001e4d4
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001e3a6
mov rdx, qword [rbx]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e4c5
mov eax, dword [rbp - 0x30]
shr rax, 1
mov rcx, qword [rdi + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r15
cmp rcx, rax
cmovbe rcx, rax
inc rcx
mov edx, 0x10000
cmp rcx, rdx
cmovb rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.1400013c4
nop
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
sar rax, 1
add eax, eax
mov dword [rbp - 0x2c], eax
cmp qword [rbx + 0x18], 8
jb 0x14001e41f
mov rbx, qword [rbx]
lea rax, [rbp - 0x2c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x28]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e489
mov word [rbp + 0x28], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 8]
je 0x14001e45f
mov word [rdx], r15w
add qword [rbp - 0x10], 2
jmp 0x14001e46c
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.14001d3bc
mov rbx, qword [rbp - 0x18]
mov rcx, rbx
call fcn.14002aecc
mov r8, rax
mov rdx, rbx
mov rcx, r14
call fcn.140001c80
mov sil, 1
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14001e4c5
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e4c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e50f
call fcn.140025adc
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test sil, sil
jne 0x14001e4f2
cmp r14, rdi
je 0x14001e4f2
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001e4e6
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, r14
call fcn.140001c80
mov al, sil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14002ae54
int3
Function at 0x14001e664
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
lea rbx, [rsp + 0x30]
lea rax, str.unknown_folder
test edi, edi
cmovne rbx, rax
mov rcx, rbx
call fcn.14002aecc
mov r8, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140001c80
test edi, edi
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140025bf0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140023414
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x14006a54c], 0
mov edx, 1
mov rbx, rcx
mov byte [0x14006a541], 1
mov byte [0x14006a542], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.140001e98
cmp qword [0x14004dcf0], 0
jne 0x14002345f
cmp byte [0x14006a54b], 0
je 0x140023468
cmp dword [0x14006a544], 0
jne 0x14002347d
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 0x140023544
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
cmp byte [0x14006a460], dil
je 0x140023676
cmp qword [0x14006a478], rdi
je 0x140023676
mov qword [rbp + 0x27], rdi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], di
lea rdx, [rbp + 0x27]
lea rcx, [0x14006a468]
call fcn.140020908
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002363a
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400235fb
mov rcx, qword [rbx]
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rdx, qword [rbp + 0x27]
mov eax, dword [rbx + 0x10]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x140023676
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023671
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023697
call fcn.140025adc
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140025bf0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14002ae54
int3
Function at 0x1400237d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14004de28]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140023800
mov rdx, qword [rcx]
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edi, edi
mov qword [rbp - 0x28], rdi
movdqa xmm0, xmmword [0x14003b930]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], di
mov qword [rbp - 0x30], rdi
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14000cf94
test al, al
je 0x140023887
mov rax, qword [rbp - 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002384d
mov rcx, qword [rbx]
movzx ecx, word [rcx + rax*2]
call fcn.14000d374
test al, al
je 0x140023867
mov rax, qword [rbp - 0x30]
inc rax
mov qword [rbp - 0x30], rax
jmp 0x140023840
cmp qword [rbx + 0x18], 8
jb 0x140023871
mov rbx, qword [rbx]
mov rax, qword [rbp - 0x30]
lea rdx, [rbx + rax*2]
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400238c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400238be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400238df
call fcn.140025adc
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140025bf0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.14002ae54
int3
Function at 0x14002518c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140025204
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140025204
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140025204
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400251f8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140025216
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400251e6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140025206

Function at 0x140026a90
Capabilities:
Parse pe header

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

Function at 0x14002f534
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002f298

Function at 0x140039480
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400394a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400394a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
movsxd rbp, edx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rcx, str.COM1
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800010ba
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCommMask]
test eax, eax
je 0x1800010ba
lea edx, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov rcx, rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x54], ebx
call qword [sym.imp.KERNEL32.dll_WaitCommEvent]
test eax, eax
je 0x1800010b4
test byte [rsp + 0x78], 8
je 0x1800010ba
mov dword [0x18001685c], 1
jmp 0x1800010ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebp, ebp
jle 0x1800010d5
nop
movzx eax, byte [rbx + rdi]
inc rbx
xor al, 0x6f
rol al, 2
cmp rbx, rbp
mov byte [rbx + rdi - 1], al
jl 0x1800010c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800010f0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
mov edx, 0x5c
call fcn.180002620
mov r8, rax
test rax, rax
je 0x180001157
or rcx, 0xffffffffffffffff
xor eax, eax
inc r8
mov qword [rsp + 0x40], rdi
mov rdi, r8
xor edx, edx
repne scasb al, byte [rdi]
lea rax, [0x180016860]
mov dword [rsp + 0x28], 0x104
not rcx
mov qword [rsp + 0x20], rax
mov r9d, ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov r9, rbx
mov r8, rsi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.180002c2c
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret