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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebx, ebx
or r12, 0xffffffffffffffff
xor sil, sil
and qword [rsp + 0x30], rbx
mov rbp, r8
mov r13, rcx
mov byte [r8], bl
test dl, 1
je 0x1001355e8
lea rcx, [rsp + 0x30]
call fcn.1000a1088
mov ebx, eax
test eax, eax
jns 0x10013554e
cmp eax, 0xd0000452
je 0x100135546
cmp eax, 0xd0000451
je 0x100135546
cmp eax, 0xd000003a
jne 0x100135566
mov byte [rbp], 0
xor ebx, ebx
jmp 0x100135566
mov rdx, qword [rsp + 0x30]
mov rcx, r13
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x100135562
mov sil, 1
mov byte [rbp], sil
lea rsi, [0x1001653b8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp r12, 0xffffffffffffffff
je 0x100135587
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test ebx, ebx
jns 0x1001355bf
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1001355bf
test byte [rcx + 0x1c], 1
je 0x1001355bf
cmp byte [rcx + 0x19], 2
jb 0x1001355bf
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0x17
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x298]
add rsp, 0x260
pop r13
pop r12
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 r12, rax
cmp rax, 0xffffffffffffffff
jne 0x10013566a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100135642
test byte [rcx + 0x1c], 1
je 0x100135642
cmp byte [rcx + 0x19], 2
jb 0x100135642
lea edx, [r12 + 0x16]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov r9d, eax
call fcn.10001c878
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x10013556d
lea rdx, [rsp + 0x40]
mov r8d, edi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x100135680
lea rcx, [rsp + 0x40]
mov rdx, r13
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x100135655
jmp 0x10013555f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x100135562
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100135642
test byte [rcx + 0x1c], 1
je 0x100135642
cmp byte [rcx + 0x19], 2
jb 0x100135642
mov edx, 0x16
jmp 0x10013562f
Function at 0x1001356c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor r12d, r12d
mov rbp, r8
mov esi, edx
mov byte [rsp + 0x70], r12b
mov byte [r8], r12b
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea r13d, [r12 + 1]
movzx r9d, r12b
cmp eax, 3
mov ebx, r12d
cmove r9d, r13d
cmp r9b, r12b
je 0x1001357cc
lea r14, [0x1001653b8]
test r13b, sil
jne 0x100135768
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1001358e0
cmp eax, r12d
mov ebx, eax
jge 0x100135761
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x10013579a
test byte [rcx + 0x1c], r13b
je 0x10013579a
cmp byte [rcx + 0x19], 2
jb 0x10013579a
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x18]
lea r8, [0x100002e10]
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x100135793
cmp byte [rsp + 0x78], r12b
je 0x100135793
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1001359e4
cmp eax, r12d
mov ebx, eax
jge 0x100135788
cmp eax, 0x80780076
jne 0x100135793
mov ebx, r12d
jmp 0x100135793
cmp byte [rsp + 0x70], r12b
jne 0x100135793
mov byte [rbp], r13b
mov rcx, qword [0x1001653b8]
cmp ebx, r12d
jge 0x1001357cc
cmp rcx, r14
je 0x1001357cc
test byte [rcx + 0x1c], r13b
je 0x1001357cc
cmp byte [rcx + 0x19], 2
jb 0x1001357cc
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0x19
mov r9, rdi
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100135c9c
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push r12
push r15
sub rsp, 0x40
and qword [rdx], 0
and qword [rax + 0x18], 0
mov rsi, rdx
lea rdx, [rax + 0x18]
mov r12, rcx
call fcn.10009ba10
lea r15, [0x1001653b8]
mov ebx, eax
test eax, eax
js 0x100135df8
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x80]
and dword [rsp + 0x28], 0
mov r8d, 3
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x100135d39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100135dc7
test byte [rcx + 0x1c], 1
je 0x100135dc7
cmp byte [rcx + 0x19], 2
jb 0x100135dc7
lea edx, [rbp + 0x25]
jmp 0x100135da4
xor eax, eax
xor r9d, r9d
xor r8d, r8d
and qword [rsp + 0x38], rax
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov edx, 0x7405c
mov rcx, rbp
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100135dd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, r15
je 0x100135dc7
test byte [rcx + 0x1c], 1
je 0x100135dc7
cmp byte [rcx + 0x19], 2
jb 0x100135dc7
mov edx, 0x25
mov r9, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x100135de9
mov rax, qword [rsp + 0x88]
mov qword [rsi], rax
mov rcx, qword [0x1001653b8]
cmp rbp, 0xffffffffffffffff
je 0x100135dff
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp qword [rsp + 0x80], 0
je 0x100135e1f
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100135e51
cmp rcx, r15
je 0x100135e51
bt dword [rcx + 0x1c], 9
jae 0x100135e51
cmp byte [rcx + 0x19], 2
jb 0x100135e51
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0x26
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov eax, ebx
add rsp, 0x40
pop r15
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x100136b44
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rbp, rcx
xor ebx, ebx
mov edi, 0x208
and dword [rsp + 0x78], ebx
and qword [rdx], rbx
mov rcx, rdi
mov r12, rdx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
lea r14, [0x1001653b8]
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x100136b99
mov rcx, qword [0x1001653b8]
mov ebx, 0x8007000e
jmp 0x100136cd2
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and dword [rsp + 0x38], ebx
and qword [rsp + 0x30], rbx
and qword [rsp + 0x28], rbx
and qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x100136c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x78]
mov rcx, rbp
mov edi, eax
call fcn.100136d80
test eax, eax
jns 0x100136c3a
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x100136c2a
test byte [rcx + 0x1c], 1
je 0x100136c2a
cmp byte [rcx + 0x19], 3
jb 0x100136c2a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0x3e
mov r9, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100136cb9
mov eax, dword [rsp + 0x78]
shr eax, 0xb
test al, 1
je 0x100136d12
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x100136c79
test byte [rcx + 0x1c], 1
je 0x100136c79
cmp byte [rcx + 0x19], 4
jb 0x100136c79
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0x3f
mov r9, rbp
call fcn.10001db08
lea rdx, [rsp + 0x80]
mov rcx, rbp
call fcn.100137028
mov rsi, qword [rsp + 0x80]
mov ebx, eax
test eax, eax
js 0x100136cb2
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x100136cb2
mov qword [r12], rsi
xor esi, esi
mov rcx, qword [0x1001653b8]
test rsi, rsi
je 0x100136cce
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100136cff
cmp rcx, r14
je 0x100136cff
test byte [rcx + 0x1c], 1
je 0x100136cff
cmp byte [rcx + 0x19], 3
jb 0x100136cff
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0x42
mov r9, rbp
mov dword [rsp + 0x20], ebx
call fcn.10001ddb0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp edi, 0x3ed
je 0x100136d37
cmp edi, 1
je 0x100136d37
cmp edi, 0x57
je 0x100136d37
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x100136cb2
mov rcx, qword [0x1001653b8]
cmp rcx, r14
je 0x100136cb9
test byte [rcx + 0x1c], 1
je 0x100136cb9
cmp byte [rcx + 0x19], 5
jb 0x100136cb9
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e10]
mov edx, 0x41
mov r9, rbp
call fcn.10001db08
jmp 0x100136cb2
Function at 0x10014085c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, r9
mov r14b, r8b
mov r15, rdx
mov r13, rcx
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x1001408b8
test byte [rcx + 0x1c], 1
je 0x1001408b8
cmp byte [rcx + 0x19], 4
jb 0x1001408b8
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002dd0]
mov edx, 0xc
call fcn.10001c854
xor eax, eax
xor esi, esi
xor r8d, r8d
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov rcx, qword [r13]
xor edx, edx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
jne 0x1001408fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1001409d9
mov rax, rbx
mov ecx, 0xffffffff
add rax, rax
cmp rax, rcx
jbe 0x100140915
mov ebx, 0x80070216
jmp 0x1001409d9
mov ecx, eax
mov r12d, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
jne 0x100140932
mov ebx, 0x8007000e
jmp 0x1001409bd
mov r8, r12
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [r13]
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100140969
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1001409bd
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.10009bfe4
mov ebx, eax
test eax, eax
js 0x1001409b8
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rsp + 0x50]
mov rdx, rbp
mov rcx, rsi
xor edi, edi
call fcn.10009b954
mov ebx, eax
test eax, eax
js 0x1001409cb
mov rcx, qword [r15]
lea rdx, [rbp + 8]
xor r8d, r8d
call fcn.10009bac4
mov ebx, eax
test eax, eax
js 0x1001409cb
mov byte [rbp + 0x10], r14b
jmp 0x1001409bd
mov rsi, qword [rsp + 0x50]
test rdi, rdi
je 0x1001409cb
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rsi, rsi
je 0x1001409d9
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1001653b8]
lea rax, [0x1001653b8]
cmp rcx, rax
je 0x100140a0d
test byte [rcx + 0x1c], 1
je 0x100140a0d
cmp byte [rcx + 0x19], 4
jb 0x100140a0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002dd0]
mov edx, 0xd
call fcn.10001c854
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100147d14
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r13
sub rsp, 0x240
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
mov dword [0x100166690], ebx
mov dword [0x100166694], ebx
mov rcx, qword [0x1001653b8]
lea r13, [0x1001653b8]
cmp rcx, r13
je 0x100147d7e
test byte [rcx + 0x1c], 0x20
je 0x100147d7e
cmp byte [rcx + 0x19], 4
jb 0x100147d7e
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x100002bd0]
call fcn.10001c854
mov edi, 0x105
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rdi
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
lea rcx, [0x100015b38]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
jbe 0x100147db5
mov ebx, 0x8007000e
jmp 0x100147e66
lea rsi, [rsp + 0x20]
lea rdi, [0x100015b70]
mov ecx, 4
repe cmpsw word [rsi], word [rdi]
jne 0x100147dd4
mov word [0x100165414], bx
jmp 0x100147e11
mov eax, 6
lea rsi, [rsp + 0x20]
lea rdi, [0x100015b78]
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x100147df4
mov eax, 9
jmp 0x100147e0a
lea rsi, [rsp + 0x20]
lea rdi, [0x100015b88]
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
jne 0x100147e11
mov word [0x100165414], ax
call fcn.10014d308
cmp eax, ebx
jne 0x100147e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100147e93
test byte [rcx + 0x1c], 0x20
je 0x100147e6d
cmp byte [rcx + 0x19], 2
jb 0x100147e6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002bd0]
mov edx, 0xb
call fcn.10001c854
jmp 0x100147e66
or dword [0x100166690], 1
mov rcx, qword [0x1001653b8]
cmp rcx, r13
je 0x100147e93
test byte [rcx + 0x1c], 0x20
je 0x100147e93
cmp byte [rcx + 0x19], 4
jb 0x100147e93
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002bd0]
mov edx, 0xc
call fcn.10001c854
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x10014b118
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x10016664b], 0
movdqu xmm0, xmmword [0x10000f0f8]
mov rbx, rcx
movdqu xmmword [rcx], xmm0
je 0x10014b14f
mov ecx, dword [0x1001666b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x10014b14f
movdqu xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x10014db68
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0x104
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, ebx
jae 0x10014dcef
xor r12d, r12d
cmp eax, r12d
jne 0x10014dbc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10014dcf4
mov rax, qword [rsp + 0x20]
cmp rax, r12
je 0x10014dcef
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x10014dcef
mov word [rax], r12w
movzx ecx, word [rsp + 0x30]
mov r13d, 0x5c
cmp cx, 0x41
jb 0x10014dbfe
cmp cx, 0x5a
jbe 0x10014dc07
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x10014dc22
cmp word [rsp + 0x32], 0x3a
jne 0x10014dc22
cmp word [rsp + 0x34], r13w
jne 0x10014dcef
lea rsi, [rsp + 0x34]
jmp 0x10014dc27
mov rsi, qword [rsp + 0x20]
cmp cx, r13w
jne 0x10014dc63
cmp word [rsp + 0x32], r13w
jne 0x10014dc63
lea rcx, [rsp + 0x34]
mov edx, r13d
call sub.msvcrt.dll_wcschr
cmp rax, r12
je 0x10014dcef
lea rcx, [rax + 2]
mov edx, r13d
call sub.msvcrt.dll_wcschr
mov rsi, rax
cmp rax, r12
je 0x10014dcef
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10014dc82
and al, 0x10
neg al
sbb eax, eax
not eax
and eax, 0x10b
jmp 0x10014dcf4
mov rdi, qword [rsp + 0x20]
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x10014dc98
lea rdi, [rsp + 0x30]
jmp 0x10014dc9c
add rdi, 0xfffffffffffffffe
cmp rdi, rsi
je 0x10014dcef
cmp word [rdi], r13w
jne 0x10014dcef
cmp rdi, rsi
jbe 0x10014dcef
lea rcx, [rsp + 0x30]
mov edx, r13d
mov word [rdi], r12w
call sub.msvcrt.dll_wcsrchr
mov rbp, rax
cmp rax, r12
je 0x10014dcef
movzx ebx, word [rax + 2]
lea rcx, [rsp + 0x30]
mov word [rax + 2], r12w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [rbp + 2], bx
cmp eax, 0xffffffff
jne 0x10014dd21
mov rdi, rbp
cmp rbp, rsi
ja 0x10014dcac
cmp rdi, rsi
ja 0x10014dd47
mov eax, 0x7b
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
test al, 0x10
jne 0x10014dcea
mov eax, 0x10b
jmp 0x10014dcf4
cmp word [rdi + 2], r12w
je 0x10014dd5e
mov rcx, rdi
mov word [rdi], r13w
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, r12d
jne 0x10014dd2c
jmp 0x10014dbbc
xor eax, eax
jmp 0x10014dcf4
Function at 0x10014df24
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, DllRegisterServer
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x10014dfb7
cmp dword [rsp + 0x24], 5
jb 0x10014dfd1
jmp 0x10014dfcd
cmp dword [rsp + 0x30], esi
jne 0x10014dfd1
cmp dword [rsp + 0x24], 4
ja 0x10014dfcd
jne 0x10014dfd1
cmp dword [rsp + 0x28], 0
jbe 0x10014dfd1
mov byte [rbx + 0x18], sil
lea rax, [0x100001ea0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100019714
movzx ecx, byte [0x100167cb0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x100167cb0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10014e2b4
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100167d60], rdi
je 0x10014e314
cmp rax, rdi
jne 0x10014e307
mov r12d, 1
jmp 0x10014e314
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10014e2ed
mov eax, dword [0x100167d58]
cmp eax, 1
jne 0x10014e329
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10014e390
mov eax, dword [0x100167d58]
cmp eax, ebx
jne 0x10014e386
mov dword [0x100167d58], 1
lea r13, [0x100001e68]
lea rdi, [0x100001e50]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10014e378
cmp eax, ebx
jne 0x10014e378
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10014e36d
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10014e356
cmp eax, ebx
je 0x10014e390
mov eax, 0xff
jmp 0x10014e4d8
mov dword [0x100165ecc], 1
mov eax, dword [0x100167d58]
cmp eax, 1
jne 0x10014e3b8
lea rdx, [0x100001e48]
lea rcx, [0x100001d88]
call sub.msvcrt.dll__initterm
mov dword [0x100167d58], 2
cmp r12d, ebx
jne 0x10014e3c7
mov rax, rbx
xchg qword [0x100167d60], rax
cmp qword [0x100167d78], rbx
je 0x10014e3ef
lea rcx, [0x100167d78]
call fcn.10014eb9c
cmp eax, ebx
je 0x10014e3ef
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100167d78]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10014e405
mov eax, 0xff
jmp 0x10014e4d8
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10014e48a
cmp word [rcx], bx
je 0x10014e420
cmp edx, ebx
jne 0x10014e48a
cmp word [rcx], bx
je 0x10014e436
cmp word [rcx], 0x20
ja 0x10014e436
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10014e420
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100066c10
mov dword [0x100165ec8], eax
cmp dword [0x100165eac], ebx
jne 0x10014e474
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100165ecc], ebx
jne 0x10014e488
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100165ec8]
jmp 0x10014e4d8
cmp word [rcx], 0x22
jne 0x10014e49d
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10014e411
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100200000
add rsp, 0x28
jmp 0x10014e2b4
Function at 0x10014e600
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100165138]
jne 0x10014e61b
rol rcx, 0x10
test cx, 0xffff
jne 0x10014e617
ret 0
ror rcx, 0x10
jmp 0x10014ed60
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100165f80]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100166078]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10014ede5
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, [0x100165f80]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x10014ee07
mov rax, qword [rsp + 0x88]
mov qword [0x100166078], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100166018], rax
mov rax, qword [0x100166078]
mov qword [0x100165ef0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100166000], rax
mov dword [0x100165ee0], 0xc0000409
mov dword [0x100165ee4], 1
mov rax, qword [0x100165138]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100165140]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001f88]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x10014ebfc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10014ec49
cmp rcx, 0xffffffffffffffff
je 0x10014ec49
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10014ec41
cmp dword [rcx + 0x3c], edx
jl 0x10014ec41
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10014ec41
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 0x10014ec49
mov rax, rdx
add rsp, 0x18
ret

Function at 0x10014ee88
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
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 0x10014eef3
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x10014ef13
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001f98]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret