joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401349a8
Capabilities:
Enumerate disk volumes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
or rbp, 0xffffffffffffffff
and qword [rsp + 0x30], rbx
xor sil, sil
mov byte [r8], bl
mov r14, r8
mov r15, rcx
test dl, 1
je 0x140134ad8
lea rcx, [rsp + 0x30]
call fcn.1400902d4
mov ebx, eax
test eax, eax
jns 0x140134a2b
mov ecx, 0xc0000452
call fcn.14003bcc4
cmp ebx, eax
je 0x140134a27
mov ecx, 0xc0000451
call fcn.14003bcc4
cmp ebx, eax
je 0x140134a27
mov ecx, 0xc000003a
call fcn.14003bcc4
cmp ebx, eax
jne 0x140134a49
xor ebx, ebx
jmp 0x140134a46
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140134a46
mov sil, 1
mov byte [r14], sil
lea rsi, [0x14017b048]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x140134a76
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
nop dword [rax + rax]
test ebx, ebx
jns 0x140134aae
mov rcx, qword [0x14017b048]
cmp rcx, rsi
je 0x140134aae
test byte [rcx + 0x1c], 1
je 0x140134aae
cmp byte [rcx + 0x19], 2
jb 0x140134aae
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.140005d40
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14014bb60
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov edi, 0x104
lea rcx, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140134b6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x140134b3c
test byte [rcx + 0x1c], 1
je 0x140134b3c
cmp byte [rcx + 0x19], 2
jb 0x140134b3c
lea edx, [rbp + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov r9d, edi
call fcn.140004c3c
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140134a50
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop dword [rax + rax]
test eax, eax
je 0x140134b87
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140134b4f
jmp 0x140134a43
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x12
je 0x140134a46
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x140134b3c
test byte [rcx + 0x1c], 1
je 0x140134b3c
cmp byte [rcx + 0x19], 2
jb 0x140134b3c
mov edx, 0x16
jmp 0x140134b29
Function at 0x140134bd4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov r14, r8
mov byte [rsp + 0x70], bpl
mov esi, edx
mov byte [r8], bpl
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
nop dword [rax + rax]
movzx r9d, bpl
lea r15d, [rbp + 1]
cmp eax, 3
cmove r9d, r15d
mov ebx, ebp
test r9b, r9b
je 0x140134cdc
lea r12, [0x14017b048]
test r15b, sil
jne 0x140134c7c
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140134e50
mov ebx, eax
test eax, eax
jns 0x140134c75
mov rcx, qword [0x14017b048]
cmp rcx, r12
je 0x140134cab
test byte [rcx + 0x1c], r15b
je 0x140134cab
cmp byte [rcx + 0x19], 2
jb 0x140134cab
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x18]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x140165de8]
call fcn.140005d40
jmp 0x140134ca4
cmp byte [rsp + 0x78], bpl
je 0x140134ca4
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140134fa0
mov ebx, eax
test eax, eax
jns 0x140134c9a
cmp eax, 0x80780076
jne 0x140134ca4
mov ebx, ebp
jmp 0x140134ca4
cmp byte [rsp + 0x70], bpl
jne 0x140134ca4
mov byte [r14], r15b
mov rcx, qword [0x14017b048]
test ebx, ebx
jns 0x140134cdc
cmp rcx, r12
je 0x140134cdc
test byte [rcx + 0x1c], r15b
je 0x140134cdc
cmp byte [rcx + 0x19], 2
jb 0x140134cdc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005d40
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140135280
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
and qword [rdx], 0
mov rsi, rdx
and qword [rax + 0x18], 0
lea rdx, [rax + 0x18]
mov r14, rcx
call fcn.140088864
lea r13, [0x14017b048]
mov ebx, eax
test eax, eax
js 0x14013540e
and qword [rsp + 0x30], 0
mov r8d, 3
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x80]
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140135351
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14013533e
test byte [rcx + 0x1c], 1
je 0x14013533e
cmp byte [rcx + 0x19], 2
jb 0x14013533e
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov dword [rsp + 0x20], eax
call fcn.140005d40
mov rcx, qword [0x14017b048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140135415
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x78]
and qword [rsp + 0x88], 0
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov edx, 0x7405c
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1401353f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x1401353e4
test byte [rcx + 0x1c], 1
je 0x1401353e4
cmp byte [rcx + 0x19], 2
jb 0x1401353e4
mov r9, qword [rsp + 0x80]
lea r8, [0x140165de8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov dword [rsp + 0x20], eax
call fcn.140005d40
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1401353ff
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
cmp qword [rsp + 0x80], 0
je 0x14013543b
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
test ebx, ebx
jns 0x14013546f
cmp rcx, r13
je 0x14013546f
test dword [rcx + 0x1c], 0x200
je 0x14013546f
cmp byte [rcx + 0x19], 2
jb 0x14013546f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005d40
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14013623c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
and dword [rsp + 0x78], ebx
mov esi, 0x208
and qword [rdx], rbx
mov ecx, esi
mov r14, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x80], rax
mov rdi, rax
lea r13, [0x14017b048]
test rax, rax
jne 0x140136296
mov rcx, qword [0x14017b048]
mov ebx, 0x8007000e
jmp 0x1401363ed
mov r8, rsi
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
xor r9d, r9d
and qword [rsp + 0x30], rbx
mov r8d, 0x104
and qword [rsp + 0x28], rbx
mov rdx, rdi
and qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
jne 0x1401363a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov esi, eax
call fcn.14013649c
test eax, eax
jns 0x140136348
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x140136335
test byte [rcx + 0x1c], 1
je 0x140136335
cmp byte [rcx + 0x19], 3
jb 0x140136335
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.140005d40
mov rcx, qword [0x14017b048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1401363ce
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x14013642e
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x140136387
test byte [rcx + 0x1c], 1
je 0x140136387
cmp byte [rcx + 0x19], 4
jb 0x140136387
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x41
mov r9, rbp
call fcn.140005cd0
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.1401367b0
mov rdi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x1401363c7
test rdi, rdi
jne 0x1401363c2
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140087b08
mov qword [r14], rdi
xor edi, edi
mov rcx, qword [0x14017b048]
test rdi, rdi
je 0x1401363e9
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017b048]
test ebx, ebx
jns 0x14013641a
cmp rcx, r13
je 0x14013641a
test byte [rcx + 0x1c], 1
je 0x14013641a
cmp byte [rcx + 0x19], 3
jb 0x14013641a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005d40
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
cmp esi, 0x3ed
je 0x140136453
cmp esi, 1
je 0x140136453
cmp esi, 0x57
je 0x140136453
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x1401363c7
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x1401363ce
test byte [rcx + 0x1c], 1
je 0x1401363ce
cmp byte [rcx + 0x19], 5
jb 0x1401363ce
mov rcx, qword [rcx + 0x10]
lea r8, [0x140165de8]
mov edx, 0x43
mov r9, rbp
call fcn.140005cd0
jmp 0x1401363c7
Function at 0x1401456d4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push r15
sub rsp, 0x240
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
mov dword [0x14017d408], ebx
mov dword [0x14017d3f8], ebx
mov rcx, qword [0x14017b048]
lea r14, [0x14017b048]
cmp rcx, r14
je 0x140145739
test byte [rcx + 0x1c], 0x20
je 0x140145739
cmp byte [rcx + 0x19], 4
jb 0x140145739
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x140166c20]
call fcn.140004c10
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x105
call sub.msvcrt.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x20]
lea rcx, [0x140166b38]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r15d, 0xc
cmp eax, 0x105
jbe 0x140145780
mov ebx, 0x8007000e
jmp 0x140145853
lea rdx, [0x140166b80]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14014579e
mov word [0x14017bc60], bx
jmp 0x1401457fa
lea rdx, str.amd64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1401457ba
mov eax, 9
jmp 0x1401457d4
lea rdx, str.ia64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1401457dd
mov eax, 6
mov word [0x14017bc60], ax
jmp 0x1401457fa
lea rdx, str.ARM64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1401457fa
mov word [0x14017bc60], r15w
call fcn.14014a8c8
test eax, eax
jne 0x14014584c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x14014587e
test byte [rcx + 0x1c], 0x20
je 0x14014585a
cmp byte [rcx + 0x19], 2
jb 0x14014585a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166c20]
mov edx, 0xb
call fcn.140004c10
jmp 0x140145853
or dword [0x14017d408], 1
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x14014587e
test byte [rcx + 0x1c], 0x20
je 0x14014587e
cmp byte [rcx + 0x19], 4
jb 0x14014587e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140166c20]
mov edx, r15d
call fcn.140004c10
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop r15
ret
Function at 0x140148920
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14017d424], 0
mov rbx, rcx
movups xmm0, xmmword [0x14015af68]
movdqu xmmword [rcx], xmm0
je 0x14014895b
mov ecx, dword [0x14017d428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14014895b
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14014a628
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rbx
call fcn.14014a4a4
mov edi, eax
test eax, eax
jne 0x14014a719
cmp qword [rsp + 0x30], rbx
jne 0x14014a690
lea edi, [rbx + 0x57]
jmp 0x14014a6b5
mov rdx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea r8, [rbp + 0x160]
mov dword [rsp + 0x20], 0x208
call fcn.14014a584
mov edi, eax
test edi, edi
jne 0x14014a6eb
mov edi, 0x104
lea rdx, [rsp + 0x50]
mov r8d, edi
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14014a757
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp qword [rsp + 0x30], rbx
je 0x14014a702
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
cmp qword [rsp + 0x38], rbx
je 0x14014a719
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp eax, edi
jbe 0x14014a762
mov edi, 0x7a
jmp 0x14014a6eb
lea rax, [rsp + 0x50]
or r14, 0xffffffffffffffff
inc r14
cmp word [rax + r14*2], bx
jne 0x14014a76b
mov r8d, edi
lea rdx, str.setupapi.dev.log
lea rcx, [rsp + 0x50]
call fcn.14014ac98
test eax, eax
je 0x14014a6dd
lea rcx, [rsp + 0x50]
call fcn.14014b298
mov edi, eax
test eax, eax
jne 0x14014a6eb
mov eax, r14d
add rax, rax
cmp rax, 0x208
jae 0x14014a7e4
lea edx, [rdi + 1]
mov word [rsp + rax + 0x50], bx
lea rcx, [rsp + 0x50]
call fcn.14014b4bc
test eax, eax
je 0x14014a6dd
lea rcx, [rsp + 0x50]
call fcn.14014b62c
test eax, eax
jne 0x14014a6eb
jmp 0x14014a6dd
call fcn.14014bd38
int3
Function at 0x14014afc8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xd0]
xor edi, edi
mov rbp, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
test r9, r9
je 0x14014b031
mov esi, dword [r14]
xor edx, edx
mov rcx, qword [0x14017d4e8]
add esi, 0xf
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14014b03b
lea edi, [rax + 0xe]
jmp 0x14014b0fa
lea rbx, [rsp + 0x48]
mov esi, 0x10
mov rdx, r13
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov ecx, r12d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], esi
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edx, 0x80000000
mov ecx, eax
add eax, edx
test edx, eax
jne 0x14014b09f
cmp ecx, 0x80000005
je 0x14014b09f
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14014b0d3
test rbp, rbp
je 0x14014b0c2
mov eax, dword [rbx + 8]
cmp dword [r14], eax
jb 0x14014b0bd
mov r8d, eax
lea rdx, [rbx + 0xc]
mov rcx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x14014b0c2
mov edi, 0x7a
mov eax, dword [rbx + 8]
mov dword [r14], eax
test r15, r15
je 0x14014b0d3
mov eax, dword [rbx + 4]
mov dword [r15], eax
test rbx, rbx
je 0x14014b0fa
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x14014b0fa
mov rcx, qword [0x14017d4e8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014bb60
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14014b298
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
xor r15d, r15d
lea r8, [rsp + 0x30]
mov edx, ebx
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
cmp eax, ebx
jae 0x14014b43c
test eax, eax
jne 0x14014b30a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14014b441
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14014b43c
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x14014b43c
mov word [rax], r15w
mov r12d, 0x5c
movzx ecx, word [rsp + 0x30]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14014b347
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14014b360
cmp word [rsp + 0x32], 0x3a
jne 0x14014b360
cmp word [rsp + 0x34], r12w
jne 0x14014b43c
lea rsi, [rsp + 0x34]
cmp cx, r12w
jne 0x14014b39c
cmp word [rsp + 0x32], r12w
jne 0x14014b39c
mov edx, r12d
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x14014b43c
mov edx, r12d
lea rcx, [rax + 2]
call sub.msvcrt.dll_wcschr
mov rsi, rax
test rax, rax
je 0x14014b43c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14014b3c1
test al, 0x10
je 0x14014b471
xor eax, eax
jmp 0x14014b441
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14014b3d7
lea rdi, [rsp + 0x30]
jmp 0x14014b3db
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x14014b43c
cmp word [rdi], r12w
jne 0x14014b43c
cmp rdi, rsi
jbe 0x14014b43c
mov edx, r12d
mov word [rdi], r15w
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14014b43c
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r15w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov word [r14 + 2], bx
cmp eax, 0xffffffff
jne 0x14014b46d
mov rdi, r14
cmp r14, rsi
ja 0x14014b3eb
cmp rdi, rsi
ja 0x14014b499
mov eax, 0x7b
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test al, 0x10
jne 0x14014b437
mov eax, 0x10b
jmp 0x14014b441
cmp word [rdi + 2], r15w
je 0x14014b3ba
mov word [rdi], r12w
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14014b48b
lea rdi, [rdi + rax*2]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14014b478
jmp 0x14014b2f9
Function at 0x14014b8b0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14017d538], rbx
je 0x14014b917
cmp rax, rbx
jne 0x14014b90a
mov ebx, 1
mov esi, ebx
jmp 0x14014b91c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14014b8ef
mov ebx, 1
mov eax, dword [0x14017d540]
cmp eax, ebx
jne 0x14014b934
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14014b9a0
mov eax, dword [0x14017d540]
test eax, eax
jne 0x14014b995
mov dword [0x14017d540], ebx
lea r15, [0x140152b60]
lea rdi, [0x140152b48]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14014b987
test eax, eax
jne 0x14014b98b
cmp qword [rdi], r14
je 0x14014b97c
mov rax, qword [rdi]
mov rcx, qword [case.0x140005bb3.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14014b95e
test eax, eax
je 0x14014b99b
mov eax, 0xff
jmp 0x14014baf6
mov dword [0x14017bcc4], ebx
mov edi, 0x1f
mov eax, dword [0x14017d540]
cmp eax, ebx
jne 0x14014b9c7
lea rdx, [0x140152b40]
lea rcx, [0x140152ab8]
call sub.msvcrt.dll__initterm
mov dword [0x14017d540], 2
test esi, esi
jne 0x14014b9d5
mov rax, r14
xchg qword [0x14017d538], rax
cmp qword [0x14017d558], r14
je 0x14014ba08
lea rcx, [0x14017d558]
call fcn.14014c2d0
test eax, eax
je 0x14014ba08
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14017d558]
mov r9, qword [case.0x140005bb3.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14014ba21
mov eax, 0xff
jmp 0x14014baf6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14014baa7
test ax, ax
je 0x14014ba3c
test edx, edx
jne 0x14014baa7
sub ax, bx
cmp ax, di
ja 0x14014ba52
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14014ba3c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400616fc
mov dword [0x14017bcc0], eax
cmp dword [0x14017bce0], r14d
jne 0x14014ba90
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14017bcc4], r14d
jne 0x14014baa5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14017bcc0]
jmp 0x14014baf6
cmp ax, 0x22
jne 0x14014babb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14014ba2a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call 0x140214000
add rsp, 0x28
jmp 0x14014b8b0