joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b1f0
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor ebx, ebx
mov esi, edx
mov rdi, rcx
test rcx, rcx
je 0x14001b331
lea rdx, str.wmfdist11.exe
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14001b253
lea rdx, str.wmfdist11_64.exe
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
jne 0x14001b253
lea ebx, [rax + 1]
jmp 0x14001b331
mov edi, 0x104
lea rcx, [rsp + 0x250]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14001b331
lea r9, [rsp + 0x250]
mov edx, edi
lea r8, str._sdrmupgds.exe
lea rcx, [rsp + 0x40]
call fcn.140001734
test eax, eax
js 0x14001b331
xor r8d, r8d
cmp esi, 0xd2af9
jne 0x14001b31d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
lea r9d, [r8 + 2]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b331
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14001b2d2
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.WMFSDK11_DRMUpgrade
lea rax, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b331
mov r9d, 0xffff
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.140019694
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001ba00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
mov r12, r8
mov qword [rbp - 8], rax
mov rdi, rcx
mov esi, eax
mov r15d, 0x80004005
test r8, r8
je 0x14001bc28
lea rbx, [rdx + 1]
lea eax, [rsi + 2]
mul rbx
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.14003c460
mov r13, rax
test rax, rax
je 0x14001bc28
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001470
lea ebx, [rsi + 0x2c]
mov rcx, r13
mov edx, ebx
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
xor eax, eax
test rdi, rdi
je 0x14001bc1b
lea ecx, [rsi + 0x20]
mov word [rdi], ax
add rdi, 2
cmp cx, word [rdi]
je 0x14001ba87
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x14001baef
lea ecx, [rax + 0x20]
mov word [rbx], ax
add rbx, 2
cmp cx, word [rbx]
je 0x14001baab
mov edx, 0x2c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcschr]
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x14001bade
lea ecx, [rax + 0x20]
mov word [rsi], ax
add rsi, 2
cmp cx, word [rsi]
je 0x14001bad2
inc r14
cmp word [rbx + r14*2], ax
jne 0x14001bade
test r14, r14
cmove rbx, rax
mov rdx, 0xffffffff80000001
mov rcx, r13
call fcn.14001a950
lea rcx, [rbp - 8]
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001bc1b
mov r14d, 0x208
mov ecx, r14d
call fcn.14003c460
mov dword [rbp + 0x50], r14d
mov rdi, rax
xor r14d, r14d
test rax, rax
je 0x14001bc11
mov rcx, qword [rbp - 8]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov dword [rbp + 0x58], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001bc04
mov ecx, dword [rbp + 0x58]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14001bbdc
cmp ecx, 4
jne 0x14001bc04
lea rax, [rbp + 0x50]
mov dword [rbp + 0x50], ecx
mov rcx, qword [rbp - 8]
lea r9, [rbp + 0x58]
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp - 0x10]
mov dword [rbp - 0x10], r14d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001bc04
mov r9d, dword [rbp - 0x10]
lea r8, [0x140042130]
mov edx, 0x104
mov rcx, rdi
call fcn.140001734
test eax, eax
js 0x14001bc04
mov r15d, r14d
mov qword [r12], rdi
jmp 0x14001bc11
mov r15d, r14d
test rsi, rsi
je 0x14001bbfd
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140001584
mov qword [r12], rdi
mov rdi, r14
test rdi, rdi
je 0x14001bc11
mov rcx, rdi
call fcn.14003c408
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
call fcn.14003c408
mov eax, r15d
jmp 0x14001bc2d
mov eax, 0x8007000e
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001c090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor eax, eax
mov r13, rcx
or rcx, 0xffffffffffffffff
mov r15, r9
mov rbx, rcx
mov r12, r8
mov r14, rdx
mov edi, eax
mov ebp, eax
inc rbx
cmp word [rdx + rbx*2], ax
jne 0x14001c0c5
add rbx, 0x15
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14003c460
mov rsi, rax
test rax, rax
jne 0x14001c14a
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001c110
lea edx, [rax + 2]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001c140
cmp dword [0x1400516e0], 2
jl 0x14001c140
and dword [rsp + 0x80], edi
lea r9, [rsp + 0x80]
and qword [rsp + 0x20], rdi
lea rdx, str.ERROR:_Out_of_memory._r_n
mov r8d, 0x17
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x8007000e
jmp 0x14001c1f4
mov eax, dword [0x140050320]
cmp eax, 0xff
jne 0x14001c162
call fcn.140017910
mov dword [0x140050320], eax
test eax, eax
je 0x14001c1d3
mov r9, r14
mov dword [rsp + 0x20], eax
lea r8, str._s_NT_lu
mov rdx, rbx
mov rcx, rsi
call fcn.140001734
mov r9, r15
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.14001bc4c
mov edi, eax
test eax, eax
js 0x14001c19d
mov ebp, 1
jmp 0x14001c1d3
mov r9, r14
lea r8, str._s_NT
mov rdx, rbx
mov rcx, rsi
call fcn.140001734
mov r9, r15
mov r8, r12
mov rdx, rsi
mov rcx, r13
call fcn.14001bc4c
mov edi, eax
mov eax, ebp
mov ebp, 1
test edi, edi
cmovns eax, ebp
mov ebp, eax
mov rcx, rsi
call fcn.14003c408
test ebp, ebp
jne 0x14001c1f2
mov r9, r15
mov r8, r12
mov rdx, r14
mov rcx, r13
call fcn.14001bc4c
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001c218
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], r9d
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov dword [rbp - 0x10], 1
mov r12, r8
mov rsi, rdx
mov r13, rcx
mov ebx, r15d
mov r14d, r15d
mov dword [rbp + 0x48], r15d
cmp dword [rbp + 0x50], r15d
je 0x14001c3b3
or rcx, 0xffffffffffffffff
mov rdi, rcx
inc rdi
cmp word [rdx + rdi*2], r15w
jne 0x14001c269
add rdi, 0x15
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.14003c460
mov r15, rax
test rax, rax
jne 0x14001c2e7
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001c2b5
lea edx, [rax + 2]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001c2dd
cmp dword [0x1400516e0], 2
jl 0x14001c2dd
and dword [rbp + 0x50], ebx
lea r9, [rbp + 0x50]
and qword [rsp + 0x20], rbx
lea rdx, str.ERROR:_Out_of_memory._r_n
mov r8d, 0x17
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x8007000e
jmp 0x14001c417
mov eax, dword [0x14005031c]
cmp eax, 0xff
jne 0x14001c2ff
call fcn.140017910
mov dword [0x14005031c], eax
test eax, eax
je 0x14001c3a3
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str._s_NT_lu
mov rdx, rdi
mov rcx, r15
call fcn.140001734
lea rax, [rbp + 0x48]
mov ebx, 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov dword [rbp + 0x48], ebx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c35b
cmp dword [rbp - 0x10], 1
jne 0x14001c35b
xor ebx, ebx
lea r14d, [rbx + 1]
jmp 0x14001c3a3
mov r9, rsi
lea r8, str._s_NT
mov rdx, rdi
mov rcx, r15
call fcn.140001734
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], ebx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c39e
cmp dword [rbp - 0x10], 1
je 0x14001c353
mov ebx, 0x80004005
mov rcx, r15
call fcn.14003c408
xor r15d, r15d
test r14d, r14d
jne 0x14001c3ef
lea rax, [rbp + 0x48]
mov dword [rbp + 0x48], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001c3ea
cmp dword [rbp - 0x10], 1
jne 0x14001c3ea
mov ebx, r15d
jmp 0x14001c3f3
mov ebx, 0x80004005
test ebx, ebx
js 0x14001c415
test rsi, rsi
lea r9, [0x140042350]
mov r8, r12
lea rdx, str.Reg_Parser:_Obtained_value__S_for_attribute__S._r_n
cmovne r9, rsi
mov ecx, 4
call fcn.1400168a8
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14001c43c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor r12d, r12d
mov rsi, rdx
cmp dword [rcx + 4], 3
mov r15d, r12d
jne 0x14001c63e
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x14001c63e
mov rcx, rdi
call fcn.140017488
test eax, eax
je 0x14001c63e
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x14001c4a5
inc rbx
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.14003c460
mov r14, rax
test rax, rax
je 0x14001c63e
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call fcn.140001470
lea rdx, [0x140043808]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsstr]
mov rbx, rax
test rax, rax
je 0x14001c636
mov rdx, 0xffffffff80000002
mov word [rax], r12w
mov rcx, r14
call fcn.14001a950
add rbx, 2
lea rdx, [0x140043808]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x14001c52f
mov word [rax], r12w
test rbx, rbx
je 0x14001c636
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], r12w
jne 0x14001c53c
test rax, rax
je 0x14001c636
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001c636
mov edi, 0x104
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x48], edi
mov ebx, r12d
mov dword [rsp + 0x40], edi
xor edx, edx
jmp 0x14001c5e9
inc ebx
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], 0x208
cmp r12w, word [rsp + 0x60]
je 0x14001c5e7
cmp r12w, word [rbp + 0x170]
je 0x14001c5e7
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14001c5da
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14001c5cb
test rax, rax
je 0x14001c5e7
mov r15d, 1
test rsi, rsi
je 0x14001c62b
inc dword [rsi]
mov edx, ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14001c597
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.14003c408
mov eax, r15d
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14001e018
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov esi, edx
mov rbx, rcx
cmp dword [rcx + 0x7c], ebp
je 0x14001e12e
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14001e12e
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x14001e062
cmp rax, 6
jbe 0x14001e12e
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r8, qword [rbx + 0x30]
lea rdx, str.Package_clean_up:_Cleaning_up_files_at__S._r_n
mov ecx, 4
mov dword [rsp + 0x20], 1
mov rdi, rax
call fcn.1400168a8
test rdi, rdi
je 0x14001e0a8
mov word [rdi], bp
mov edi, 0x104
lea rdx, [rsp + 0x240]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001e12e
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, qword [rbx + 0x30]
lea rcx, [rsp + 0x30]
mov edx, edi
call fcn.140001470
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x14001e0f8
mov word [rax + 2], bp
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14001e123
mov rcx, qword [rbx + 0x30]
lea rdx, [rsp + 0x20]
call fcn.140018da8
mov rcx, qword [rbx + 0x30]
jmp 0x14001e128
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [rbx + 0x80], ebp
je 0x14001e149
test esi, esi
je 0x14001e149
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14001e149
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [rbx + 0x84], ebp
je 0x14001e16d
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x14001e16d
call fcn.1400173dc
test eax, eax
je 0x14001e16d
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001e19c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [rcx + 8]
xor r14d, r14d
mov rdi, rcx
test rax, rax
je 0x14001e2f3
mov rcx, qword [rcx + 0xc0]
test rcx, rcx
je 0x14001e2f3
mov rdx, qword [rcx + 0x78]
test rdx, rdx
je 0x14001e2a4
mov rsi, qword [rdx + 0x30]
test rsi, rsi
je 0x14001e2a4
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001e201
call fcn.14003c408
mov rax, qword [rdi + 8]
mov qword [rdi + 0x10], r14
or rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x14001e208
mov rax, rbx
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14001e215
lea rbp, [rax + 2]
mov eax, 2
add rbp, rcx
mul rbp
cmovo rax, rbx
mov rcx, rax
call fcn.14003c460
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14001e24d
mov eax, 0x8007000e
jmp 0x14001e2f8
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.140001470
mov rcx, qword [rdi + 0x10]
mov r9, rcx
test rcx, rcx
je 0x14001e291
inc rbx
cmp word [rcx + rbx*2], r14w
jne 0x14001e267
test rbx, rbx
je 0x14001e291
movsxd rax, ebp
cmp rbx, rax
jae 0x14001e291
mov eax, 0x2f
cmp word [rcx + rbx*2 - 2], ax
je 0x14001e291
mov dword [rcx + rbx*2], eax
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
mov rdx, rbp
mov rcx, r9
call fcn.140001584
xor eax, eax
jmp 0x14001e2f8
mov rcx, qword [0x140050310]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
jne 0x14001e2c8
lea edx, [rbx + 4]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, rbx
je 0x14001e2f3
cmp dword [0x1400516e0], 3
jl 0x14001e2f3
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], r14d
mov r8d, 0x48
mov qword [rsp + 0x20], r14
lea rdx, str.WARNING:_Base_URL_is_not_set.__All_packages_must_be_available_locally._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x80004005
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14001e314
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
add rcx, 8
call fcn.140016d18
xor ebp, ebp
mov edi, eax
test eax, eax
js 0x14001e4ac
mov rcx, rbx
call fcn.14001e19c
cmp qword [rbx + 0xc0], rbp
je 0x14001e4ac
mov r14d, 0x104
lea rdx, [rsp + 0x50]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001e4ac
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0x50]
mov edx, r14d
call fcn.140001584
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e4ac
test al, 0x10
jne 0x14001e4ac
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or r14, 0xffffffffffffffff
mov rsi, rax
cmp rax, r14
je 0x14001e4ac
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x14001e4a3
mov ecx, dword [rsp + 0x40]
shl rcx, 0x20
mov eax, eax
or rcx, rax
cmp rcx, qword [rbx + 0xa8]
jne 0x14001e4a3
add rbx, 0x38
je 0x14001e49e
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e43f
call fcn.14003c408
mov qword [rbx], rbp
lea rax, [rsp + 0x50]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], bp
jne 0x14001e447
inc rdi
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.14003c460
mov qword [rbx], rax
test rax, rax
jne 0x14001e476
mov edi, 0x8007000e
jmp 0x14001e4a3
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rax
call fcn.140001470
mov edi, eax
test eax, eax
jns 0x14001e4a3
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e4a3
call fcn.14003c408
mov qword [rbx], rbp
jmp 0x14001e4a3
mov edi, 0x80004003
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001e8fc
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xa0], 0
mov esi, edx
mov rbx, rcx
jne 0x14001ea28
mov ecx, dword [rcx + 0x58]
cmp ecx, 1
je 0x14001e9b1
lea eax, [rcx - 2]
cmp eax, 2
jbe 0x14001e93b
cmp ecx, 6
jne 0x14001ea28
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e959
mov rdx, qword [rbx + 0x28]
call fcn.140034a0c
mov qword [rbx + 0xa0], rax
jmp 0x14001ea28
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001e97f
lea edx, [rcx + 3]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001ea28
cmp dword [0x1400516e0], 2
jl 0x14001ea28
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
lea rdx, str._FAILURE:_Attempted_to_get_INF_size_for_unknown_INF._r_n
mov r8d, 0x36
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14001ea28
mov rcx, qword [rbx + 0x30]
and dword [rsp + 0x58], 0
call fcn.140017488
test eax, eax
je 0x14001ea28
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbx + 0x30]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001ea28
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x14001ea1f
mov edx, dword [rsp + 0x58]
shl rdx, 0x20
mov ecx, eax
or rdx, rcx
mov qword [rbx + 0xa0], rdx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x88], 0
jne 0x14001ea9e
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ea9e
call fcn.140017488
test eax, eax
jne 0x14001ea9e
mov rcx, qword [rbx + 0x38]
call fcn.140017488
test eax, eax
jne 0x14001ea9e
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x14001ea72
lea edx, [rax + 4]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x14001ea9e
cmp dword [0x1400516e0], 4
jl 0x14001ea9e
and dword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
lea rdx, str.Warning:_Need_to_account_for_cabinet_download_and_extraction_size._r_n
mov r8d, 0x44
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 0xa0]
test esi, esi
jne 0x14001eab0
add rax, qword [rbx + 0xb0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400205dc
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [rcx + 0x260], 0
mov rdi, rcx
jne 0x1400206b1
mov ecx, 0x208
call fcn.14003c460
mov rbx, rax
test rax, rax
jne 0x140020628
mov eax, 0x80004005
jmp 0x1400206b3
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14002069a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
lea r9, [rsp + 0x30]
mov ecx, r8d
mov eax, 0x4f8b588f
mul r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, 0x104
shr ecx, 0x10
imul ecx, ecx, 0x186a0
sub r8d, ecx
mov rcx, rbx
mov dword [rsp + 0x20], r8d
lea r8, str._stmp_05d.WMC_
call fcn.1400017b4
test eax, eax
js 0x14002069a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002069a
mov qword [rdi + 0x260], rbx
cmp qword [rdi + 0x260], 0
jne 0x1400206b1
mov rcx, rbx
call fcn.14003c408
jmp 0x14002061e
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c810
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140022d9c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x140022dc9
mov eax, 0x80004003
jmp 0x140022ea2
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140022deb
lea edx, [rcx + 5]
call fcn.140016188
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140022e17
cmp dword [0x1400516e0], 4
jl 0x140022e17
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.Downloading_new_UDB_file._r_n
mov r8d, AtlInternalQueryInterface
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x200
call fcn.14003c460
mov rdi, rax
test rax, rax
jne 0x140022e30
mov ebx, 0x8007000e
jmp 0x140022ea0
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.14001b58c
mov ebx, eax
test eax, eax
js 0x140022e98
lea r8, str.will
mov ecx, 4
lea rdx, str.__GetUpdatedUDB:_We__hs_force_a_connection._r_n
call fcn.1400168a8
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
call fcn.140021f58
mov rcx, rsi
mov ebx, eax
call fcn.140017488
test eax, eax
je 0x140022e7a
test ebx, ebx
jns 0x140022e98
mov r8d, ebx
lea rdx, str.ERROR:_UDB_file_not_downloaded.__Result:_0x_x._r_n
mov ecx, 4
call fcn.1400168a8
test ebx, ebx
mov eax, 0x80070002
cmovns ebx, eax
mov rcx, rdi
call fcn.14003c408
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret