joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140162a50
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x70]
call fcn.1400f4cc0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x24], 0x43
jmp 0x140162a88
movzx eax, byte [rsp + 0x24]
add al, 1
mov byte [rsp + 0x24], al
movsx eax, byte [rsp + 0x24]
cmp eax, 0x5a
jg 0x140162b8c
movsx ecx, byte [rsp + 0x24]
sub ecx, 0x41
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [rsp + 0x20]
and eax, ecx
test eax, eax
jne 0x140162ab3
jmp 0x140162a7d
lea rcx, [rsp + 0x28]
call fcn.140002db0
nop
movsx r8d, byte [rsp + 0x24]
lea rdx, [0x140239350]
lea rcx, [rsp + 0x28]
call fcn.140002c40
lea r8, [0x1402388a4]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1400010b0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140162b11
mov dword [rsp + 0x50], 1
jmp 0x140162b19
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x38]
call fcn.140001490
movzx r11d, byte [rsp + 0x30]
test r11d, r11d
je 0x140162b46
lea rcx, [rsp + 0x28]
call fcn.140001490
jmp 0x140162a7d
lea rcx, [rsp + 0x28]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x140162b7d
lea rcx, [rsp + 0x28]
call fcn.140023510
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
mov rdx, rax
call fcn.140016df0
nop
lea rcx, [rsp + 0x28]
call fcn.140001490
jmp 0x140162a7d
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
call fcn.140016e20
test eax, eax
je 0x140162bb4
mov rcx, qword [rsp + 0x70]
add rcx, 0x210
xor edx, edx
call fcn.140016910
mov eax, 1
add rsp, 0x68
ret
Function at 0x140165560
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4b0
mov qword [rsp + 0x498], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
call fcn.14000edf0
lea r8, [0x140239680]
mov rdx, qword [rsp + 0x4c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x480], rax
cmp qword [rsp + 0x480], 0
jne 0x1401655c7
xor eax, eax
jmp 0x1401657f8
call fcn.14000edf0
mov rdx, qword [rsp + 0x480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
call fcn.14000edf0
mov rdx, qword [rsp + 0x480]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x250], rax
cmp qword [rsp + 0x250], 0
jne 0x14016561a
xor eax, eax
jmp 0x1401657f8
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140165670
lea r8, [0x140239688]
lea rdx, str._sTemp
lea rcx, [rsp + 0x40]
call fcn.1400a9064
lea rcx, [rsp + 0x40]
call fcn.140004bc0
lea rcx, [rsp + 0x40]
call fcn.1400a8204
movzx eax, word [rsp + rax*2 + 0x3e]
cmp eax, 0x5c
jne 0x140165698
lea rcx, [rsp + 0x40]
call fcn.1400a8204
mov rdx, rax
xor eax, eax
mov word [rsp + rdx*2 + 0x3e], ax
lea rcx, [rsp + 0x30]
call fcn.140002db0
nop
lea r8, [rsp + 0x40]
lea rdx, str._sexpand_resource.zip
lea rcx, [rsp + 0x30]
call fcn.140002c40
lea rcx, [rsp + 0x30]
call fcn.140023510
lea rdx, [0x1402396d0]
mov rcx, rax
call fcn.1400a9d60
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140165700
mov dword [rsp + 0x488], 0
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x488]
jmp 0x1401657f8
mov edx, dword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rsp + 0x250]
call fcn.1400ac454
mov rcx, qword [rsp + 0x28]
call fcn.1400aa000
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.140183a10
nop
lea rcx, [rsp + 0x30]
call fcn.140023510
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.1401837c0
movzx eax, al
test eax, eax
je 0x1401657bb
xor r8d, r8d
mov rdx, qword [rsp + 0x4c8]
lea rcx, [rsp + 0x260]
call fcn.140183960
lea rcx, [rsp + 0x260]
call fcn.140182890
lea rcx, [rsp + 0x30]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x48c], 1
lea rcx, [rsp + 0x260]
call fcn.140182900
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x48c]
jmp 0x1401657f8
lea rcx, [rsp + 0x30]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsp + 0x490], 0
lea rcx, [rsp + 0x260]
call fcn.140182900
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
mov eax, dword [rsp + 0x490]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x4b0
pop rdi
ret
Function at 0x14016c790
Capabilities:
Manipulate boot configuration

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xd0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov edx, 1
mov rcx, qword [rsp + 0xe0]
call fcn.14007bfac
lea rcx, [rsp + 0x20]
call fcn.140001000
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea r8, [0x14023a570]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.1400010b0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140023510
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x210
call fcn.140023510
mov r9, rbx
mov r8, rax
lea rdx, [0x14023a588]
lea rcx, [0x14023a5a0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x28]
call fcn.140001490
nop
lea rcx, [rsp + 0x20]
call fcn.140001490
lea rcx, [rsp + 0x30]
call fcn.140001000
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
lea r8, [0x14023a5c0]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.1400010b0
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140023510
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x218
call fcn.140023510
mov r9, rbx
mov r8, rax
lea rdx, [0x14023a5d8]
lea rcx, [0x14023a5f0]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x38]
call fcn.140001490
nop
lea rcx, [rsp + 0x30]
call fcn.140001490
lea rcx, [rsp + 0x40]
call fcn.140001000
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea r8, [0x14023a610]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1400010b0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140023510
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x220
call fcn.140023510
mov r9, rbx
mov r8, rax
lea rdx, [0x14023a628]
lea rcx, [0x14023a640]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x48]
call fcn.140001490
nop
lea rcx, [rsp + 0x40]
call fcn.140001490
lea rcx, [rsp + 0x50]
call fcn.140001000
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
lea r8, [0x14023a660]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call fcn.1400010b0
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140023510
mov rbx, rax
mov rcx, qword [rsp + 0xe0]
add rcx, 0x228
call fcn.140023510
mov r9, rbx
mov r8, rax
lea rdx, str.Write_RGB
lea rcx, [0x14023a690]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x58]
call fcn.140001490
nop
lea rcx, [rsp + 0x50]
call fcn.140001490
mov rcx, qword [rsp + 0xe0]
call fcn.14008112c
add rsp, 0xd0
pop rbx
ret
Function at 0x14016dd00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.14007bfac
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x40]
lea r8, [0x14016d700]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret

Function at 0x14016e070
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.1400f4cc0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x28], 0
je 0x14016e1a1
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x14016e1a1
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
and eax, 0xffffff
or eax, 0x1000000
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140010530
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.1400105c0
mov rcx, qword [rsp + 0x60]
add rcx, 0x220
mov r8, rax
mov edx, dword [rsp + 0x20]
call fcn.140016940
lea rcx, [rsp + 0x30]
call fcn.140002e70
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
and eax, 0xffffff
or eax, 0xff000000
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140010530
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.1400105c0
mov rcx, qword [rsp + 0x60]
add rcx, 0x2c8
mov r8, rax
mov edx, dword [rsp + 0x20]
call fcn.140016940
lea rcx, [rsp + 0x38]
call fcn.140002e70
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x14016e098
cmp dword [rsp + 0x20], 0
jle 0x14016e1ce
mov rcx, qword [rsp + 0x60]
add rcx, 0x220
xor edx, edx
call fcn.140016910
mov rcx, qword [rsp + 0x60]
add rcx, 0x2c8
xor edx, edx
call fcn.140016910
mov eax, 1
add rsp, 0x58
ret
Function at 0x140170960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x24], 0
mov dword [rsp + 0x20], 0xffffffff
mov rcx, qword [rsp + 0x40]
call fcn.140023510
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1401709a4
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x1401709a4
mov byte [rsp + 0x24], 1
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x25], al
mov rcx, qword [rsp + 0x40]
call fcn.140001490
mov al, byte [rsp + 0x25]
add rsp, 0x38
ret
Function at 0x14017e450
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x14017e495
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x170]
call fcn.1400aa000
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x170], 0
mov rcx, qword [rsp + 0x90]
add rcx, 0x168
call fcn.140006e20
movzx eax, al
test eax, eax
jne 0x14017e545
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x90]
add rcx, 0x168
call fcn.140023510
mov rcx, qword [rsp + 0x90]
add rcx, 0x170
lea r8, [0x14023c824]
mov rdx, rax
call fcn.1400a9d6c
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x14017e53b
cmp dword [rsp + 0x24], 0
jne 0x14017e53b
mov eax, 0xfeff
mov word [rsp + 0x28], ax
mov r9, qword [rsp + 0x90]
mov r9, qword [r9 + 0x170]
mov r8d, 1
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.1400ac454
jmp 0x14017e545
mov eax, 0x22
jmp 0x14017e676
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x98], 1
jne 0x14017e5a0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x90]
add rdx, 0x90
mov rcx, qword [rsp + 0x38]
call fcn.140001430
mov qword [rsp + 0x60], rax
lea r8, [fcn.14017b3c0]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.140177ec0
mov dword [rsp + 0x20], eax
jmp 0x14017e639
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x98], 4
jne 0x14017e5f8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x90]
add rdx, 0x90
mov rcx, qword [rsp + 0x48]
call fcn.140001430
mov qword [rsp + 0x68], rax
lea r8, [fcn.14017b3c0]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x90]
call fcn.140177a30
mov dword [rsp + 0x20], eax
jmp 0x14017e639
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x90]
add rdx, 0x90
mov rcx, qword [rsp + 0x58]
call fcn.140001430
mov qword [rsp + 0x70], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x90]
call fcn.14017b3c0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0x170], 0
je 0x14017e672
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x170]
call fcn.1400aa000
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x170], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x1401826b0
Capabilities:
Timestomp file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140182706
xor al, al
jmp 0x140182826
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
jne 0x14018272f
mov dword [rsp + 0x78], 1
jmp 0x140182737
mov dword [rsp + 0x78], 0
movzx eax, byte [rsp + 0x78]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140182789
mov eax, dword [rsp + 0xa8]
shr eax, 0x10
lea r8, [rsp + 0x40]
movzx edx, word [rsp + 0xa8]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
jne 0x140182778
mov dword [rsp + 0x7c], 1
jmp 0x140182780
mov dword [rsp + 0x7c], 0
movzx eax, byte [rsp + 0x7c]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x1401827cb
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
jne 0x1401827b4
mov dword [rsp + 0x80], 1
jmp 0x1401827bf
mov dword [rsp + 0x80], 0
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x50], al
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140182817
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
jne 0x140182800
mov dword [rsp + 0x84], 1
jmp 0x14018280b
mov dword [rsp + 0x84], 0
movzx eax, byte [rsp + 0x84]
mov byte [rsp + 0x50], al
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [rsp + 0x50]
add rsp, 0x98
ret

Function at 0x140182930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
mov rcx, qword [rsp + 0x2b8]
call fcn.1400a8080
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x288], eax
cmp dword [rsp + 0x288], 0xffffffff
jne 0x140182990
xor al, al
jmp 0x140182a03
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x280], rax
cmp qword [rsp + 0x280], 0xffffffffffffffff
jne 0x1401829ba
xor al, al
jmp 0x140182a03
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r11, qword [rsp + 0x44]
mov qword [rsp + 0x20], r11
movzx eax, byte [rsp + 0x2c0]
test eax, eax
je 0x1401829ee
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov rdx, qword [rsp + 0x2b8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x2a8
ret
Function at 0x140182b40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x50], 0
je 0x140182b60
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140182b67
xor al, al
jmp 0x140182c15
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x140182ba1
mov eax, dword [rsp + 0x30]
and eax, 0x10
cmp eax, 0x10
jne 0x140182b93
mov dword [rsp + 0x34], 1
jmp 0x140182b9b
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x140182c15
mov rcx, qword [rsp + 0x50]
call fcn.1400abd5c
mov qword [rsp + 0x28], rax
mov dx, VarDateFromDisp
mov rcx, qword [rsp + 0x28]
call fcn.140001460
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140182c13
xor ecx, ecx
mov rax, qword [rsp + 0x20]
mov word [rax], cx
mov rcx, qword [rsp + 0x28]
call fcn.140182b40
movzx eax, al
test eax, eax
jne 0x140182bf4
mov rcx, qword [rsp + 0x28]
call fcn.1400a8720
xor al, al
jmp 0x140182c15
mov rcx, qword [rsp + 0x28]
call fcn.1400a8720
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140182c13
xor al, al
jmp 0x140182c15
mov al, 1
add rsp, 0x48
ret
Function at 0x140183a60
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov qword [rsp + 0x280], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rcx, qword [rsp + 0x2b0]
call fcn.140183250
cmp qword [rsp + 0x2b8], 0
je 0x140183ac3
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x140183aca
xor al, al
jmp 0x140183cae
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0x104
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x140183af0
xor al, al
jmp 0x140183cae
movzx eax, byte [rsp + 0x2c8]
test eax, eax
je 0x140183b14
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140183b14
mov byte [rsp + 0x2c8], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call fcn.140183320
nop
movzx eax, byte [rsp + 0x2c8]
test eax, eax
je 0x140183b40
mov dword [rsp + 0x288], 1
jmp 0x140183b4b
mov dword [rsp + 0x288], 0
lea rcx, [rsp + 0x250]
call fcn.14000d0b0
mov edx, dword [rsp + 0x288]
mov rcx, rax
call fcn.14005e000
mov r11, rax
mov rax, qword [rsp + 0x2b0]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x2b0]
cmp qword [rax + 8], 0
je 0x140183c64
cmp qword [rsp + 0x2c0], 0
jne 0x140183bb0
mov rdx, qword [rsp + 0x2b0]
add rdx, 0x10
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x140183c64
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140183c64
mov rax, qword [rsp + 0x2c0]
movzx eax, word [rax + 2]
cmp eax, 0x3a
je 0x140183c39
mov rdx, qword [rsp + 0x2b0]
add rdx, 0x10
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, qword [rsp + 0x2b0]
add rcx, 0x10
lea rdx, [0x14023ee44]
call fcn.1400a9444
mov rcx, qword [rsp + 0x2b0]
add rcx, 0x10
mov rdx, qword [rsp + 0x2c0]
call fcn.1400a9444
mov rcx, qword [rsp + 0x2b0]
add rcx, 0x10
lea rdx, [0x14023ee74]
call fcn.1400a9444
jmp 0x140183c64
mov rcx, qword [rsp + 0x2b0]
add rcx, 0x10
mov qword [rsp + 0x20], 0
lea r9, [0x14023eeb4]
mov r8, qword [rsp + 0x2c0]
xor edx, edx
call fcn.1400ab9fc
mov rax, qword [rsp + 0x2b0]
cmp qword [rax + 8], 0
je 0x140183c80
mov dword [rsp + 0x28c], 1
jmp 0x140183c8b
mov dword [rsp + 0x28c], 0
movzx eax, byte [rsp + 0x28c]
mov byte [rsp + 0x278], al
lea rcx, [rsp + 0x250]
call fcn.14000dac0
mov al, byte [rsp + 0x278]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x2a8
ret
Function at 0x140184650
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x290
mov qword [rsp + 0x260], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x288], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1400020d0
nop
mov r8w, 0x2f
mov dx, VarDateFromDisp
lea rcx, [rsp + 0x20]
call fcn.140006200
mov dx, 0x2f
lea rcx, [rsp + 0x20]
call fcn.1400068a0
mov dword [rsp + 0x240], eax
cmp dword [rsp + 0x240], 0
jg 0x14018470e
lea rdx, [0x14023eef4]
mov rcx, qword [rsp + 0x2a8]
call fcn.1400020a0
jmp 0x1401847bc
mov r9d, dword [rsp + 0x240]
xor r8d, r8d
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x20]
call fcn.140002270
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x270], rax
mov rdx, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x2a8]
call fcn.140002d80
nop
lea rcx, [rsp + 0x250]
call fcn.140001490
mov r8d, dword [rsp + 0x240]
add r8d, 1
lea rdx, [rsp + 0x258]
lea rcx, [rsp + 0x20]
call fcn.140006a00
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x280], rax
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x20]
call fcn.140002d80
nop
lea rcx, [rsp + 0x258]
call fcn.140001490
mov dword [rsp + 0x240], 0
lea r9, [rsp + 0x240]
lea r8, [0x14023ef3c]
lea rdx, [rsp + 0x248]
lea rcx, [rsp + 0x20]
call fcn.1400065a0
nop
lea rdx, [0x14023f014]
lea rcx, [rsp + 0x248]
call fcn.140006d50
movzx eax, al
test eax, eax
je 0x140184813
lea rcx, [rsp + 0x248]
call fcn.140001490
jmp 0x140184840
lea rcx, [rsp + 0x248]
call fcn.140012630
mov rdx, rax
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d5c4
nop
lea rcx, [rsp + 0x248]
call fcn.140001490
jmp 0x1401847c7
mov rcx, qword [rsp + 0x2b0]
call fcn.1400521b0
test rax, rax
jne 0x140184867
lea rdx, [0x14023f968]
mov rcx, qword [rsp + 0x2b0]
call fcn.14008d70c
nop
lea rcx, [rsp + 0x20]
call fcn.140001490
mov rcx, qword [rsp + 0x288]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x290
pop rdi
ret
Function at 0x140185a70
Capabilities:
Manipulate boot configuration
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x120], 0
lea rcx, [rsp + 0x118]
call fcn.140001000
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
lea r8, [0x140241c20]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x110]
call fcn.1400010b0
nop
lea rcx, [rsp + 0x118]
call fcn.140001490
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0xc6
rep stosb byte [rdi], al
lea rcx, [rsp + 0x110]
call fcn.140023510
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [rsp + 0x40]
lea r8, [0x14023fd84]
lea rdx, [0x140241c38]
lea rcx, [0x140241c48]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x160]
call fcn.1400020d0
mov eax, dword [rsp + 0x120]
or eax, 1
mov dword [rsp + 0x120], eax
lea rcx, [rsp + 0x110]
call fcn.140001490
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x150
pop rdi
ret

Function at 0x140185ba0
Capabilities:
Manipulate boot configuration
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x120], 0
lea rcx, [rsp + 0x118]
call fcn.140001000
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x138], rax
lea r8, [0x140241be8]
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x110]
call fcn.1400010b0
nop
lea rcx, [rsp + 0x118]
call fcn.140001490
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0xc6
rep stosb byte [rdi], al
lea rcx, [rsp + 0x110]
call fcn.140023510
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [rsp + 0x40]
lea r8, [0x14023fcd4]
lea rdx, [0x140241c00]
lea rcx, [0x140241c10]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x160]
call fcn.1400020d0
mov eax, dword [rsp + 0x120]
or eax, 1
mov dword [rsp + 0x120], eax
lea rcx, [rsp + 0x110]
call fcn.140001490
mov rax, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x150
pop rdi
ret