joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400060c8
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov r11, r8
mov r10, rdx
movdqu xmm1, xmmword [rcx + 8]
test r8, r8
je 0x14000613a
mov rax, r10
add r10, 0x10
cmp byte [rcx + 1], 0
movdqu xmm0, xmmword [rax]
je 0x1400060ed
pxor xmm0, xmm1
movdqu xmm1, xmmword [rcx + 0x18]
movsxd rax, dword [rcx + 4]
pxor xmm1, xmm0
cmp rax, 1
jle 0x14000611b
lea rdx, [rcx + 0x28]
lea r8, [rax - 1]
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
aesenc xmm1, xmm0
sub r8, 1
jne 0x140006108
add rax, rax
movdqu xmm0, xmmword [rcx + rax*8 + 0x18]
mov rax, r9
add r9, 0x10
aesenclast xmm1, xmm0
movdqu xmmword [rax], xmm1
sub r11, 1
jne 0x1400060d8
movdqu xmmword [rcx + 8], xmm1
ret

Function at 0x140006140
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10b, r10b
mov r11b, dl
mov bl, cl
test dl, dl
je 0x140006188
mov al, r10b
xor al, bl
movzx r8d, al
test r11b, 1
movzx eax, r10b
cmove r8d, eax
mov al, bl
add al, al
mov r10b, r8b
mov r8b, bl
movzx edx, al
mov cl, dl
mov ebx, edx
xor cl, 0x1b
test r8b, r8b
movzx ecx, cl
cmovs ebx, ecx
shr r11b, 1
jne 0x140006151
mov rbx, qword [rsp + 8]
mov al, r10b
ret

Function at 0x140006194
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x14000626c
lea rbx, [rax - 0x28]
sub rbx, rcx
lea rbp, [rcx + 0x2a]
sub rbx, 0x2a
lea r15, [0x140000000]
xor r9d, r9d
mov r10, rbp
lea r14, [rbx + r9]
mov r11d, 4
movzx eax, byte [r10 + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [r10 - 1]
mov r8b, byte [rdx + r15 + 0x47010]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x46810]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x46410]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x46c10]
mov byte [r14 + r10], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x1400061e3
inc r9
cmp r9, 4
jl 0x1400061d6
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.14001a4b0
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x1400061d3
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140006904
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 [0x140047420]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test r10, r10
jne 0x1400069a3
cmp byte [0x140047418], bl
jne 0x1400069a3
lea rcx, str.Crypt32.dll
call fcn.140007cb4
mov qword [0x140047410], rax
test rax, rax
je 0x14000698c
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140047410]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140047420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140047428], rax
jmp 0x140006993
mov rax, qword [0x140047428]
mov r10, qword [0x140047420]
mov byte [0x140047418], 1
jmp 0x1400069aa
mov rax, qword [0x140047428]
mov rcx, rdi
mov r8d, ebp
and rcx, 0xfffffffffffffff0
test r14b, r14b
je 0x1400069fd
test r10, r10
je 0x140006a1a
mov edx, ecx
mov rax, r10
mov rcx, rsi
call qword [0x14002d478]
test eax, eax
jne 0x140006a35
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140064260]
mov rcx, rbx
call fcn.140001ad4
mov rcx, rbx
call fcn.140001d58
mov edx, 2
mov rcx, rbx
call fcn.140001acc
jmp 0x140006a35
test rax, rax
je 0x140006a1a
mov edx, ecx
mov rcx, rsi
call qword [0x14002d478]
test eax, eax
jne 0x140006a35
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x1400069d7
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x140006a35
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x140006a25
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 0x14000732c
Capabilities:
Hash data using sha1

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, 0x60
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 0x1400073b2
jbe 0x14000739d
lea edx, [rbp + 8]
cmp edi, edx
jae 0x140007387
sub edx, edi
mov ecx, edi
add rcx, 0x20
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.140019800
xor edi, edi
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006b34
sub ebp, edi
mov ecx, edi
add rcx, 0x20
mov r8d, ebp
add rcx, rbx
xor edx, edx
call fcn.140019800
mov rcx, r14
shr rcx, 0x20
call fcn.140020904
mov ecx, r14d
mov dword [rbx + 0x58], eax
call fcn.140020904
lea r8, [rbx + 0x20]
mov dword [rbx + 0x5c], eax
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006b34
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 0x1400073eb
and qword [rbx + 0x18], rcx
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
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 rbx, qword [r11 + 0x10]
mov rsp, r11
pop r14
ret

Function at 0x14000743c
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 0x140007cb4
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1020
call fcn.140018b00
sub rsp, rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140007cde
xor eax, eax
jmp 0x140007d01
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140003f88
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
add rsp, 0x1020
pop rbx
ret
Function at 0x14000d130
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140057ac8], 0
je 0x14000d14b
or eax, 0xffffffff
jmp 0x14000d253
mov rax, qword [0x140047978]
test rax, rax
jg 0x14000d16b
dec rax
mov qword [0x140047978], rax
and qword [0x1400579d8], 0
jmp 0x14000d143
mov rbx, qword [0x1400579d8]
test rbx, rbx
jg 0x14000d1bf
mov rcx, qword [0x1400579c8]
mov ebx, 0x2000
mov edx, ebx
call fcn.14000d3d0
movsxd rcx, eax
mov qword [0x1400579d8], rcx
test eax, eax
je 0x14000d161
cmp rcx, 0xffffffffffffffff
je 0x14000d1f5
mov rax, qword [0x1400579c8]
add qword [0x140057a18], rbx
mov qword [0x1400579d0], rax
call fcn.14000cbac
mov rbx, qword [0x1400579d8]
mov rax, qword [0x1400479b0]
test byte [rax + 0x80], 1
je 0x14000d238
cmp byte [0x140058be1], 0
je 0x14000d20d
test rbx, rbx
je 0x14000d238
mov rdx, qword [0x1400579d0]
lea rcx, [0x140058be8]
mov r8, rbx
call fcn.14001080c
jmp 0x14000d231
lea rdx, [0x14006e52a]
lea rcx, [0x140064260]
call fcn.140001cb4
jmp 0x14000d161
mov rdi, qword [0x1400579d0]
test rbx, rbx
je 0x14000d238
call fcn.14001057c
xor byte [rdi], al
movzx ecx, byte [rdi]
call fcn.1400106d4
inc rdi
sub rbx, 1
jne 0x14000d219
mov rbx, qword [0x1400579d8]
mov rax, qword [0x1400579d0]
dec rbx
mov qword [0x1400579d8], rbx
movzx eax, byte [rax]
inc qword [0x1400579d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400105e8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov dil, r8b
mov rcx, rdx
call fcn.14001059c
mov r8d, 0xc
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14001a4b0
xor ebx, ebx
mov ecx, dword [0x140058b28]
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.1400106d4
inc rbx
cmp rbx, 0xc
jl 0x140010615
mov rax, qword [0x1400479b0]
movzx ecx, byte [0x140057a47]
test byte [rax + 0x80], 2
movzx eax, byte [0x140057a3f]
cmovne ecx, eax
movzx eax, byte [rsp + 0x2b]
cmp eax, ecx
je 0x140010673
or eax, 0xffffffff
jmp 0x1400106c8
test dil, dil
je 0x1400106c6
mov rbx, qword [0x1400579d8]
mov rax, qword [0x140047978]
mov rdi, qword [0x1400579d0]
movsxd rcx, ebx
cmp rcx, rax
cmovg ebx, eax
test ebx, ebx
je 0x1400106c6
mov ecx, dword [0x140058b28]
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.1400106d4
inc rdi
sub ebx, 1
jne 0x14001069a
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov r8, qword [0x140058b20]
mov eax, ecx
mov r9d, ecx
mov rdx, r8
mov rcx, qword [0x140058b28]
xor rdx, rax
movzx eax, dl
lea rdx, [0x140047550]
shr r8d, 8
xor r8d, dword [rdx + rax*4]
movzx eax, r8b
add eax, dword [0x140058b24]
imul eax, eax, 0x8088405
mov dword [0x140058b20], r8d
inc eax
mov dword [0x140058b24], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [rdx + rax*4]
mov eax, r9d
mov dword [0x140058b28], ecx
ret
Function at 0x140010998
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.14000732c
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 0x1400109e2
inc r9d
add r10, 4
cmp r9d, 5
jb 0x1400109d4
mov r14, qword [rsp + 0x90]
test rsi, rsi
je 0x140010a53
cmp byte [r14], bl
je 0x140010a53
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 0x140010a87
lea rax, [rdi + 0x60]
mov ecx, 0x40
xor byte [rax], 0x6a
inc rax
sub rcx, 1
jne 0x140010a5c
mov rcx, rdi
call fcn.14000743c
mov r8d, 0x40
lea rdx, [rdi + 0x60]
mov rcx, rdi
call fcn.140007464
test rsi, rsi
je 0x140010abe
cmp byte [r14], bl
jne 0x140010abe
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.140007464
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14000732c
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 0x140010af4
inc r8d
add r9, 4
cmp r8d, 5
jb 0x140010ae6
test r15, r15
je 0x140010b3c
mov rcx, rbx
mov al, byte [rsp + rcx + 0x20]
inc ebx
mov byte [rcx + r12], al
mov ecx, ebx
cmp rcx, r15
jb 0x140010b2b
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 0x140010b5c
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 0x140010bf6
call fcn.14000743c
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.140007464
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000732c
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 0x140010bbc
inc r8d
add r9, 4
cmp r8d, 5
jb 0x140010bae
mov edi, 0x14
lea rbp, [rbx + 0x60]
jmp 0x140010c02
lea rbp, [rcx + 0x60]
mov rcx, rbp
call fcn.14001a4b0
mov qword [rbx + 0xa0], rdi
mov edx, 0x36
test rdi, rdi
je 0x140010c2a
mov rax, rsi
xor byte [rax + rbx + 0x60], dl
inc esi
mov rdi, qword [rbx + 0xa0]
mov eax, esi
cmp rax, rdi
jb 0x140010c16
mov r8d, 0x40
lea rcx, [rbx + 0x60]
sub r8, rdi
add rcx, rdi
call fcn.140019800
mov rcx, rbx
call fcn.14000743c
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.140007464
Function at 0x140011738
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 [0x14002d478]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d478]
cmp eax, 0x40
jne 0x140011820
cmp byte [rsp + 0x20], 0x4d
jne 0x140011820
cmp byte [rsp + 0x21], 0x5a
jne 0x140011820
mov rax, qword [rbx]
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14002d478]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x108
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d478]
cmp eax, 0x108
jne 0x140011820
cmp byte [rsp + 0x20], 0x50
jne 0x140011820
cmp byte [rsp + 0x21], 0x45
jne 0x140011820
cmp byte [rsp + 0x22], 0
jne 0x140011820
cmp byte [rsp + 0x23], 0
jne 0x140011820
cmp byte [rsp + 0x38], 0xb
jne 0x140011820
cmp byte [rsp + 0x39], 1
jne 0x140011807
cmp dword [rbp - 0x6c], 4
jbe 0x140011807
mov eax, dword [rbp - 0x48]
jmp 0x140011822
cmp byte [rsp + 0x38], 0xb
jne 0x140011820
cmp byte [rsp + 0x39], 2
jne 0x140011820
cmp dword [rbp - 0x5c], 4
jbe 0x140011820
mov eax, dword [rbp - 0x38]
jmp 0x140011822
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rbp
ret
Function at 0x140012174
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 [0x14002d478]
mov ebx, eax
test eax, eax
js 0x14001222f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001223d
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x14002f800]
mov rax, qword [rax]
call qword [0x14002d478]
mov ebx, eax
test eax, eax
js 0x14001221d
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14002d478]
mov ebx, eax
test eax, eax
js 0x14001220b
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14002d478]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002d478]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002d478]
test ebx, ebx
js 0x14001223d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x1400122ae
cmp qword [rdi + 0x10], 0
je 0x1400122ae
cmp qword [rdi + 0x48], 0
jne 0x1400122ae
mov rdx, qword [rdi + 0x40]
test rdx, rdx
je 0x1400122ae
mov rcx, rdi
call fcn.140012a40
mov rsi, rax
test rax, rax
je 0x1400122ae
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.14001d958
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 0x1400134ec
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 0x14001359c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14002e970]
mov rcx, qword [0x140060218]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14001371a
mov rcx, qword [0x140060218]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x14001371a
mov rcx, qword [0x140060218]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001371a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001371a
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 0x140013713
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001370a
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.14001a4b0
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 0x140013701
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x1400136ae
and qword [rsp + 0x50], 0
lea rax, [0x14002e940]
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 0x1400136b0
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002d478]
test rbx, rbx
je 0x140013701
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x1400136ed
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1400136ed
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x14002d478]
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 0x14001371c
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140013b94
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 0x140013ee0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 0x7f]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140014042
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x6f]
and dword [rbp + 0x6f], 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 0x140013f4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140014042
mov ecx, dword [rbp + 0x6f]
call fcn.14002009c
mov r9d, dword [rbp + 0x6f]
mov rbx, rax
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x6f]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140013f88
mov rcx, rbx
call fcn.14001d958
jmp 0x140014042
mov r8, qword [rbx]
lea rdx, [rbp - 9]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rcx, rbx
call fcn.14001d958
and qword [rbp - 0x41], 0
lea rax, [rbp - 9]
and dword [rbp - 0x45], 0
lea r9, [rbp + 0x77]
and qword [rbp + 0x77], 0
lea rdx, [rbp - 0x61]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
xor r8d, r8d
mov dword [rbp - 0x61], 0x11060000
mov ecx, r14d
mov dword [rbp - 0x5d], r14d
movdqu xmmword [rbp - 0x55], xmm0
mov dword [rbp - 0x59], 3
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140014042
mov edx, r14d
lea rcx, [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140014033
mov r8, qword [rbp + 0x77]
lea rcx, [rbp - 0x31]
xor r9d, r9d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140014033
and dword [rbp - 0x69], 0
lea rax, [rbp - 0x31]
lea rdx, [rbp - 0x79]
mov qword [rbp - 0x71], rax
mov rcx, rdi
mov dword [rbp - 0x79], 0x18
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140014042
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x110]
add rsp, 0xf0
pop r14
pop rdi
pop rbp
ret

Function at 0x140014058
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1070
call fcn.140018b00
sub rsp, rax
xor ebx, ebx
cmp word [0x140061232], bx
je 0x140014100
lea rcx, [0x140061232]
call fcn.1400040f8
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140009068
test eax, eax
jne 0x140014100
lea rcx, [0x140060230]
call fcn.140013b94
mov r8d, 0x800
lea rdx, [0x140061232]
lea rcx, [rsp + 0x60]
call fcn.1400079e4
lea rcx, [rsp + 0x60]
call fcn.14001d698
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.140019800
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 0x140014168
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 [0x14003d7d0], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x1400141d0
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 [0x140070978], ax
lea rax, [0x140070978]
mov qword [0x14003d7d0], rax
mov word [0x14007097a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140007848
lea r9, [0x14003d7b8]
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 0x14001432c
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.140018b00
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x140062238], sil
mov rbx, rcx
je 0x140014413
mov r8d, 0x800
lea rdx, [rbp + 0xf40]
call fcn.140015bb8
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 0x140014413
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 0x140014408
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.1400079e4
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