joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401274a4
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 [0x14016d608]
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 0x1401275c5
lea rcx, [rsp + 0x30]
call fcn.1400899e4
mov ebx, eax
test eax, eax
jns 0x14012752b
mov ecx, 0xc0000452
call fcn.1400399fc
cmp ebx, eax
je 0x140127523
mov ecx, 0xc0000451
call fcn.1400399fc
cmp ebx, eax
je 0x140127523
mov ecx, 0xc000003a
call fcn.1400399fc
cmp ebx, eax
jne 0x140127543
mov byte [r14], 0
xor ebx, ebx
jmp 0x140127543
mov rdx, qword [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140127540
mov sil, 1
mov byte [r14], sil
lea rsi, [0x14016d090]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp rbp, 0xffffffffffffffff
je 0x140127564
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test ebx, ebx
jns 0x14012759c
mov rcx, qword [0x14016d090]
cmp rcx, rsi
je 0x14012759c
test byte [rcx + 0x1c], 1
je 0x14012759c
cmp byte [rcx + 0x19], 2
jb 0x14012759c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x17
mov dword [rsp + 0x20], ebx
mov r9, r15
call fcn.1400058c8
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14013cc00
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]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140127645
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x14012761d
test byte [rcx + 0x1c], 1
je 0x14012761d
cmp byte [rcx + 0x19], 2
jb 0x14012761d
lea edx, [rbp + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov r9d, edi
call fcn.140004988
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14012754a
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x14012765c
mov rdx, r15
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140127630
jmp 0x14012753d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x140127540
mov rcx, qword [0x14016d090]
lea rsi, [0x14016d090]
cmp rcx, rsi
je 0x14012761d
test byte [rcx + 0x1c], 1
je 0x14012761d
cmp byte [rcx + 0x19], 2
jb 0x14012761d
mov edx, 0x16
jmp 0x14012760a
Function at 0x140127698
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]
movzx r9d, bpl
lea r15d, [rbp + 1]
cmp eax, 3
cmove r9d, r15d
mov ebx, ebp
test r9b, r9b
je 0x14012779a
lea r12, [0x14016d090]
test r15b, sil
jne 0x14012773a
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140127900
mov ebx, eax
test eax, eax
jns 0x140127733
mov rcx, qword [0x14016d090]
cmp rcx, r12
je 0x140127769
test byte [rcx + 0x1c], r15b
je 0x140127769
cmp byte [rcx + 0x19], 2
jb 0x140127769
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x18]
mov r9, rdi
mov dword [rsp + 0x20], eax
lea r8, [0x140156b08]
call fcn.1400058c8
jmp 0x140127762
cmp byte [rsp + 0x78], bpl
je 0x140127762
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140127a24
mov ebx, eax
test eax, eax
jns 0x140127758
cmp eax, 0x80780076
jne 0x140127762
mov ebx, ebp
jmp 0x140127762
cmp byte [rsp + 0x70], bpl
jne 0x140127762
mov byte [r14], r15b
mov rcx, qword [0x14016d090]
test ebx, ebx
jns 0x14012779a
cmp rcx, r12
je 0x14012779a
test byte [rcx + 0x1c], r15b
je 0x14012779a
cmp byte [rcx + 0x19], 2
jb 0x14012779a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x19
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.1400058c8
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 0x140127ce0
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.1400827b0
lea r13, [0x14016d090]
mov ebx, eax
test eax, eax
js 0x140127e50
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]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140127da5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x140127d92
test byte [rcx + 0x1c], 1
je 0x140127d92
cmp byte [rcx + 0x19], 2
jb 0x140127d92
mov r9, qword [rsp + 0x80]
lea edx, [rbp + 0x26]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov dword [rsp + 0x20], eax
call fcn.1400058c8
mov rcx, qword [0x14016d090]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140127e57
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x88], rax
mov edx, 0x7405c
lea rax, [rsp + 0x78]
mov rcx, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140127e3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x140127e2c
test byte [rcx + 0x1c], 1
je 0x140127e2c
cmp byte [rcx + 0x19], 2
jb 0x140127e2c
mov r9, qword [rsp + 0x80]
lea r8, [0x140156b08]
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov dword [rsp + 0x20], eax
call fcn.1400058c8
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140127e47
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016d090]
cmp qword [rsp + 0x80], 0
je 0x140127e77
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
test ebx, ebx
jns 0x140127eab
cmp rcx, r13
je 0x140127eab
test dword [rcx + 0x1c], 0x200
je 0x140127eab
cmp byte [rcx + 0x19], 2
jb 0x140127eab
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x27
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.1400058c8
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x140128bc0
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]
mov qword [rsp + 0x80], rax
mov rdi, rax
lea r13, [0x14016d090]
test rax, rax
jne 0x140128c14
mov rcx, qword [0x14016d090]
mov ebx, 0x8007000e
jmp 0x140128d59
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]
test eax, eax
jne 0x140128d17
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x78]
mov dl, 1
mov rcx, rbp
mov esi, eax
call fcn.140128e00
test eax, eax
jns 0x140128cba
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x140128ca7
test byte [rcx + 0x1c], 1
je 0x140128ca7
cmp byte [rcx + 0x19], 3
jb 0x140128ca7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x40
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.1400058c8
mov rcx, qword [0x14016d090]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140128d40
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x140128d99
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x140128cf9
test byte [rcx + 0x1c], 1
je 0x140128cf9
cmp byte [rcx + 0x19], 4
jb 0x140128cf9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x41
mov r9, rbp
call fcn.140005868
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.1401290fc
mov rdi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x140128d39
test rdi, rdi
jne 0x140128d34
lea r8, str.wszLabel
mov edx, 0x5ba
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140081b60
mov qword [r14], rdi
xor edi, edi
mov rcx, qword [0x14016d090]
test rdi, rdi
je 0x140128d55
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
test ebx, ebx
jns 0x140128d86
cmp rcx, r13
je 0x140128d86
test byte [rcx + 0x1c], 1
je 0x140128d86
cmp byte [rcx + 0x19], 3
jb 0x140128d86
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x44
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.1400058c8
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 0x140128dbe
cmp esi, 1
je 0x140128dbe
cmp esi, 0x57
je 0x140128dbe
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140128d39
mov rcx, qword [0x14016d090]
cmp rcx, r13
je 0x140128d40
test byte [rcx + 0x1c], 1
je 0x140128d40
cmp byte [rcx + 0x19], 5
jb 0x140128d40
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x43
mov r9, rbp
call fcn.140005868
jmp 0x140128d39
Function at 0x140129a40
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rdi, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x20a
xor ebx, ebx
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x226
call sub.msvcrt.dll_memset
mov eax, dword [0x140156a6c]
or rsi, 0xffffffffffffffff
mov dword [rsp + 0x50], eax
movzx eax, word [0x140156a70]
mov word [rsp + 0x54], ax
test r14, r14
jne 0x140129ad3
lea r8, str.pwszDrive
mov edx, 0x817
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140081b60
test rdi, rdi
jne 0x140129af0
lea r8, str.pVolumeInfo___NULL
mov edx, 0x818
lea rcx, str.base_stor_blbwsbutilwsbvolumeutils.cpp
call fcn.140081b60
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
movzx ecx, word [r14]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140129b25
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x140129b25
mov r9, r14
lea r8, str._Volume_s
jmp 0x140129b6d
mov word [rsp + 0x50], cx
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x140129b5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140129c98
lea r9, [rbp + 0x190]
lea r8, str._GLOBALROOT_s
mov edx, VarUI4FromDisp
lea rcx, [rsp + 0x60]
call fcn.14000f4f8
mov r8d, 3
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140129c0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140129c98
test byte [rcx + 0x1c], 4
je 0x140129c98
cmp byte [rcx + 0x19], 2
jb 0x140129c98
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x69]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], ebx
lea r8, [0x140156b08]
call fcn.1400058c8
jmp 0x140129c98
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r9d
mov edx, 0x9023c
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x44], 0x60
mov dword [rsp + 0x48], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140129c98
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov r9d, eax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140129c98
test byte [rcx + 0x1c], 4
je 0x140129c98
cmp byte [rcx + 0x19], 2
jb 0x140129c98
mov rcx, qword [rcx + 0x10]
lea r8, [0x140156b08]
mov edx, 0x69
call fcn.140004988
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14013cc00
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140137288
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push r14
sub rsp, 0x240
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
mov dword [0x14016f4e0], ebx
mov dword [0x14016f4e4], ebx
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x1401372e8
test byte [rcx + 0x1c], 0x20
je 0x1401372e8
cmp byte [rcx + 0x19], 4
jb 0x1401372e8
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x140157940]
call fcn.140004968
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x105
call sub.msvcrt.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x20]
lea rcx, str._PROCESSOR_ARCHITECTURE_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x105
jbe 0x140137323
mov ebx, 0x8007000e
jmp 0x1401373d1
lea rdx, [0x1401578b0]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140137341
mov word [0x14016dc60], bx
jmp 0x14013737e
lea rdx, str.amd64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013735d
mov eax, 9
jmp 0x140137377
lea rdx, str.ia64
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14013737e
mov eax, 6
mov word [0x14016dc60], ax
call fcn.14013bdc4
test eax, eax
jne 0x1401373ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1401373fe
test byte [rcx + 0x1c], 0x20
je 0x1401373d8
cmp byte [rcx + 0x19], 2
jb 0x1401373d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157940]
mov edx, 0xb
call fcn.140004968
jmp 0x1401373d1
or dword [0x14016f4e0], 1
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1401373fe
test byte [rcx + 0x1c], 0x20
je 0x1401373fe
cmp byte [rcx + 0x19], 4
jb 0x1401373fe
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157940]
mov edx, 0xc
call fcn.140004968
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop r14
ret
Function at 0x14013a2b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14016f504], 0
mov rbx, rcx
movups xmm0, xmmword [0x140156cf8]
movdqu xmmword [rcx], xmm0
je 0x14013a2e5
mov ecx, dword [0x14016f500]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14013a2e5
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14013c610
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 [0x14016d608]
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]
cmp eax, ebx
jae 0x14013c796
test eax, eax
jne 0x14013c676
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14013c79b
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x14013c796
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x14013c796
mov word [rax], r15w
mov r12d, 0x5c
movzx ecx, word [rsp + 0x30]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x14013c6b3
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x14013c6cc
cmp word [rsp + 0x32], 0x3a
jne 0x14013c6cc
cmp word [rsp + 0x34], r12w
jne 0x14013c796
lea rsi, [rsp + 0x34]
cmp cx, r12w
jne 0x14013c708
cmp word [rsp + 0x32], r12w
jne 0x14013c708
mov edx, r12d
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll_wcschr
test rax, rax
je 0x14013c796
mov edx, r12d
lea rcx, [rax + 2]
call sub.msvcrt.dll_wcschr
mov rsi, rax
test rax, rax
je 0x14013c796
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14013c727
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x14013c79b
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14013c73d
lea rdi, [rsp + 0x30]
jmp 0x14013c741
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x14013c796
cmp word [rdi], r12w
jne 0x14013c796
cmp rdi, rsi
jbe 0x14013c796
mov edx, r12d
mov word [rdi], r15w
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r14, rax
test rax, rax
je 0x14013c796
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r15w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [r14 + 2], bx
cmp eax, 0xffffffff
jne 0x14013c7c6
mov rdi, r14
cmp r14, rsi
ja 0x14013c751
cmp rdi, rsi
ja 0x14013c7ee
mov eax, 0x7b
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14013cc00
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 0x14013c791
mov eax, 0x10b
jmp 0x14013c79b
cmp word [rdi + 2], r15w
je 0x14013c804
mov word [rdi], r12w
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14013c7e0
lea rdi, [rdi + rax*2]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14013c7d1
jmp 0x14013c66b
xor eax, eax
jmp 0x14013c79b
Function at 0x14013c96c
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 [0x14016f620], rbx
je 0x14013c9d3
cmp rax, rbx
jne 0x14013c9c6
mov ebx, 1
mov esi, ebx
jmp 0x14013c9d8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14013c9ab
mov ebx, 1
mov eax, dword [0x14016f628]
cmp eax, ebx
jne 0x14013c9f0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14013ca5c
mov eax, dword [0x14016f628]
test eax, eax
jne 0x14013ca51
mov dword [0x14016f628], ebx
lea r15, [0x140143ad0]
lea rdi, [0x140143ab0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14013ca43
test eax, eax
jne 0x14013ca47
cmp qword [rdi], r14
je 0x14013ca38
mov rax, qword [rdi]
mov rcx, qword [case.0x140005783.0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14013ca1a
test eax, eax
je 0x14013ca57
mov eax, 0xff
jmp 0x14013cbb0
mov dword [0x14016dc74], ebx
mov edi, 0x1f
mov eax, dword [0x14016f628]
cmp eax, ebx
jne 0x14013ca83
lea rdx, [0x140143aa8]
lea rcx, [0x140143a18]
call sub.msvcrt.dll__initterm
mov dword [0x14016f628], 2
test esi, esi
jne 0x14013ca91
mov rax, r14
xchg qword [0x14016f620], rax
cmp qword [0x14016f640], r14
je 0x14013cac4
lea rcx, [0x14016f640]
call fcn.14013d2d0
test eax, eax
je 0x14013cac4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14016f640]
mov r9, qword [case.0x140005783.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14013cadd
mov eax, 0xff
jmp 0x14013cbb0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14013cb61
cmp word [rcx], r14w
je 0x14013caf6
test edx, edx
jne 0x14013cb61
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14013cb0c
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14013caf6
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.14005d790
mov dword [0x14016dc70], eax
cmp dword [0x14016dc90], r14d
jne 0x14013cb4a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14016dc74], r14d
jne 0x14013cb5f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14016dc70]
jmp 0x14013cbb0
cmp word [rcx], 0x22
jne 0x14013cb75
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 0x14013cae6
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 fcn.140206000
add rsp, 0x28
jmp 0x14013c96c
Function at 0x14013d1e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14013d22c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14013d224
cmp dword [rcx + 0x3c], edx
jl 0x14013d224
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14013d224
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14013d22c
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14013d42c
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013d434
push rbx
sub rsp, 0x540
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14013d4b1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14013d4d1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14013cc00
add rsp, 0x540
pop rbx
ret

Function at 0x14013d434
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013d434
push rbx
sub rsp, 0x540
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14013d4b1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14013d4d1
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14013cc00
add rsp, 0x540
pop rbx
ret