joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000217c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x100004110]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x100002303
xor r12d, r12d
cmp eax, r12d
jne 0x1000021db
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100002308
mov rax, qword [rsp + 0x20]
cmp rax, r12
je 0x100002303
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x100002303
mov word [rax], r12w
movzx ecx, word [rsp + 0x30]
mov r13d, 0x5c
cmp cx, 0x41
jb 0x100002212
cmp cx, 0x5a
jbe 0x10000221b
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x100002236
cmp word [rsp + 0x32], 0x3a
jne 0x100002236
cmp word [rsp + 0x34], r13w
jne 0x100002303
lea rsi, [rsp + 0x34]
jmp 0x10000223b
mov rsi, qword [rsp + 0x20]
cmp cx, r13w
jne 0x100002277
cmp word [rsp + 0x32], r13w
jne 0x100002277
lea rcx, [rsp + 0x34]
mov edx, r13d
call sub.msvcrt.dll_wcschr
cmp rax, r12
je 0x100002303
lea rcx, [rax + 2]
mov edx, r13d
call sub.msvcrt.dll_wcschr
mov rsi, rax
cmp rax, r12
je 0x100002303
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100002296
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x100002308
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x1000022ac
lea rdi, [rsp + 0x30]
jmp 0x1000022b0
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x100002303
cmp word [rdi], r13w
jne 0x100002303
cmp rdi, rsi
jbe 0x100002303
lea rcx, [rsp + 0x30]
mov edx, r13d
mov word [rdi], r12w
call sub.msvcrt.dll_wcsrchr
mov rbp, rax
cmp rax, r12
je 0x100002303
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r12w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp + 2], bx
cmp eax, 0xffffffff
jne 0x100002335
mov rdi, rbp
cmp rbp, rsi
ja 0x1000022c0
cmp rdi, rsi
ja 0x10000235b
mov eax, 0x7b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000028a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
test al, 0x10
jne 0x1000022fe
mov eax, 0x10b
jmp 0x100002308
cmp word [rdi + 2], r12w
je 0x100002372
mov rcx, rdi
mov word [rdi], r13w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r12d
jne 0x100002340
jmp 0x1000021d0
xor eax, eax
jmp 0x100002308
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
in al, 0xf1
cmp edi, ebx
hlt
Function at 0x140001fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140002142
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002142
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140002142
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140002086
nop
cmp rdi, r11
jae 0x140002142
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140002070
cmp rdi, r11
jae 0x140002142
movzx eax, word [rdi]
test ax, ax
je 0x140002142
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x1400020bc
mov edx, ebx
mov rcx, rsi
call fcn.140001970
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x1400020d9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.14008e4d0
test eax, eax
je 0x140002118
cmp eax, 0xc
je 0x140002112
cmp eax, 0x16
je 0x14000210c
cmp eax, 0x22
je 0x14000210c
cmp eax, 0x50
je 0x140002118
call fcn.140062504
int3
call fcn.140062504
int3
call fcn.1400624bc
int3
test ebx, ebx
js 0x140002137
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140002137
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140002144
mov ecx, 0x80070057
call fcn.140001950
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140002160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140002193
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x1400021d7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400021d2
cmp rbx, r11
jae 0x1400021d7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400021c0
cmp rbx, r11
jb 0x1400021db
xor eax, eax
jmp 0x1400021e7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140016a80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x150
mov rax, qword [0x1400f0bc8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, rcx
mov rcx, qword [0x1400fb0e8]
lea rdx, [0x1400c2664]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.14008f780
test eax, eax
jne 0x140016c1b
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or r8, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
mov rcx, r8
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
test ecx, ecx
mov rdi, rcx
jne 0x140016b6c
mov rax, qword [0x1400fb0e8]
cmp dword [rax - 0x10], ebx
mov rdi, qword [rax - 0x18]
lea rdx, [rax - 0x18]
je 0x140016c22
cmp dword [rdx + 0x10], ebx
jge 0x140016b3b
cmp dword [rax - 0xc], ebx
jge 0x140016b23
mov ecx, 0x80070057
call fcn.140001950
int3
mov dword [rax - 0x10], ebx
mov rax, qword [0x1400fb0e8]
mov byte [rax], bl
mov rax, qword [0x1400fb0e8]
jmp 0x140016c22
lock xadd dword [rdx + 0x10], r8d
add r8d, 0xffffffff
test r8d, r8d
jg 0x140016b53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [0x1400fb0e8], rax
jmp 0x140016c22
mov r10, qword [0x1400fb0e8]
mov qword [rsp + 0x168], rsi
mov ecx, 1
mov eax, dword [r10 - 0xc]
sub ecx, dword [r10 - 8]
mov ebx, dword [r10 - 0x10]
lea rsi, [rsp + 0x30]
sub eax, edi
sub rsi, r10
or ecx, eax
jge 0x140016baf
lea rcx, [0x1400fb0e8]
mov edx, edi
call fcn.140018c20
mov r10, qword [0x1400fb0e8]
cmp rsi, rbx
ja 0x140016bcb
movsxd rbx, edi
lea r8, [r10 + rsi]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.14008dcf0
jmp 0x140016be1
movsxd rbx, edi
lea r8, [rsp + 0x30]
mov rcx, r10
mov r9, rbx
mov rdx, rbx
call fcn.14008e4d0
test edi, edi
mov rsi, qword [rsp + 0x168]
js 0x140016c10
mov rax, qword [0x1400fb0e8]
cmp edi, dword [rax - 0xc]
jg 0x140016c10
mov dword [rax - 0x10], edi
mov rax, qword [0x1400fb0e8]
mov byte [rbx + rax], 0
mov rax, qword [0x1400fb0e8]
jmp 0x140016c22
mov ecx, 0x80070057
call fcn.140001950
int3
mov rax, qword [0x1400fb0e8]
mov rcx, qword [rax - 0x18]
lea rdi, [rax - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
cmp dword [rdi + 0x10], 0
mov rcx, rax
jl 0x140016c48
cmp rax, qword [rdi]
jne 0x140016c48
mov rbx, rdi
lock add dword [rdi + 0x10], 1
jmp 0x140016c83
mov rax, qword [rax]
mov edx, dword [rdi + 8]
mov r8d, 1
call qword [rax]
test rax, rax
mov rbx, rax
jne 0x140016c64
call fcn.140001a80
int3
mov ecx, dword [rdi + 8]
lea r8, [rdi + 0x18]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 8]
add ecx, 1
movsxd rdx, ecx
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.14008e4d0
lea rcx, [rbx + 0x18]
mov rax, rbp
mov qword [rbp], rcx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14008e4b0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140016cc0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rdi
mov eax, 0x10060
call fcn.1400b18a0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10078], rbx
mov rax, qword [0x1400f0bc8]
xor rax, rsp
mov qword [rsp + 0x10050], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
call fcn.140062978
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140016d1e
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
lea rdx, [0x1400c0af8]
test rdx, 0xffffffffffff0000
jne 0x140016d5a
movzx edi, dx
mov ecx, edi
call fcn.140062784
test rax, rax
je 0x140016d76
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140001fe0
jmp 0x140016d76
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbx
call fcn.140001bd0
nop
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x50]
call fcn.1400926c0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140016dee
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x4c], 0x5c
jne 0x140016dce
mov word [rsp + rcx*2 + 0x4c], ax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001bd0
mov rax, rbx
mov rcx, qword [rsp + 0x10050]
xor rcx, rsp
call fcn.14008e4b0
mov rbx, qword [rsp + 0x10078]
add rsp, 0x10060
pop rdi
ret
Function at 0x140018580
Capabilities:
Get file version info

Disassembly:
push rdi
sub rsp, 0xa30
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xa50], rbx
mov rax, qword [0x1400f0bc8]
xor rax, rsp
mov qword [rsp + 0xa20], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x24], 0
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
call fcn.140062978
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x1400185ee
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x24], 1
test rdi, rdi
je 0x1400186b6
mov word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.1400926c0
mov dword [rsp + 0x28], 0x103
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001bd0
mov word [rsp + 0x250], 0
xor edx, edx
mov r8d, 0x7cc
lea rcx, [rsp + 0x252]
call fcn.1400926c0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
lea r9, [rsp + 0x250]
mov r8d, 0x3e7
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoW
mov rax, rbx
mov rcx, qword [rsp + 0xa20]
xor rcx, rsp
call fcn.14008e4b0
mov rbx, qword [rsp + 0xa50]
add rsp, 0xa30
pop rdi
ret
Function at 0x14001eec0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r13, rcx
call fcn.140062978
mov rcx, rax
xor ebx, ebx
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14001ef02
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400c01d0]
call sub.SHELL32.dll_SHGetKnownFolderPath
or rsi, 0xffffffffffffffff
test eax, eax
js 0x14001f08d
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001ef5c
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
lea rcx, [rsp + 0x78]
call fcn.140001bd0
xor eax, eax
mov rcx, rsi
lea r12, str.driversDTSU2PClearAudio.DAT
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbp, r12
mov rdi, qword [rsp + 0x78]
sub rbp, rdi
sar rbp, 1
mov r14d, dword [rdi - 0x10]
lea ebx, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, edx
jge 0x14001efbb
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140001970
mov rdi, qword [rsp + 0x78]
cmp rbp, r14
ja 0x14001efc4
lea r12, [rdi + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rdi + r14*2]
mov r9, rdx
mov r8, r12
call fcn.14008e4d0
test ebx, ebx
js 0x14001f082
cmp ebx, dword [rdi - 0xc]
jg 0x14001f082
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov word [rdi + rax*2], 0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001f01f
cmp rax, qword [rdi - 0x18]
jne 0x14001f01f
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov rdi, qword [rsp + 0x78]
jmp 0x14001f05d
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x14001f03b
call fcn.140001a80
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.14008e4d0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
lea rdx, [0x1400c0f10]
mov rcx, r13
call fcn.1400156e0
jmp 0x14001f08d
mov ecx, 0x80070057
call fcn.140001950
int3
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14001f0a1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14001f0ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001f0f0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r13, rcx
call fcn.140062978
mov rcx, rax
xor ebx, ebx
mov edx, ebx
test rax, rax
setne dl
test edx, edx
jne 0x14001f132
mov ecx, 0x80004005
call fcn.140001950
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rbx
lea r9, [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400c01d0]
call sub.SHELL32.dll_SHGetKnownFolderPath
or rsi, 0xffffffffffffffff
test eax, eax
js 0x14001f2bd
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001f18c
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea ebx, [rcx - 1]
mov r8d, ebx
lea rcx, [rsp + 0x78]
call fcn.140001bd0
xor eax, eax
mov rcx, rsi
lea r12, str.driversDTSU2PParamEQ.DAT
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rbp, r12
mov rdi, qword [rsp + 0x78]
sub rbp, rdi
sar rbp, 1
mov r14d, dword [rdi - 0x10]
lea ebx, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, ebx
or eax, edx
jge 0x14001f1eb
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140001970
mov rdi, qword [rsp + 0x78]
cmp rbp, r14
ja 0x14001f1f4
lea r12, [rdi + rbp*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rdi + r14*2]
mov r9, rdx
mov r8, r12
call fcn.14008e4d0
test ebx, ebx
js 0x14001f2b2
cmp ebx, dword [rdi - 0xc]
jg 0x14001f2b2
mov dword [rdi - 0x10], ebx
movsxd rax, ebx
mov word [rdi + rax*2], 0
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001f24f
cmp rax, qword [rdi - 0x18]
jne 0x14001f24f
lea rbp, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov rdi, qword [rsp + 0x78]
jmp 0x14001f28d
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x14001f26b
call fcn.140001a80
int3
mov eax, dword [rdi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbp + 0x18]
call fcn.14008e4d0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x88]
lea rdx, [0x1400c0f88]
mov rcx, r13
call fcn.1400156e0
jmp 0x14001f2bd
mov ecx, 0x80070057
call fcn.140001950
int3
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14001f2d1
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14001f2ea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140027df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov rbp, rdx
movzx edx, r8w
mov rsi, rcx
lea r8, [0x1400c5eb0]
xor ebx, ebx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140027eff
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov edi, eax
je 0x140027eff
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbp, rax
je 0x140027eff
lea ecx, [rbx + 2]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x140027eff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140027ee0
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call fcn.1400927c0
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x140027eff
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1400276e0
test eax, eax
js 0x140027eff
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x60], 0
je 0x140027ef8
mov rcx, rsi
call fcn.140027f50
mov eax, 1
jmp 0x140027f31
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140027f18
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x20], 0
test rbx, rbx
je 0x140027f2f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x140028ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov edx, 6
add ax, 1
mov rcx, rbp
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov r12, rax
je 0x140028e02
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140028e02
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140028e02
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140028d46
nop
cmp rdi, r11
jae 0x140028e02
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140028d30
cmp rdi, r11
jae 0x140028e02
movzx eax, word [rdi]
test ax, ax
je 0x140028e02
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140028d7c
mov edx, ebx
mov rcx, rsi
call fcn.140001970
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140028d99
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.14008e4d0
test eax, eax
je 0x140028dd8
cmp eax, 0xc
je 0x140028dd2
cmp eax, 0x16
je 0x140028dcc
cmp eax, 0x22
je 0x140028dcc
cmp eax, 0x50
je 0x140028dd8
call fcn.140062504
int3
call fcn.140062504
int3
call fcn.1400624bc
int3
test ebx, ebx
js 0x140028df7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140028df7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140028e04
mov ecx, 0x80070057
call fcn.140001950
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret