joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c4c8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r13
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x38], 0
mov r14d, r8d
and qword [rbp - 8], 0
mov r15, rdx
mov rdi, rcx
mov dword [rbp - 0xc], 1
mov rcx, qword [str.___t_]
lea r13, str.___t_
cmp rcx, r13
je 0x14003c530
test byte [rcx + 0x1c], 4
je 0x14003c530
cmp byte [rcx + 0x19], 5
jb 0x14003c530
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
mov edx, 0x14a
call fcn.140001010
lea r9, [rbp + 0x38]
mov edx, r14d
lea r8, [rbp - 8]
mov rcx, r15
call fcn.14003c19c
mov ebx, eax
test eax, eax
je 0x14003c58a
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003c6d3
test byte [rcx + 0x1c], 4
je 0x14003c6d3
cmp byte [rcx + 0x19], 2
jb 0x14003c6d3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
mov edx, 0x14b
mov r9d, eax
call fcn.140001030
jmp 0x14003c6d3
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, 4
lea rdx, [rbp - 0xc]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003c5e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003c6d3
test byte [rcx + 0x1c], 4
je 0x14003c6d3
cmp byte [rcx + 0x19], 2
jb 0x14003c6d3
mov edx, 0x14c
jmp 0x14003c6c0
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003c638
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003c6d3
test byte [rcx + 0x1c], 4
je 0x14003c6d3
cmp byte [rcx + 0x19], 2
jb 0x14003c6d3
mov edx, 0x14d
jmp 0x14003c6c0
mov r8d, dword [rbp + 0x38]
lea r9, [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rcx, rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003c67e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003c6d3
test byte [rcx + 0x1c], 4
je 0x14003c6d3
cmp byte [rcx + 0x19], 2
jb 0x14003c6d3
mov edx, 0x14e
jmp 0x14003c6c0
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x10]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003c6d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14003c6d3
test byte [rcx + 0x1c], 4
je 0x14003c6d3
cmp byte [rcx + 0x19], 2
jb 0x14003c6d3
mov edx, 0x14f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400836a8]
mov r9d, eax
call fcn.140001030
cmp qword [rbp - 8], 0
je 0x14003c6e3
mov rcx, qword [rbp - 8]
call fcn.14006264c
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14003c8e0
Capabilities:
Get file size
Read file on windows

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 ebx, ebx
mov r14, rdx
xor esi, esi
mov rbp, rcx
mov rcx, qword [str.___t_]
lea r12, str.___t_
lea r13, [0x1400836a8]
cmp rcx, r12
je 0x14003c937
test byte [rcx + 0x1c], 4
je 0x14003c937
cmp byte [rcx + 0x19], 5
jb 0x14003c937
mov rcx, qword [rcx + 0x10]
mov edx, 0x155
mov r8, r13
call fcn.140001010
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14003c992
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003cad9
test byte [rcx + 0x1c], 4
je 0x14003cad9
cmp byte [rcx + 0x19], 2
jb 0x14003cad9
mov edx, 0x156
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001030
jmp 0x14003cad9
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0x678
jae 0x14003c9dc
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003c9d2
test byte [rcx + 0x1c], 4
je 0x14003c9d2
cmp byte [rcx + 0x19], 3
jb 0x14003c9d2
mov rcx, qword [rcx + 0x10]
mov edx, 0x157
mov r9d, edi
mov r8, r13
call fcn.140001030
mov ebx, 0x570
jmp 0x14003caea
mov rcx, rdi
call fcn.1400625b0
mov rsi, rax
test rax, rax
jne 0x14003ca22
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003ca18
test byte [rcx + 0x1c], 4
je 0x14003ca18
cmp byte [rcx + 0x19], 2
jb 0x14003ca18
mov rcx, qword [rcx + 0x10]
mov edx, 0x158
mov r9d, edi
mov r8, r13
call fcn.140001030
mov ebx, 8
jmp 0x14003caea
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003ca6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003cad9
test byte [rcx + 0x1c], 4
je 0x14003cad9
cmp byte [rcx + 0x19], 2
jb 0x14003cad9
mov edx, 0x159
jmp 0x14003c97e
mov edx, dword [rsp + 0x70]
cmp edi, edx
je 0x14003caa8
mov ebx, 0x26
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003cadd
test byte [rcx + 0x1c], 4
je 0x14003cadd
cmp byte [rcx + 0x19], 2
jb 0x14003cadd
mov edx, 0x15a
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r13
call fcn.140001030
jmp 0x14003cadd
mov rcx, rsi
call fcn.14003459c
test eax, eax
jne 0x14003cad6
lea ebx, [rax + 0xd]
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14003cadd
test byte [rcx + 0x1c], 4
je 0x14003cadd
cmp byte [rcx + 0x19], 2
jb 0x14003cadd
mov edx, 0x15b
jmp 0x14003ca97
mov qword [r14], rsi
test ebx, ebx
je 0x14003caea
test rsi, rsi
je 0x14003caea
mov rcx, rsi
call fcn.14006264c
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 0x140042b6c
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov esi, dword [rcx + 0x24]
mov r14, r9
mov edi, r8d
mov ebx, edx
cmp esi, 2
jne 0x140042b9c
mov rcx, qword [rcx + 0x248]
mov rbp, qword [rcx + 0x198]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140042bd7
test byte [rcx + 0x1c], 4
je 0x140042bd7
cmp byte [rcx + 0x19], 5
jb 0x140042bd7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083920]
mov edx, 0x10
call fcn.140001010
cmp esi, 2
jne 0x140042bfd
neg ebx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
test edi, eax
je 0x140042bef
lea eax, [rsi - 1]
jmp 0x140042c06
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x140042c06
mov edx, ebx
mov ecx, edi
call fcn.14004df18
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140045264
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
mov rcx, qword [str.___t_]
lea rbp, str.___t_
lea r14, [0x140083a78]
cmp rcx, rbp
je 0x1400452a8
test byte [rcx + 0x1c], 4
je 0x1400452a8
cmp byte [rcx + 0x19], 5
jb 0x1400452a8
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r14
call fcn.140001010
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x1400025a0]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14004531c
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x140045400
test byte [rax + 0x1c], 4
je 0x140045400
cmp byte [rax + 0x19], 2
jb 0x140045400
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rbx + 0x35]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x140045400
mov r8d, 0x4e20
mov ecx, 3
call fcn.140022cb8
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004539b
cmp eax, 0x102
jne 0x140045376
mov rcx, qword [str.___t_]
cmp rcx, rbp
je 0x14004536e
test byte [rcx + 0x1c], 4
je 0x14004536e
cmp byte [rcx + 0x19], 5
jb 0x14004536e
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov r8, r14
call fcn.140001010
mov r8d, 0x7530
jmp 0x140045322
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x1400453f7
test byte [rax + 0x1c], 4
je 0x1400453f7
cmp byte [rax + 0x19], 2
jb 0x1400453f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x38
jmp 0x1400453d0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x1400453e8
mov rax, qword [str.___t_]
cmp rax, rbp
je 0x1400453f7
test byte [rax + 0x1c], 4
je 0x1400453f7
cmp byte [rax + 0x19], 2
jb 0x1400453f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x36
mov rcx, qword [str.___t_]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x1400453f7
mov ecx, dword [rsp + 0x50]
test ecx, ecx
sete bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x14004ae40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, ebx
mov rcx, qword [str.___t_]
lea rsi, str.___t_
cmp rcx, rsi
je 0x14004ae87
test byte [rcx + 0x1c], 4
je 0x14004ae87
cmp byte [rcx + 0x19], 5
jb 0x14004ae87
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083c00]
mov edx, 0x8f
call fcn.140001010
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140046fe0]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14009a410], rax
test rax, rax
jne 0x14004aef9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, rsi
je 0x14004aeed
test byte [rcx + 0x1c], 4
je 0x14004aeed
cmp byte [rcx + 0x19], 2
jb 0x14004aeed
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083c00]
mov edx, 0x90
mov r9d, eax
call fcn.140001030
test edi, edi
je 0x14004aefb
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
mov rsi, qword [rsp + 0x50]
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14004cf40
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and dword [rax - 0x20], 0
mov edx, 0x80000000
and dword [rax + 0x10], 0
mov r8d, 1
mov dword [rax - 0x28], 3
call fcn.140064e14
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004cf78
xor eax, eax
jmp 0x14004cf9e
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
or eax, 0xffffffff
cmp dword [rsp + 0x58], 0
cmovne ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14004d994
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, r9
mov rsi, r8
xor edi, edi
mov rcx, qword [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x14004d9e3
test byte [rcx + 0x1c], 4
je 0x14004d9e3
cmp byte [rcx + 0x19], 5
jb 0x14004d9e3
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x140083c80]
call fcn.140001010
lea rcx, [0x14009a2b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8, rsi
and dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14004da3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14004da81
test byte [rcx + 0x1c], 4
je 0x14004da81
cmp byte [rcx + 0x19], 2
jb 0x14004da81
lea edx, [rbx + 0x31]
jmp 0x14004da6e
call fcn.14004d794
test eax, eax
jne 0x14004da81
mov rax, qword [str.___t_]
cmp rax, r14
je 0x14004da81
test byte [rax + 0x1c], 4
je 0x14004da81
cmp byte [rax + 0x19], 2
jb 0x14004da81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083c80]
mov r9d, eax
call fcn.140001030
lea rcx, [0x14009a2b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x14004da9b
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x14005bf90
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r14
mov r14, rdx
mov rsi, rcx
lea r15, str.___t_
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005bfe7
test byte [rcx + 0x1c], 4
je 0x14005bfe7
cmp byte [rcx + 0x19], 5
jb 0x14005bfe7
mov edx, 0xf
lea r8, [0x140084790]
mov rcx, qword [rcx + 0x10]
call fcn.140001010
xor ebx, ebx
mov r8d, dword [rsi + 0x30]
lea rdx, str.CountryCode
mov rcx, r14
call fcn.14006621c
test eax, eax
jne 0x14005c049
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005c197
test byte [rcx + 0x1c], 4
je 0x14005c197
cmp byte [rcx + 0x19], 2
jb 0x14005c197
mov edx, 0x10
mov r9d, eax
lea r8, [0x140084790]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x14005c197
mov r8d, dword [rsi + 0x34]
lea rdx, str.AreaCode
mov rcx, r14
call fcn.14006621c
test eax, eax
jne 0x14005c093
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005c197
test byte [rcx + 0x1c], 4
je 0x14005c197
cmp byte [rcx + 0x19], 2
jb 0x14005c197
mov edx, 0x11
jmp 0x14005c031
mov r8d, ebx
cmp dword [rsi + 0x2c], ebx
setne r8b
lea rdx, str.UseGroup
mov rcx, r14
call fcn.14006621c
test eax, eax
jne 0x14005c0e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005c197
test byte [rcx + 0x1c], 4
je 0x14005c197
cmp byte [rcx + 0x19], 2
jb 0x14005c197
mov edx, 0x12
jmp 0x14005c031
cmp dword [rsi + 0x2c], ebx
jne 0x14005c130
mov r8d, dword [rsi + 0x28]
lea rdx, str.DeviceID
mov rcx, r14
call fcn.14006621c
test eax, eax
jne 0x14005c197
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005c197
test byte [rcx + 0x1c], 4
je 0x14005c197
cmp byte [rcx + 0x19], 2
jb 0x14005c197
mov edx, 0x13
jmp 0x14005c031
lea r9, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x14005c13e
mov r9, qword [r9]
lea r8, str.GroupName
mov edx, 1
mov rcx, r14
call fcn.1400662d8
test eax, eax
jne 0x14005c191
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14005c18f
test byte [rcx + 0x1c], 4
je 0x14005c18f
cmp byte [rcx + 0x19], 2
jb 0x14005c18f
mov edx, 0x14
mov r9d, eax
lea r8, [0x140084790]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
nop
jmp 0x14005c197
jmp 0x14005c197
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x140062f44
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov dword [rsp + 0x68], ebx
mov r14, rcx
mov rcx, qword [str.___t_]
lea r12, str.___t_
lea r13, [0x140084c98]
cmp rcx, r12
je 0x140062f94
test byte [rcx + 0x1c], 2
je 0x140062f94
cmp byte [rcx + 0x19], 5
jb 0x140062f94
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
mov r8, r13
call fcn.140001010
test rdi, rdi
jne 0x140062fa3
mov eax, 0x57
jmp 0x140063125
cmp dword [rdi], 0x14
jne 0x140062f99
lea rdx, [rsp + 0x68]
mov dword [rdi + 4], ebx
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140063004
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140063123
test byte [rcx + 0x1c], 2
je 0x140063123
cmp byte [rcx + 0x19], 2
jb 0x140063123
mov rcx, qword [rcx + 0x10]
mov edx, VariantTimeToDosDateTime
mov r9d, eax
mov r8, r13
call fcn.140001030
jmp 0x140063123
mov rcx, rsi
call fcn.1400625b0
mov rbp, rax
test rax, rax
jne 0x140063048
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14006303e
test byte [rcx + 0x1c], 2
je 0x14006303e
cmp byte [rcx + 0x19], 2
jb 0x14006303e
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xc]
mov r9d, esi
mov r8, r13
call fcn.140001030
mov eax, 8
jmp 0x140063125
mov edx, dword [rsp + 0x68]
mov r9, rbp
mov r8d, esi
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x1400630a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14006311b
test byte [rcx + 0x1c], 2
je 0x14006311b
cmp byte [rcx + 0x19], 2
jb 0x14006311b
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001030
jmp 0x14006311b
lea r9, [rsp + 0x70]
mov rcx, rbp
lea r8, [rsp + 0x78]
lea rdx, [0x140084bb8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x1400630e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14006311b
test byte [rcx + 0x1c], 2
je 0x14006311b
cmp byte [rcx + 0x19], 2
jb 0x14006311b
mov edx, 0xe
jmp 0x140063090
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + 0x1c]
and eax, 1
mov dword [rdi + 0x10], eax
movzx eax, word [rcx + 0x12]
mov word [rdi + 8], ax
movzx eax, word [rcx + 0x10]
mov word [rdi + 0xa], ax
movzx eax, word [rcx + 0x16]
mov word [rdi + 0xc], ax
movzx eax, word [rcx + 0x14]
mov word [rdi + 0xe], ax
mov dword [rdi + 4], 1
mov rcx, rbp
call fcn.14006264c
mov eax, ebx
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140063134
Capabilities:
Check os version

Disassembly:
push rsi
sub rsp, 0x150
mov rax, qword [0x140096940]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [str.___t_]
lea rsi, str.___t_
cmp rcx, rsi
je 0x140063183
test byte [rcx + 0x1c], 2
je 0x140063183
cmp byte [rcx + 0x19], 5
jb 0x140063183
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084c98]
mov edx, 0xf
call fcn.140001010
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x114
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
test eax, eax
jne 0x1400631ef
mov rax, qword [str.___t_]
cmp rax, rsi
je 0x1400631eb
test byte [rax + 0x1c], 2
je 0x1400631eb
cmp byte [rax + 0x19], 2
jb 0x1400631eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140084c98]
mov r9d, eax
mov edx, 0x10
mov rcx, qword [rcx + 0x10]
call fcn.140001030
xor eax, eax
jmp 0x1400631f9
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400786e0
add rsp, 0x150
pop rsi
ret
Function at 0x140063784
Capabilities:
Query environment variable

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, 0x20
mov rsi, rcx
mov rcx, qword [str.___t_]
lea r14, str.___t_
lea r15, [0x140084db8]
cmp rcx, r14
je 0x1400637d7
test byte [rcx + 0x1c], 2
je 0x1400637d7
cmp byte [rcx + 0x19], 5
jb 0x1400637d7
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r15
call fcn.140001010
mov edx, 0x25
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rcx, rsi
test rax, rax
jne 0x140063833
call fcn.140063214
test rax, rax
jne 0x140063911
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006390f
test byte [rcx + 0x1c], 2
je 0x14006390f
cmp byte [rcx + 0x19], 2
jb 0x14006390f
lea edx, [rax + 0x18]
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.140001010
jmp 0x14006390f
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
jne 0x140063885
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006390f
test byte [rcx + 0x1c], 2
je 0x14006390f
cmp byte [rcx + 0x19], 2
jb 0x14006390f
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x19]
mov r9d, eax
mov r8, r15
call fcn.140001030
jmp 0x14006390f
inc ebx
mov ecx, ebx
add rcx, rcx
call fcn.1400625b0
mov rdi, rax
test rax, rax
jne 0x1400638b9
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006390f
test byte [rcx + 0x1c], 2
je 0x14006390f
cmp byte [rcx + 0x19], 2
jb 0x14006390f
lea edx, [rax + 0x1a]
jmp 0x140063822
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400638d5
cmp eax, ebx
ja 0x1400638d5
mov rax, rdi
jmp 0x140063911
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140063907
test byte [rcx + 0x1c], 2
je 0x140063907
cmp byte [rcx + 0x19], 2
jb 0x140063907
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r9d, eax
mov r8, r15
call fcn.140001030
mov rcx, rdi
call fcn.14006264c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14006392c
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140096940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov r14, r8
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ebp, [rax - 1]
cmp ebp, 0x103
ja 0x140063a6b
mov dword [rsp + 0x28], ebp
lea r8, [rsp + 0x30]
mov r9d, ebp
mov qword [rsp + 0x20], rdi
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x140063a6b
xor ebx, ebx
mov r11d, 0x7fffffff
mov r10d, ebx
mov ecx, ebx
test rdi, rdi
je 0x1400639e9
mov r8d, r11d
mov rax, rdi
cmp word [rax], bx
je 0x1400639c9
add rax, 2
sub r8, 1
jne 0x1400639ba
mov rax, r8
mov r9d, 0x80070057
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x1400639f2
mov r10, r11
sub r10, r8
jmp 0x1400639f2
mov r9d, 0x80070057
mov edx, r9d
test edx, edx
js 0x140063a6b
test rsi, rsi
je 0x140063a2a
mov r8, r11
mov rax, rsi
cmp word [rax], bx
je 0x140063a10
add rax, 2
sub r8, 1
jne 0x140063a01
mov rax, r8
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x140063a2d
mov rcx, r11
sub rcx, r8
jmp 0x140063a2d
mov edx, r9d
test edx, edx
js 0x140063a6b
mov eax, ebp
sub rcx, rax
add rcx, r10
cmp rcx, 0x104
jae 0x140063a6b
lea r8, [rdi + rbp*2]
mov r9, rsi
mov qword [rsp + 0x20], r8
mov edx, 0x104
lea r8, str._s_s
mov rcx, r14
call fcn.14000292c
test eax, eax
setns bl
mov eax, ebx
jmp 0x140063a6d
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400786e0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret