joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007098
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, 0x20
mov r10, qword [0x140048420]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test r10, r10
jne 0x140007137
cmp byte [0x140048418], bl
jne 0x140007137
lea rcx, str.Crypt32.dll
call fcn.140008438
mov qword [0x140048410], rax
test rax, rax
je 0x140007120
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140048410]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140048420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140048428], rax
jmp 0x140007127
mov rax, qword [0x140048428]
mov r10, qword [0x140048420]
mov byte [0x140048418], 1
jmp 0x14000713e
mov rax, qword [0x140048428]
mov rcx, rdi
mov r8d, ebp
and rcx, 0xfffffffffffffff0
test r14b, r14b
je 0x140007191
test r10, r10
je 0x1400071ae
mov edx, ecx
mov rax, r10
mov rcx, rsi
call qword [0x14002e480]
test eax, eax
jne 0x1400071c9
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140065260]
mov rcx, rbx
call fcn.140001b88
mov rcx, rbx
call fcn.140001e30
mov edx, 2
mov rcx, rbx
call fcn.140001b80
jmp 0x1400071c9
test rax, rax
je 0x1400071ae
mov edx, ecx
mov rcx, rsi
call qword [0x14002e480]
test eax, eax
jne 0x1400071c9
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14000716b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x1400071c9
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x1400071b9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140007a80
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x18]
mov ebp, 0x38
mov r14, qword [rcx + 0x18]
and edi, 0x3f
shl r14, 3
mov rsi, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x20], 0x80
inc edi
cmp edi, ebp
je 0x140007b0e
jbe 0x140007af9
lea edx, [rbp + 8]
cmp edi, edx
jae 0x140007ae3
sub edx, edi
mov ecx, edi
add rcx, 0x20
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.14001a940
xor edi, edi
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007288
sub ebp, edi
mov ecx, edi
add rcx, 0x20
mov r8d, ebp
add rcx, rbx
xor edx, edx
call fcn.14001a940
mov rcx, r14
shr rcx, 0x20
call fcn.140021a44
mov ecx, r14d
mov dword [rbx + 0x58], eax
call fcn.140021a44
lea r8, [rbx + 0x20]
mov dword [rbx + 0x5c], eax
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007288
mov rdx, rbx
mov ecx, 5
sub rdx, rsi
mov eax, dword [rdx + rsi]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub rcx, 1
jne 0x140007b47
and qword [rbx + 0x18], rcx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400198e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140007ba0
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret

Function at 0x140008438
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1030
call fcn.140019920
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140008474
xor eax, eax
jmp 0x140008497
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000475c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400198e0
add rsp, 0x1030
pop rbx
ret
Function at 0x14000da28
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140058ac8], 0
je 0x14000da43
or eax, 0xffffffff
jmp 0x14000db4b
mov rax, qword [0x140048978]
test rax, rax
jg 0x14000da63
dec rax
mov qword [0x140048978], rax
and qword [0x1400589d8], 0
jmp 0x14000da3b
mov rbx, qword [0x1400589d8]
test rbx, rbx
jg 0x14000dab7
mov rcx, qword [0x1400589c8]
mov ebx, 0x2000
mov edx, ebx
call fcn.14000dcc8
movsxd rcx, eax
mov qword [0x1400589d8], rcx
test eax, eax
je 0x14000da59
cmp rcx, 0xffffffffffffffff
je 0x14000daed
mov rax, qword [0x1400589c8]
add qword [0x140058a18], rbx
mov qword [0x1400589d0], rax
call fcn.14000d45c
mov rbx, qword [0x1400589d8]
mov rax, qword [0x1400489b0]
test byte [rax + 0x80], 1
je 0x14000db30
cmp byte [0x140059be1], 0
je 0x14000db05
test rbx, rbx
je 0x14000db30
mov rdx, qword [0x1400589d0]
lea rcx, [0x140059be8]
mov r8, rbx
call fcn.140011258
jmp 0x14000db29
lea rdx, [0x14006f52a]
lea rcx, [0x140065260]
call fcn.140001d8c
jmp 0x14000da59
mov rdi, qword [0x1400589d0]
test rbx, rbx
je 0x14000db30
call fcn.140010fac
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.140011120
inc rdi
sub rbx, 1
jne 0x14000db11
mov rbx, qword [0x1400589d8]
mov rax, qword [0x1400589d0]
dec rbx
mov qword [0x1400589d8], rbx
movzx eax, byte [rax]
inc qword [0x1400589d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140011018
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov dil, r8b
mov rcx, rdx
call fcn.140010fcc
mov r8d, 0xc
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14001b6a0
xor ebx, ebx
mov ecx, dword [0x140059b28]
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.140011120
inc rbx
cmp rbx, 0xc
jl 0x140011054
mov rax, qword [0x1400489b0]
movzx ecx, byte [0x140058a47]
test byte [rax + 0x80], 2
movzx eax, byte [0x140058a3f]
cmovne ecx, eax
movzx eax, byte [rsp + 0x2b]
cmp eax, ecx
je 0x1400110b2
or eax, 0xffffffff
jmp 0x140011107
test dil, dil
je 0x140011105
mov rbx, qword [0x1400589d8]
mov rax, qword [0x140048978]
mov rdi, qword [0x1400589d0]
movsxd rcx, ebx
cmp rcx, rax
cmovg ebx, eax
test ebx, ebx
je 0x140011105
mov ecx, dword [0x140059b28]
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.140011120
inc rdi
sub ebx, 1
jne 0x1400110d9
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400198e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140011120
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov r8, qword [0x140059b20]
mov eax, ecx
mov r9d, ecx
mov rdx, r8
mov rcx, qword [0x140059b28]
xor rdx, rax
movzx eax, dl
lea rdx, [0x140048550]
shr r8d, 8
xor r8d, dword [rdx + rax*4]
movzx eax, r8b
add eax, dword [0x140059b24]
imul eax, eax, 0x8088405
mov dword [0x140059b20], r8d
inc eax
mov dword [0x140059b24], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov eax, r9d
mov dword [0x140059b28], ecx
ret

Function at 0x1400113f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, qword [rsp + 0xa0]
mov r12, rdx
lea rdx, [rsp + 0x20]
mov rsi, r9
mov r15, r8
mov rbx, rcx
call fcn.1400118f0
xor edi, edi
test rsi, rsi
je 0x140011468
cmp byte [r14], dil
je 0x140011468
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [rbx + 0x30], xmm1
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [rbx + 0x40], xmm0
movups xmm1, xmmword [rsi + 0x50]
movups xmmword [rbx + 0x50], xmm1
jmp 0x14001149c
lea rax, [rbx + 0x60]
mov ecx, 0x40
xor byte [rax], 0x6a
inc rax
sub rcx, 1
jne 0x140011471
mov rcx, rbx
call fcn.140007ba0
mov r8d, 0x40
lea rdx, [rbx + 0x60]
mov rcx, rbx
call fcn.140007bc8
test rsi, rsi
je 0x1400114d3
cmp byte [r14], dil
jne 0x1400114d3
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rsi + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rsi + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rsi + 0x50], xmm1
mov byte [r14], 1
mov r8d, 0x14
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140007bc8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400118f0
test r15, r15
je 0x14001150c
mov rcx, rdi
mov al, byte [rsp + rcx + 0x20]
inc edi
mov byte [rcx + r12], al
mov ecx, edi
cmp rcx, r15
jb 0x1400114fb
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400198e0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140011528
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 0x140011574
call fcn.140007ba0
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.140007bc8
mov rdx, rbp
mov rcx, rbx
call fcn.1400118f0
mov edi, 0x14
jmp 0x14001157c
mov rcx, rbp
call fcn.14001b6a0
xor eax, eax
mov qword [rbx + 0xa0], rdi
lea edx, [rax + 0x36]
test rdi, rdi
je 0x1400115a3
mov ecx, eax
xor byte [rcx + rbx + 0x60], dl
inc eax
mov rdi, qword [rbx + 0xa0]
mov ecx, eax
cmp rcx, rdi
jb 0x14001158f
mov r8d, 0x40
lea rcx, [rbx + 0x60]
sub r8, rdi
add rcx, rdi
call fcn.14001a940
mov rcx, rbx
call fcn.140007ba0
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.140007bc8
Function at 0x140012184
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14003e858]
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 [0x14002e480]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002e480]
cmp eax, 0x40
jne 0x14001227a
cmp byte [rsp + 0x20], 0x4d
jne 0x14001227a
cmp byte [rsp + 0x21], 0x5a
jne 0x14001227a
mov rax, qword [rbx]
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14002e480]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x108
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002e480]
cmp eax, 0x108
jne 0x14001227a
cmp byte [rsp + 0x20], 0x50
jne 0x14001227a
cmp byte [rsp + 0x21], 0x45
jne 0x14001227a
cmp byte [rsp + 0x22], 0
jne 0x14001227a
cmp byte [rsp + 0x23], 0
jne 0x14001227a
cmp byte [rsp + 0x38], 0xb
jne 0x14001227a
cmp byte [rsp + 0x39], 1
jne 0x140012261
cmp dword [rbp - 0x6c], 4
jbe 0x140012261
mov eax, dword [rbp - 0x48]
jmp 0x14001227c
cmp byte [rsp + 0x38], 0xb
jne 0x14001227a
cmp byte [rsp + 0x39], 2
jne 0x14001227a
cmp dword [rbp - 0x5c], 4
jbe 0x14001227a
mov eax, dword [rbp - 0x38]
jmp 0x14001227c
xor eax, eax
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400198e0
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rbp
ret
Function at 0x140012c04
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 [0x14002e480]
mov ebx, eax
test eax, eax
js 0x140012cbf
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140012ccd
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x140030820]
mov rax, qword [rax]
call qword [0x14002e480]
mov ebx, eax
test eax, eax
js 0x140012cad
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14002e480]
mov ebx, eax
test eax, eax
js 0x140012c9b
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14002e480]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002e480]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002e480]
test ebx, ebx
js 0x140012ccd
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140012d3e
cmp qword [rdi + 0x10], 0
je 0x140012d3e
cmp qword [rdi + 0x48], 0
jne 0x140012d3e
mov rdx, qword [rdi + 0x40]
test rdx, rdx
je 0x140012d3e
mov rcx, rdi
call fcn.1400134d0
mov rsi, rax
test rax, rax
je 0x140012d3e
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.14001ea98
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 0x140013fac
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 0x14001405c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14002f990]
mov rcx, qword [0x140061218]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400141da
mov rcx, qword [0x140061218]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400141da
mov rcx, qword [0x140061218]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400141da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400141da
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 0x1400141d3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400141ca
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.14001b6a0
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 0x1400141c1
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x14001416e
and qword [rsp + 0x50], 0
lea rax, [0x14002f960]
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 0x140014170
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002e480]
test rbx, rbx
je 0x1400141c1
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x1400141ad
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1400141ad
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x14002e480]
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 0x1400141dc
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001467c
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 0x1400149c8
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 [0x14003e858]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, 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 0x140014b54
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 0x140014a4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140014b54
mov ecx, dword [rsp + 0x30]
call fcn.1400211dc
mov r9d, dword [rsp + 0x30]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140014a8c
mov rcx, rbx
call fcn.14001ea98
jmp 0x140014b54
mov r8, qword [rbx]
lea rdx, [rbp - 0x40]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rcx, rbx
call fcn.14001ea98
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 0x140014b54
mov edx, r14d
lea rcx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140014b44
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 0x140014b44
and dword [rsp + 0x58], 0
lea rax, [rbp - 0x70]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rcx, rdi
mov dword [rsp + 0x48], 0x18
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140014b54
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400198e0
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 0x140014b7c
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1080
call fcn.140019920
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x1070], rax
xor ebx, ebx
cmp word [0x140062232], bx
je 0x140014c46
lea rcx, [0x140062232]
call fcn.1400048d0
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.1400098a8
test eax, eax
jne 0x140014c46
lea rcx, [0x140061230]
call fcn.14001467c
mov r8d, 0x800
lea rdx, [0x140062232]
lea rcx, [rsp + 0x60]
call fcn.140008168
lea rcx, [rsp + 0x60]
call fcn.14001e7d8
lea rax, [rax*2 + 2]
cmp rax, 0x1002
jae 0x140014c5f
xor edx, edx
mov word [rsp + rax + 0x60], bx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14001a940
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]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1400198e0
add rsp, 0x1080
pop rbx
ret
call fcn.140019ae4
int3

Function at 0x140014ce8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebp, ebp
mov rdi, r8
cmp qword [0x14003e7d0], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x140014d5b
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 [0x140071978], ax
lea rax, [0x140071978]
mov qword [0x14003e7d0], rax
mov word [0x14007197a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140007fac
lea r9, [0x14003e7b8]
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.1400198e0
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014ec0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f60]
mov eax, 0x2060
call fcn.140019920
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rbp + 0x1f50], rax
xor esi, esi
mov rdi, rdx
cmp byte [0x140063238], sil
mov rbx, rcx
je 0x140014fb9
mov r8d, 0x800
lea rdx, [rbp + 0xf50]
call fcn.1400167d0
lea rax, [rsp + 0x38]
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 0x140014fb9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014fae
mov eax, dword [rsp + 0x30]
shr eax, 1
mov edx, eax
mov dword [rsp + 0x30], eax
mov eax, 0x7ff
cmp edx, eax
cmovb eax, edx
add rax, rax
cmp rax, 0x1000
jae 0x140014fdb
mov r8, rdi
mov word [rsp + rax + 0x50], si
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140008168
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f50]
xor rcx, rsp
call fcn.1400198e0
mov rbx, qword [rsp + 0x2090]
add rsp, 0x2060
pop rdi
pop rsi
pop rbp
ret
call fcn.140019ae4
int3

Function at 0x1400150d4
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x2030
call fcn.140019920
sub rsp, rax
mov rax, qword [0x14003e858]
xor rax, rsp
mov qword [rsp + 0x2020], rax
xor r14d, r14d
mov rbx, rcx
mov rcx, qword [rsp + 0x2080]
mov rsi, r8
test r9, r9
je 0x140015113
mov byte [r9], r14b
test rcx, rcx
je 0x14001511b
mov byte [rcx], r14b
test rbx, rbx
je 0x1400151d0
movzx eax, word [rbx]
test ax, ax
je 0x1400151d0
movsxd rbp, dword [rsp + 0x2088]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x140015160
test rsi, rsi
je 0x14001516c
test rdi, rdi
jne 0x14001516c
test r9, r9
je 0x14001515b
mov byte [r9], 1
mov rdi, rdx
jmp 0x14001517b
cmp ax, 0xd
je 0x14001518d
cmp ax, 0xa
je 0x140015191
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x140015188
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x14001513e
jmp 0x140015191
mov byte [rcx], 1
jmp 0x140015191
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x1400151cb
mov word [rsi], r14w
test rdi, rdi
je 0x1400151cb
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.140008168
mov word [rdi], r14w
mov rax, rbx
jmp 0x1400151d2
xor eax, eax
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.1400198e0
add rsp, 0x2030
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400151f0
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 0x14001525c
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 [0x14002e480]
jmp 0x14001525f
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret