joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f788
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 [0x14009b028]
lea r12, [0x14009b028]
lea r13, [0x1400896c8]
cmp rcx, r12
je 0x14003f7df
test byte [rcx + 0x1c], 4
je 0x14003f7df
cmp byte [rcx + 0x19], 5
jb 0x14003f7df
mov rcx, qword [rcx + 0x10]
mov edx, 0x155
mov r8, r13
call fcn.140001024
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14003f846
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003f99f
test byte [rcx + 0x1c], 4
je 0x14003f99f
cmp byte [rcx + 0x19], 2
jb 0x14003f99f
mov edx, 0x156
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001050
jmp 0x14003f99f
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x678
jae 0x14003f896
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003f88c
test byte [rcx + 0x1c], 4
je 0x14003f88c
cmp byte [rcx + 0x19], 3
jb 0x14003f88c
mov rcx, qword [rcx + 0x10]
mov edx, 0x157
mov r9d, edi
mov r8, r13
call fcn.140001050
mov ebx, 0x570
jmp 0x14003f9b0
mov rcx, rdi
call fcn.140066e68
mov rsi, rax
test rax, rax
jne 0x14003f8dc
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003f8d2
test byte [rcx + 0x1c], 4
je 0x14003f8d2
cmp byte [rcx + 0x19], 2
jb 0x14003f8d2
mov rcx, qword [rcx + 0x10]
mov edx, 0x158
mov r9d, edi
mov r8, r13
call fcn.140001050
mov ebx, 8
jmp 0x14003f9b0
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]
nop dword [rax + rax]
test eax, eax
jne 0x14003f933
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003f99f
test byte [rcx + 0x1c], 4
je 0x14003f99f
cmp byte [rcx + 0x19], 2
jb 0x14003f99f
mov edx, 0x159
jmp 0x14003f832
mov edx, dword [rsp + 0x70]
cmp edi, edx
je 0x14003f96e
mov ebx, 0x26
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003f9a3
test byte [rcx + 0x1c], 4
je 0x14003f9a3
cmp byte [rcx + 0x19], 2
jb 0x14003f9a3
mov edx, 0x15a
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r13
call fcn.140001050
jmp 0x14003f9a3
mov rcx, rsi
call fcn.140036cb4
test eax, eax
jne 0x14003f99c
lea ebx, [rax + 0xd]
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14003f9a3
test byte [rcx + 0x1c], 4
je 0x14003f9a3
cmp byte [rcx + 0x19], 2
jb 0x14003f9a3
mov edx, 0x15b
jmp 0x14003f95d
mov qword [r14], rsi
test ebx, ebx
je 0x14003f9b0
test rsi, rsi
je 0x14003f9b0
mov rcx, rsi
call fcn.140066f24
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 0x140046090
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 0x1400460c0
mov rcx, qword [rcx + 0x248]
mov rbp, qword [rcx + 0x198]
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x1400460fb
test byte [rcx + 0x1c], 4
je 0x1400460fb
cmp byte [rcx + 0x19], 5
jb 0x1400460fb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089940]
mov edx, 0x10
call fcn.140001024
cmp esi, 2
jne 0x140046127
neg ebx
sbb eax, eax
and eax, 0xfffffff8
add eax, 0x10
test edi, eax
je 0x140046113
lea eax, [rsi - 1]
jmp 0x140046130
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
jmp 0x140046130
mov edx, ebx
mov ecx, edi
call fcn.140051cd4
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 0x140048a78
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
lea r14, [0x140089a98]
cmp rcx, rbp
je 0x140048abc
test byte [rcx + 0x1c], 4
je 0x140048abc
cmp byte [rcx + 0x19], 5
jb 0x140048abc
mov rcx, qword [rcx + 0x10]
mov edx, 0x34
mov r8, r14
call fcn.140001024
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140002720]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140048b3c
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x140048c50
test byte [rax + 0x1c], 4
je 0x140048c50
cmp byte [rax + 0x19], 2
jb 0x140048c50
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea edx, [rbx + 0x35]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140048c50
mov r8d, 0x4e20
mov ecx, 3
call fcn.140024420
mov edx, 0x2710
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140048bd3
cmp eax, 0x102
jne 0x140048b9c
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x140048b94
test byte [rcx + 0x1c], 4
je 0x140048b94
cmp byte [rcx + 0x19], 5
jb 0x140048b94
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov r8, r14
call fcn.140001024
mov r8d, 0x7530
jmp 0x140048b42
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x140048c41
test byte [rax + 0x1c], 4
je 0x140048c41
cmp byte [rax + 0x19], 2
jb 0x140048c41
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x38
jmp 0x140048c14
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
jne 0x140048c2c
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x140048c41
test byte [rax + 0x1c], 4
je 0x140048c41
cmp byte [rax + 0x19], 2
jb 0x140048c41
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x36
mov rcx, qword [0x14009b028]
mov r9d, eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140048c41
mov ecx, dword [rsp + 0x50]
test ecx, ecx
sete bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x14004e9fc
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 [0x14009b028]
lea rsi, [0x14009b028]
cmp rcx, rsi
je 0x14004ea43
test byte [rcx + 0x1c], 4
je 0x14004ea43
cmp byte [rcx + 0x19], 5
jb 0x14004ea43
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089c20]
mov edx, 0x8f
call fcn.140001024
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14004a8d0]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [0x14009f410], rax
test rax, rax
jne 0x14004eac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, rsi
je 0x14004eab5
test byte [rcx + 0x1c], 4
je 0x14004eab5
cmp byte [rcx + 0x19], 2
jb 0x14004eab5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089c20]
mov edx, 0x90
mov r9d, eax
call fcn.140001050
test edi, edi
je 0x14004eac9
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
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 0x140050c20
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.140069a1c
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140050c58
xor eax, eax
jmp 0x140050c8a
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
or eax, 0xffffffff
cmp dword [rsp + 0x58], 0
cmovne ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140051700
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 [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14005174f
test byte [rcx + 0x1c], 4
je 0x14005174f
cmp byte [rcx + 0x19], 5
jb 0x14005174f
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x30]
lea r8, [0x140089ca0]
call fcn.140001024
lea rcx, [0x14009f2b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
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]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400517b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140051805
test byte [rcx + 0x1c], 4
je 0x140051805
cmp byte [rcx + 0x19], 2
jb 0x140051805
lea edx, [rbx + 0x31]
jmp 0x1400517f2
call fcn.1400514c0
test eax, eax
jne 0x140051805
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x140051805
test byte [rax + 0x1c], 4
je 0x140051805
cmp byte [rax + 0x19], 2
jb 0x140051805
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
lea r8, [0x140089ca0]
mov r9d, eax
call fcn.140001050
lea rcx, [0x14009f2b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rbx, rbx
jne 0x14005182b
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
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 0x1400604f0
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, [0x14009b028]
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140060547
test byte [rcx + 0x1c], 4
je 0x140060547
cmp byte [rcx + 0x19], 5
jb 0x140060547
mov edx, 0xf
lea r8, [0x14008a7b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001024
xor ebx, ebx
mov r8d, dword [rsi + 0x30]
lea rdx, [0x14008a6c0]
mov rcx, r14
call fcn.14006afec
test eax, eax
jne 0x1400605af
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140060719
test byte [rcx + 0x1c], 4
je 0x140060719
cmp byte [rcx + 0x19], 2
jb 0x140060719
mov edx, 0x10
mov r9d, eax
lea r8, [0x14008a7b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x140060719
mov r8d, dword [rsi + 0x34]
lea rdx, str.AreaCode
mov rcx, r14
call fcn.14006afec
test eax, eax
jne 0x1400605ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140060719
test byte [rcx + 0x1c], 4
je 0x140060719
cmp byte [rcx + 0x19], 2
jb 0x140060719
mov edx, 0x11
jmp 0x140060597
mov r8d, ebx
cmp dword [rsi + 0x2c], ebx
setne r8b
lea rdx, str.UseGroup
mov rcx, r14
call fcn.14006afec
test eax, eax
jne 0x140060658
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140060719
test byte [rcx + 0x1c], 4
je 0x140060719
cmp byte [rcx + 0x19], 2
jb 0x140060719
mov edx, 0x12
jmp 0x140060597
cmp dword [rsi + 0x2c], ebx
jne 0x1400606ac
mov r8d, dword [rsi + 0x28]
lea rdx, str.DeviceID
mov rcx, r14
call fcn.14006afec
test eax, eax
jne 0x140060719
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140060719
test byte [rcx + 0x1c], 4
je 0x140060719
cmp byte [rcx + 0x19], 2
jb 0x140060719
mov edx, 0x13
jmp 0x140060597
lea r9, [rsi + 8]
cmp qword [rsi + 0x20], 8
jb 0x1400606ba
mov r9, qword [r9]
lea r8, str.GroupName
mov edx, 1
mov rcx, r14
call fcn.14006b0c8
test eax, eax
jne 0x140060713
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x140060711
test byte [rcx + 0x1c], 4
je 0x140060711
cmp byte [rcx + 0x19], 2
jb 0x140060711
mov edx, 0x14
mov r9d, eax
lea r8, [0x14008a7b0]
mov rcx, qword [rcx + 0x10]
call fcn.140001050
nop
jmp 0x140060719
jmp 0x140060719
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 0x14006788c
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 [0x14009b028]
lea r12, [0x14009b028]
lea r13, [0x14008acb8]
cmp rcx, r12
je 0x1400678dc
test byte [rcx + 0x1c], 2
je 0x1400678dc
cmp byte [rcx + 0x19], 5
jb 0x1400678dc
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
mov r8, r13
call fcn.140001024
test rdi, rdi
je 0x140067a8b
cmp dword [rdi], 0x14
jne 0x140067a8b
lea rdx, [rsp + 0x68]
mov dword [rdi + 4], ebx
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14006794c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140067945
test byte [rcx + 0x1c], 2
je 0x140067945
cmp byte [rcx + 0x19], 2
jb 0x140067945
mov rcx, qword [rcx + 0x10]
mov edx, VariantTimeToDosDateTime
mov r9d, eax
mov r8, r13
call fcn.140001050
mov eax, ebx
jmp 0x140067a90
mov rcx, rsi
call fcn.140066e68
mov rbp, rax
test rax, rax
jne 0x140067990
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140067986
test byte [rcx + 0x1c], 2
je 0x140067986
cmp byte [rcx + 0x19], 2
jb 0x140067986
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0xc]
mov r9d, esi
mov r8, r13
call fcn.140001050
mov eax, 8
jmp 0x140067a90
mov edx, dword [rsp + 0x68]
mov r9, rbp
mov r8d, esi
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x1400679f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140067a7e
test byte [rcx + 0x1c], 2
je 0x140067a7e
cmp byte [rcx + 0x19], 2
jb 0x140067a7e
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.140001050
jmp 0x140067a7e
lea r9, [rsp + 0x70]
mov rcx, rbp
lea r8, [rsp + 0x78]
lea rdx, [0x14008abd8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140067a49
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x140067a7e
test byte [rcx + 0x1c], 2
je 0x140067a7e
cmp byte [rcx + 0x19], 2
jb 0x140067a7e
mov edx, 0xe
jmp 0x1400679e4
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.140066f24
jmp 0x140067945
mov eax, 0x57
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140067aa8
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [0x14009b028]
lea rdi, [0x14009b028]
cmp rcx, rdi
je 0x140067af7
test byte [rcx + 0x1c], 2
je 0x140067af7
cmp byte [rcx + 0x19], 5
jb 0x140067af7
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008acb8]
mov edx, 0xf
call fcn.140001024
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x140067b6f
mov rax, qword [0x14009b028]
cmp rax, rdi
je 0x140067b6b
test byte [rax + 0x1c], 2
je 0x140067b6b
cmp byte [rax + 0x19], 2
jb 0x140067b6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x14008acb8]
mov r9d, eax
mov edx, 0x10
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
jmp 0x140067b79
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007e3c0
add rsp, 0x150
pop rdi
ret
Function at 0x1400681ac
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 [0x14009b028]
lea r14, [0x14009b028]
lea r15, [0x14008add8]
cmp rcx, r14
je 0x1400681ff
test byte [rcx + 0x1c], 2
je 0x1400681ff
cmp byte [rcx + 0x19], 5
jb 0x1400681ff
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r15
call fcn.140001024
mov edx, 0x25
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
mov rcx, rsi
test rax, rax
jne 0x140068255
call fcn.140067b9c
test rax, rax
jne 0x140068354
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140068352
test byte [rcx + 0x1c], 2
je 0x140068352
cmp byte [rcx + 0x19], 2
jb 0x140068352
lea edx, [rax + 0x18]
jmp 0x1400682e2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400682b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140068352
test byte [rcx + 0x1c], 2
je 0x140068352
cmp byte [rcx + 0x19], 2
jb 0x140068352
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x19]
mov r9d, eax
mov r8, r15
call fcn.140001050
jmp 0x140068352
inc ebx
mov ecx, ebx
add rcx, rcx
call fcn.140066e68
mov rdi, rax
test rax, rax
jne 0x1400682f0
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x140068352
test byte [rcx + 0x1c], 2
je 0x140068352
cmp byte [rcx + 0x19], 2
jb 0x140068352
lea edx, [rax + 0x1a]
mov rcx, qword [rcx + 0x10]
mov r8, r15
call fcn.140001024
jmp 0x140068352
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140068312
cmp eax, ebx
ja 0x140068312
mov rax, rdi
jmp 0x140068354
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006834a
test byte [rcx + 0x1c], 2
je 0x14006834a
cmp byte [rcx + 0x19], 2
jb 0x14006834a
mov rcx, qword [rcx + 0x10]
mov edx, 0x1b
mov r9d, eax
mov r8, r15
call fcn.140001050
mov rcx, rdi
call fcn.140066f24
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 0x140068378
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov rbp, r8
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
lea esi, [rax - 1]
cmp esi, 0x103
ja 0x1400684ca
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
mov r9d, esi
mov qword [rsp + 0x20], rbx
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
jne 0x1400684ca
xor r14d, r14d
mov r11d, 0x7fffffff
mov r10d, r14d
mov ecx, r14d
test rbx, rbx
je 0x140068444
mov r8d, r11d
mov rax, rbx
cmp word [rax], r14w
je 0x140068424
add rax, 2
sub r8, 1
jne 0x140068414
mov rax, r8
mov r9d, 0x80070057
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x14006844d
mov r10, r11
sub r10, r8
jmp 0x14006844d
mov r9d, 0x80070057
mov edx, r9d
test edx, edx
js 0x1400684ca
test rdi, rdi
je 0x140068486
mov r8, r11
mov rax, rdi
cmp word [rax], r14w
je 0x14006846c
add rax, 2
sub r8, 1
jne 0x14006845c
mov rax, r8
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x140068489
mov rcx, r11
sub rcx, r8
jmp 0x140068489
mov edx, r9d
test edx, edx
js 0x1400684ca
mov r8d, esi
sub rcx, r8
add rcx, r10
cmp rcx, 0x104
jae 0x1400684ca
lea r8, [rbx + rsi*2]
mov r9, rdi
mov qword [rsp + 0x20], r8
mov edx, 0x104
lea r8, str._s_s
mov rcx, rbp
call fcn.140002ac0
test eax, eax
js 0x1400684ca
mov eax, 1
jmp 0x1400684cc
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e3c0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006a4d0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rdx
mov rsi, r8
xor edx, edx
mov r14, rcx
mov ebx, edx
mov dword [rbp + 0x48], edx
mov edi, edx
mov dword [rbp + 0x30], edx
mov r15d, edx
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006a536
test byte [rcx + 0x1c], 2
je 0x14006a536
cmp byte [rcx + 0x19], 5
jb 0x14006a536
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x19]
lea r8, [0x14008ae40]
call fcn.140001024
xor edx, edx
cmp dx, word [r14]
jne 0x14006a546
mov eax, 0x57
jmp 0x14006a70c
lea rax, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006a5ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
mov ebx, eax
mov rax, rdi
cmove ebx, eax
test ebx, ebx
je 0x14006a5ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006a6f6
test byte [rcx + 0x1c], 2
je 0x14006a6f6
cmp byte [rcx + 0x19], 2
jb 0x14006a6f6
mov edx, 0x1a
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ae40]
call fcn.140001050
jmp 0x14006a6f6
mov ecx, dword [rbp + 0x48]
call fcn.140066e68
mov rdi, rax
test rax, rax
jne 0x14006a631
lea ebx, [rax + 8]
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006a6f6
test byte [rcx + 0x1c], 2
je 0x14006a6f6
cmp byte [rcx + 0x19], 2
jb 0x14006a6f6
mov r9d, dword [rbp + 0x48]
lea edx, [rdi + 0x1b]
jmp 0x14006a5d5
mov ecx, dword [rbp + 0x30]
add rcx, rcx
call fcn.140066e68
mov r15, rax
test rax, rax
jne 0x14006a67e
lea ebx, [rax + 8]
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006a6f6
test byte [rcx + 0x1c], 2
je 0x14006a6f6
cmp byte [rcx + 0x19], 2
jb 0x14006a6f6
mov r9d, dword [rbp + 0x30]
lea edx, [rbx + 0x14]
jmp 0x14006a5d5
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006a6e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006a6f6
test byte [rcx + 0x1c], 2
je 0x14006a6f6
cmp byte [rcx + 0x19], 2
jb 0x14006a6f6
mov edx, 0x1d
jmp 0x14006a5d2
mov qword [r12], rdi
test rsi, rsi
je 0x14006a6f6
mov eax, dword [rbp - 0x10]
mov dword [rsi], eax
mov rcx, r15
call fcn.140066f24
test ebx, ebx
je 0x14006a70a
mov rcx, rdi
call fcn.140066f24
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret