joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e40c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x14001e4ae
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14001e5b0]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14001e484
lea rdx, str.CreateThread_failed
lea rcx, [0x140060a80]
call fcn.14000adc0
lea rcx, [0x140060a80]
call fcn.14000b194
lea edx, [rsi + 2]
lea rcx, [0x140060a80]
call fcn.14000adb8
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x140067c08]
test edx, edx
je 0x14001e4a4
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x14001e428
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400265d0
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 [0x14005bec0]
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 [0x140048528]
mov ebx, eax
test eax, eax
js 0x140026695
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1400266a2
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
lea rdx, [0x14004ae00]
mov rax, qword [rax]
call qword [0x140048528]
mov ebx, eax
test eax, eax
js 0x140026684
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140048528]
mov ebx, eax
test eax, eax
js 0x140026673
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rdx, rsi
mov rax, qword [rax + 0x28]
call qword [0x140048528]
mov ebx, eax
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140048528]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140048528]
test ebx, ebx
js 0x1400266a2
mov rcx, qword [rbp - 0x38]
test rcx, rcx
jne 0x140026712
cmp qword [rdi + 0x10], 0
je 0x140026712
cmp qword [rdi + 0x48], 0
jne 0x140026712
mov r8, qword [rdi + 0x40]
test r8, r8
je 0x140026712
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140027160
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.14000268c
nop
lea rcx, [rbp - 0x30]
call fcn.140001fa8
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x140027de0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x40]
call fcn.140045720
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x1e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140031d40
add rsp, 0x78
ret
Function at 0x140027ec8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x140049e98]
mov rcx, qword [0x1400609f0]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140028046
mov rcx, qword [0x1400609f0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140028046
mov rcx, qword [0x1400609f0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140028046
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140028046
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 0x14002803f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140028036
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.140045080
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 0x14002802d
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x140027fda
and qword [rsp + 0x50], 0
lea rax, [0x140049e68]
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 0x140027fdc
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140048528]
test rbx, rbx
je 0x14002802d
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x140028019
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x140028019
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x140048528]
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 0x140028048
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002962c
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 [0x14005bec0]
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 0x1400297c2
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 0x1400296b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400297c2
mov ecx, dword [rsp + 0x30]
call fcn.140036b10
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 0x1400296f0
mov rcx, rdi
call fcn.140036b08
jmp 0x1400297c2
mov r8, qword [rdi]
lea rdx, [rbp - 0x40]
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rcx, rdi
call fcn.140036b08
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 0x1400297c2
mov edx, r14d
lea rcx, [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1400297b2
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 0x1400297b2
and dword [rsp + 0x58], 0
lea rax, [rbp - 0x70]
cmp qword [rbx + 0x18], 7
mov dword [rsp + 0x48], 0x18
mov qword [rsp + 0x50], rax
jbe 0x1400297a4
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 0x1400297c2
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140031d40
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 0x1400297e8
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 [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor r14d, r14d
mov ebx, r14d
mov dword [rbp - 0x19], ebx
lea rsi, [0x140067d88]
cmp qword [0x140067d98], r14
je 0x1400298a4
mov rbx, qword [str.RarSFX]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov rcx, rbx
call fcn.14003687c
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1400012c0
nop
mov dword [rbp - 0x19], 1
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.1400170b0
nop
lea ebx, [r14 + 3]
mov dword [rbp - 0x19], ebx
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rdx, qword [rbp - 0x11]
cmp qword [rax + 0x18], 7
jbe 0x14002988f
mov rax, qword [rax]
mov r8d, 6
mov rcx, rax
call fcn.140020b08
test eax, eax
mov dil, 1
je 0x1400298a7
mov dil, r14b
test bl, 2
je 0x1400298b9
and ebx, 0xfffffffd
lea rcx, [rbp + 0xf]
call fcn.140001fa8
nop
test bl, 1
je 0x1400298fe
mov rdx, qword [rbp + 7]
cmp rdx, 7
jbe 0x1400298fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400298f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029a2c
call fcn.140031c2c
test dil, dil
je 0x1400299fd
lea rcx, [0x140067d60]
call fcn.140017268
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
cmp qword [0x140067da0], 7
cmova rsi, qword [0x140067d88]
mov r8, qword [0x140067d98]
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.140008a84
nop
mov rcx, qword [rbp - 1]
cmp rcx, qword [rbp + 7]
jae 0x14002996c
lea rax, [rcx + 1]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rax, qword [rbp - 0x11]
mov dword [rax + rcx*2], r14d
jmp 0x14002997f
xor r9d, r9d
mov r8b, r14b
lea edx, [r9 + 1]
lea rcx, [rbp - 0x11]
call fcn.140001754
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], 7
cmova 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, 7
jbe 0x1400299fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400299f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029a26
call fcn.140031c2c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140031d40
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.140036804
int3
call fcn.140036804
int3
Function at 0x140029b70
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor ebp, ebp
mov rdi, r8
cmp qword [0x14005bdd8], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x140029be3
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 [0x140067e88], ax
lea rax, [0x140067e88]
mov qword [0x14005bdd8], rax
mov word [0x140067e8a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001cf28
lea r9, [0x14005bdc0]
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.140031d40
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x180
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a0f4
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 rsi, r9
mov rbx, r8
xor r15d, r15d
mov dil, r15b
cmp qword [rdx + 0x18], 7
jbe 0x14002a125
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 r14, qword [rbp + 0x40]
test eax, eax
jne 0x14002a276
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14002a156
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 0x14002a267
mov eax, dword [rbp - 0x30]
shr rax, 1
mov rcx, qword [r14 + 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], 7
jbe 0x14002a1cf
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 0x14002a22b
mov word [rbp + 0x28], r15w
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 8]
je 0x14002a20f
mov word [rdx], r15w
add qword [rbp - 0x10], 2
jmp 0x14002a21c
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.140028fc0
mov rdx, qword [rbp - 0x18]
mov rcx, rsi
call fcn.1400020c0
mov dil, 1
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14002a267
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002a262
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002a29e
call fcn.140031c2c
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dil, dil
jne 0x14002a281
mov rdx, r14
mov rcx, rsi
call fcn.140003cac
mov al, dil
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.140036804
int3

Function at 0x14002a3f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14005bec0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, 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]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
lea rax, str.unknown_folder
test ebx, ebx
cmovne rdx, rax
call fcn.1400020c0
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
Function at 0x14002f124
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140067eb0], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140067eb5], 1
mov byte [0x140067eb6], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.14000235c
cmp qword [0x14005bd10], 0
jne 0x14002f16f
cmp byte [0x140067ed0], 0
je 0x14002f178
cmp dword [0x140067ec8], 0
jne 0x14002f18d
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 0x14002f27c
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 [0x14005bec0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
cmp byte [0x140067db0], dil
je 0x14002f3b1
cmp qword [0x140067de8], rdi
je 0x14002f3b1
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rbp + 0x37], xmm1
mov word [rbp + 0x27], di
lea rdx, [rbp + 0x27]
lea rcx, [0x140067dd8]
call fcn.14002c8e4
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 0x14002f375
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14002f336
mov rcx, qword [rbx]
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 7
cmova 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, 7
jbe 0x14002f3b1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f3ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f3d2
call fcn.140031c2c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140031d40
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140036804
int3
Function at 0x14002f500
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 [0x14005bec0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x14002f530
mov rdx, qword [rcx]
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
movdqa xmm1, xmmword [0x1400489f0]
movdqu xmmword [rbp - 0x18], xmm1
xor edi, edi
mov word [rbp - 0x28], di
mov qword [rbp - 0x30], rdi
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14001c968
test al, al
je 0x14002f5ba
mov rax, qword [rbp - 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x14002f580
mov rcx, qword [rbx]
movzx ecx, word [rcx + rax*2]
call fcn.14001cce8
test al, al
je 0x14002f59a
mov rax, qword [rbp - 0x30]
inc rax
mov qword [rbp - 0x30], rax
jmp 0x14002f573
cmp qword [rbx + 0x18], 7
jbe 0x14002f5a4
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, 7
jbe 0x14002f5f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f5f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f612
call fcn.140031c2c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140031d40
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.140036804
int3
Function at 0x1400310b8
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 0x140031131
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140031131
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x140031131
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140031125
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031143
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031113
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 0x140031133

Function at 0x140032cec
Capabilities:
Parse pe header

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

Function at 0x14003af84
Capabilities:
Parse pe header

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

Function at 0x140044ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140044ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140044ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140014460
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14009d680]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x20]
mov rcx, rbx
or edx, 4
mov dword [rsp + 0x20], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
lea rcx, str.Skeptical_Public
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Starting_driver_initialization..
call fcn.140014140
lea rdx, [0x1400143a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140068e90
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140072d00
add rsp, 0x30
pop rbx
ret