joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cbd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r12, rdx
mov rbp, rcx
mov r8d, 0x32f54a96
xor r9d, r9d
mov r10d, dword [rdx + 8]
test r10d, r10d
je 0x14000cc3c
mov rdx, qword [rdx]
movzx ecx, word [rdx]
imul ecx, ecx, 0xc5
mov eax, r8d
imul eax, eax, 0x34c3
add ecx, eax
mov eax, r8d
shr eax, 2
mov r8d, ecx
xor r8d, eax
inc r9d
add rdx, 2
cmp r9d, r10d
jb 0x14000cc10
and r8d, 0x3fffffff
mov ecx, dword [rbp + 8]
mov r15d, 1
mov r13d, r15d
shl r13d, cl
dec r13d
mov edi, r13d
and edi, r8d
mov r14d, edi
mov esi, r15d
mov rdx, r12
lea rcx, [rsp + 0x28]
call fcn.140013440
mov rbx, rax
mov qword [rsp + 0x80], rax
mov edx, edi
shl rdx, 5
mov r8, qword [rbp]
mov ecx, dword [rdx + r8]
mov eax, ecx
and eax, 1
jne 0x14000cc93
test cl, 2
je 0x14000ccbe
test eax, eax
je 0x14000cca8
lea rdx, [rdx + r8 + 8]
mov rcx, rbx
call fcn.140012e90
test al, al
jne 0x14000ccc8
mov rcx, rbx
call fcn.140013000
add edi, esi
and edi, r13d
inc esi
cmp edi, r14d
je 0x14000cce8
jmp 0x14000cc61
mov rcx, rbx
call fcn.140013000
jmp 0x14000ccd3
mov rcx, rbx
call fcn.140013000
xor r15d, r15d
or ebx, 0xffffffff
test r15d, r15d
cmove ebx, edi
mov rcx, r12
call fcn.140013000
mov eax, ebx
jmp 0x14000cd0f
mov ecx, dword [rbp + 0x10]
lea eax, [rcx + 1]
mov dword [rbp + 0x10], eax
cmp ecx, 4
jbe 0x14000cd05
mov rcx, rbp
call fcn.14000f4b0
mov dword [rbp + 0x10], 0
mov rcx, r12
call fcn.140013000
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e9e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rbp
mov r13, r9
movzx r14d, r8b
mov rsi, rdx
mov rbp, rcx
mov r10d, dword [rdx + 8]
test r10d, r10d
je 0x14000eb69
mov rax, qword [rdx]
cmp word [rax], 0
je 0x14000eb69
xor edi, edi
mov edx, edi
test r10d, r10d
je 0x14000ea50
cmp word [rax], 0x2c
je 0x14000ea46
inc edx
add rax, 2
cmp edx, r10d
jb 0x14000ea33
jmp 0x14000ea50
mov eax, 0x11
jmp 0x14000eb6e
mov rdx, rsi
add rcx, 0x48
call fcn.14000a3e0
test rax, rax
je 0x14000ea6b
mov eax, 8
jmp 0x14000eb6e
mov ebx, 0x32f54a96
mov r8d, edi
mov r9d, dword [rsi + 8]
test r9d, r9d
je 0x14000eaa8
mov rdx, qword [rsi]
nop
movzx ecx, word [rdx]
imul ecx, ecx, 0xc5
mov eax, ebx
imul eax, eax, 0x34c3
add ecx, eax
mov eax, ebx
shr eax, 2
mov ebx, ecx
xor ebx, eax
inc r8d
add rdx, 2
cmp r8d, r9d
jb 0x14000ea80
mov dword [rsp + 0x78], ebx
mov rdx, qword [rbp]
mov rax, rdx
test rdx, rdx
je 0x14000eafc
mov ecx, dword [rax + 8]
cmp ebx, ecx
je 0x14000ead2
jae 0x14000eac7
mov rax, qword [rax + 0x18]
jmp 0x14000eacb
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14000eab8
jmp 0x14000eafc
inc ebx
mov rax, rdx
test rdx, rdx
je 0x14000eaf8
nop dword [rax]
mov ecx, dword [rax + 8]
cmp ebx, ecx
je 0x14000ead2
jae 0x14000eaef
mov rax, qword [rax + 0x18]
jmp 0x14000eaf3
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x14000eae0
mov dword [rsp + 0x78], ebx
mov ecx, 0x70
call fcn.140017018
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000eb2a
mov qword [rsp + 0x20], rbp
movzx r9d, r14b
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call fcn.14000e190
mov rdi, rax
mov qword [rsp + 0x30], rdi
test rdi, rdi
jne 0x14000eb39
lea eax, [rdi + 6]
jmp 0x14000eb6e
mov r8, rsi
lea rdx, [rsp + 0x78]
lea rcx, [rbp + 0x48]
call fcn.14000dab0
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.14000d660
test r13, r13
je 0x14000eb65
mov qword [r13], rdi
xor eax, eax
jmp 0x14000eb6e
mov eax, 9
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140013f10
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rcx, qword [0x140036bc0]
lea rdx, str.Entering__SetLDDMRegistry__function....._n
call fcn.140015980
mov rcx, qword [0x140036bc0]
call fcn.140015430
mov ecx, 0x105
xor ebp, ebp
mov eax, 2
mov rdi, 0xffffffffffffffff
mov ebx, 1
mov qword [rsp + 0x78], rbp
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.140017018
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
mov rsi, rax
call fcn.140015ef0
mov rcx, qword [0x140036bc0]
lea rdx, str.Querying_the_OS_for_the_ALLUSERSPROFILE__n
call fcn.140015980
lea r9, [rsp + 0x70]
lea rcx, [0x14002e258]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x70], rbp
call sub.SHELL32.dll_SHGetKnownFolderPath
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x140013fca
mov edx, 0x20a
mov rcx, rsi
call fcn.140017b14
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140036bc0]
lea rdx, str.ALLUSERSPROFILE_obtained_as___s__n
mov r8, rsi
call fcn.140015980
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [0x140036bc0]
cmp eax, 0xffffffff
jne 0x140014008
lea rdx, str.WARNING:_ALLUSERSPROFILE_is_not_a_valid_System_path__n
mov ebx, ebp
call fcn.140015980
jmp 0x1400140d9
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
lea rdx, str.Creating_Opening_the_reg_path___s__n
call fcn.140015980
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [0x140036bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
test eax, eax
jne 0x1400140cb
lea rdx, str.Setting_NVDRS_PATH_key_on___s__n
call fcn.140015980
xor eax, eax
mov rcx, rdi
mov rdi, rsi
lea rdx, str.NVDRS_PATH
mov r9d, ebx
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400140be
mov rcx, qword [0x140036bc0]
lea rdx, str.WARNING:_Could_not_set_the_registry_entry_for_NVDRS_PATH__n
mov ebx, ebp
call fcn.140015980
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400140d9
lea rdx, str.WARNING:_Could_not_Create_or_Open_the_reg_path___s___n
call fcn.140015980
mov ebx, ebp
mov rcx, rsi
call fcn.140016fa0
mov rcx, qword [0x140036bc0]
call fcn.140015470
mov rcx, qword [0x140036bc0]
lea rdx, str.Exiting__SetLDDMRegistry__function._Return__d_n
mov r8d, ebx
call fcn.140015980
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140014120
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [0x140036bc0]
xor eax, eax
lea r8, str.SOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea rdx, str.Checking_for_ForceUpdate_on____s__n
xor bl, bl
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], eax
call fcn.140015980
lea r11, [rsp + 0x58]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalNVUpdatus
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400141c4
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.ForcePackages
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400141b9
cmp dword [rsp + 0x40], eax
setne bl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rbx
ret
Function at 0x1400143d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov word [rsp + 0x50], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.140015ef0
lea rdx, str.Entering__GetDrsFolder__function....._n
mov rcx, qword [0x140036bc0]
call fcn.140015980
mov rcx, qword [0x140036bc0]
call fcn.140015430
lea r11, [rsp + 0x50]
mov qword [rsp + 0x20], r11
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14001451c
lea rcx, [rsp + 0x30]
call fcn.140012dd0
nop
lea rdx, str._SHGetFolderPath__fn_successfully_retrieved_the__Common_App_data__path__n
mov rcx, qword [0x140036bc0]
call fcn.140015980
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140010c60
test eax, eax
je 0x1400144ab
cmp eax, 1
je 0x1400144ab
mov r8d, eax
lea rdx, str.WARNING:__obtainDrsPath__fn_failed_to_retrieve_the__Drs__path__err:_d__n
mov rcx, qword [0x140036bc0]
call fcn.140015980
jmp 0x140014510
lea rdx, str._obtainDrsPath__fn_successfully_retrieved_the__Drs__path__n
mov rcx, qword [0x140036bc0]
call fcn.140015980
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400130b0
lea rdx, [0x14002c808]
mov rcx, rdi
call fcn.140013330
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140013260
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x1400144f9
lea ebx, [rax + 1]
jmp 0x140014510
mov r8, qword [rdi]
lea rdx, str.WARNING:__s_Path_is_not_absolute___n
mov rcx, qword [0x140036bc0]
call fcn.140015980
nop
lea rcx, [rsp + 0x30]
call fcn.140013000
jmp 0x140014538
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WARNING:__SHGetFolderPath__fn_failed_to_retrieve__Common_App_data__path__error___u__n
mov rcx, qword [0x140036bc0]
call fcn.140015980
mov rcx, qword [0x140036bc0]
call fcn.140015470
mov r8d, ebx
lea rdx, str.Exiting__GetDrsFolder__function.Return__d_n
mov rcx, qword [0x140036bc0]
call fcn.140015980
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400167a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140014a70
Capabilities:
Check if file exists
Get file attributes
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rcx, qword [0x140036bc0]
lea rdx, str.Entering__SetProgramFilesPath__function....._n
call fcn.140015980
mov rcx, qword [0x140036bc0]
call fcn.140015430
mov rcx, qword [0x140036bc0]
lea rdx, str.Setting_the_Gold_Path_as___s__n
xor ebp, ebp
mov r8, rsi
mov ebx, 1
mov qword [rsp + 0x68], rbp
call fcn.140015980
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [0x140036bc0]
cmp eax, 0xffffffff
jne 0x140014aeb
lea rdx, str.WARNING:___Program_Files___is_not_a_valid_System_path__n
mov ebx, ebp
call fcn.140015980
jmp 0x140014bc7
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
lea rdx, str.Creating_Opening_the_reg_path___s__n
call fcn.140015980
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [0x140036bc0]
lea r8, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
test eax, eax
jne 0x140014bb9
lea rdx, str.Setting_NVDRS_GOLD_PATH_key_on___s__n
mov qword [rsp + 0x60], rdi
call fcn.140015980
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea rdx, str.NVDRS_GOLD_PATH
mov r9d, ebx
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x60]
test eax, eax
je 0x140014bac
mov rcx, qword [0x140036bc0]
lea rdx, str.WARNING:_Could_not_set_the_registry_entry_for_NVDRS_GOLD_PATH__n
mov ebx, ebp
call fcn.140015980
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140014bc7
lea rdx, str.WARNING:_Could_not_Create_or_Open_the_reg_path___s___n
call fcn.140015980
mov ebx, ebp
mov rcx, qword [0x140036bc0]
call fcn.140015470
mov rcx, qword [0x140036bc0]
lea rdx, str.Exiting__SetProgramFilesPath__function._Return__d_n
mov r8d, ebx
call fcn.140015980
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
Function at 0x1400154b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
mov rbx, rdx
xor eax, eax
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], ax
call fcn.140015ef0
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140015542
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
cmp eax, 1
jne 0x140015542
lea rax, str.NVInstaller.log
lea r9, [rsp + 0x30]
lea r8, str._sTemp_s
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14001802c
cmp word [rbx], 0
je 0x140015542
mov eax, 1
jmp 0x140015544
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400167a0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x140015980
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x2860
call fcn.1400177a0
sub rsp, rax
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x2840], rax
cmp dword [rcx + 0x18], 0xffffffff
mov rdi, rcx
je 0x140015ae3
mov rcx, qword [rcx + 8]
or edx, 0xffffffff
mov qword [rsp + 0x2850], rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, qword [rsp + 0x2878]
lea r8, [rsp + 0x2880]
lea rcx, [rsp + 0x840]
call fcn.140018020
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rdi + 0x9c]
lea rdx, [0x14002e250]
call fcn.140018564
mov rsi, rax
test rax, rax
je 0x140015ad1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x2858], rbx
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rax, [rsp + 0x40]
lea r9, str.hh:mm:ss_tt
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x800
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
je 0x140015a7c
mov eax, dword [rdi + 0x18]
lea r9, [rdi + 0x1c]
lea r8, [rsp + 0x40]
lea rdx, str._s____s__d___
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.1400183f0
mov rax, qword [rdi]
xor ebx, ebx
cmp dword [rax + 4], ebx
jle 0x140015aa9
nop word [rax + rax]
lea rcx, [0x14002e208]
mov rdx, rsi
call fcn.140018338
mov rax, qword [rdi]
inc ebx
cmp ebx, dword [rax + 4]
jl 0x140015a90
lea rcx, [rsp + 0x840]
mov rdx, rsi
call fcn.140018338
mov rcx, rsi
call fcn.1400182e8
mov rcx, rsi
call fcn.1400180cc
mov rbx, qword [rsp + 0x2858]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rsi, qword [rsp + 0x2850]
mov rcx, qword [rsp + 0x2840]
xor rcx, rsp
call fcn.1400167a0
add rsp, 0x2860
pop rdi
ret
Function at 0x140015b00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x20
mov rcx, rdx
mov rbp, r8
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
je 0x140015b36
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140015b24
mov rcx, rsi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140015c79
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140015b79
cmp eax, 3
je 0x140015b79
cmp eax, 0xb7
jmp 0x140015c88
inc rbp
mov eax, 2
mov rdi, 0xffffffffffffffff
mul rbp
cmovo rax, rdi
mov rcx, rax
call fcn.140017018
mov r12, rax
test rax, rax
je 0x140015c8f
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.140017b14
mov eax, 2
mul rbp
cmovo rax, rdi
mov rcx, rax
call fcn.140017018
mov rdi, rax
test rax, rax
je 0x140015c6f
mov r8, r12
mov rdx, rbp
mov rcx, rax
call fcn.140017b14
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov rdx, rbp
mov rcx, r12
mov r8, rax
call fcn.140017b14
lea rdx, [0x14002c808]
mov rcx, r12
call fcn.140018570
test rax, rax
je 0x140015c4e
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140015c3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140015c4e
lea rdx, [0x14002c808]
xor ecx, ecx
call fcn.140018570
test rax, rax
jne 0x140015c13
mov rdx, rsi
mov rcx, rdi
call fcn.140017a8c
mov ecx, ebx
mov ebx, 1
test eax, eax
cmove ecx, ebx
mov ebx, ecx
mov rcx, rdi
call fcn.140016fa0
mov rcx, r12
call fcn.140016fa0
jmp 0x140015c8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140015c8a
test eax, eax
jne 0x140015c8f
mov ebx, 1
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140015cb0
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x460
mov rax, qword [0x140035460]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x242]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], bp
call fcn.140015ef0
lea rdx, [rsp + 0x240]
mov r8d, 0x104
mov rcx, rdi
call fcn.140015570
test eax, eax
je 0x140015ead
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bp
call fcn.140015ef0
lea r8, [rsp + 0x240]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140017b14
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, [rdi + 0x2a4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 8], rax
test rax, rax
je 0x140015ead
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r11, [rdi + 0x4ac]
lea r8d, [rbp + 4]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor edx, edx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140015dc7
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbp
jmp 0x140015ead
mov qword [rsp + 0x478], rsi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x10]
cmp eax, 0xb7
mov qword [rsp + 0x20], rbp
sete sil
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi], rax
test rax, rax
jne 0x140015e27
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x10], rbp
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rbp
jmp 0x140015ea5
test sil, sil
jne 0x140015e34
mov dword [rax], ebp
mov rax, qword [rdi]
mov dword [rax + 4], ebp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140015e57
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rdi
call fcn.140015b00
lea rcx, [rdi + 0x9c]
lea r8, [rsp + 0x240]
mov edx, 0x104
call fcn.140017b14
mov rcx, rdi
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x1a], ax
test ax, ax
jne 0x140015e80
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov dword [rdi + 0x18], eax
inc dword [rcx]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rsi, qword [rsp + 0x478]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400167a0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001a8a3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140035460]
jne 0x1400167ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400167b6
repz ret
ror rcx, 0x10
jmp 0x14001a7fc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140036ce0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140036dd8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001a881
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140036ce0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001a8a3
mov rax, qword [rsp + 0x88]
mov qword [0x140036dd8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140036d78], rax
mov rax, qword [0x140036dd8]
mov qword [0x140036c50], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140036d60], rax
mov dword [0x140036c40], 0xc0000409
mov dword [0x140036c44], 1
mov rax, qword [0x140035460]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140035468]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140036cd8], eax
mov ecx, 1
call fcn.140021fc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002e798]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140036cd8], 0
jne 0x14001a92a
mov ecx, 1
call fcn.140021fc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400207d0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140020640