joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010aa0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov r12, r8
mov r14, rdx
mov ebp, esi
test rdx, rdx
je 0x140010b76
test r8, r8
je 0x140010b76
mov ebx, esi
lea r13d, [rsi + 1]
cmp dword [rdx], ebx
jle 0x140010b5d
mov r15d, esi
nop word [rax + rax]
mov rcx, qword [r12 + r15*8]
lea rdi, [r12 + r15*8]
lea rdx, [0x140081878]
call fcn.14005a3cc
test eax, eax
je 0x140010b29
mov rcx, qword [rdi]
lea rdx, str._accepteula
call fcn.14005a3cc
test eax, eax
je 0x140010b29
inc ebx
inc r15
mov ebp, esi
cmp ebx, dword [r14]
jl 0x140010af0
jmp 0x140010b5d
mov ecx, dword [r14]
mov ebp, r13d
lea eax, [rcx - 1]
cmp ebx, eax
jge 0x140010b57
nop word [rax + rax]
mov rax, qword [rdi + 8]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
mov ecx, dword [r14]
lea eax, [rcx - 1]
cmp ebx, eax
jl 0x140010b40
lea eax, [rcx - 1]
mov dword [r14], eax
mov rcx, qword [rsp + 0x50]
mov edx, ebp
call fcn.140010cc0
test eax, eax
cmovne ebp, r13d
test ebp, ebp
jmp 0x140010c58
mov r13d, 1
lea rcx, str.Shell32.dll
mov edx, r13d
mov r14d, esi
call fcn.140001700
mov rcx, rax
lea rdx, str.CommandLineToArgvW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140010c42
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x1400a4668]
call rbx
mov ebx, esi
mov r15, rax
cmp dword [0x1400a4668], ebx
jle 0x140010c42
nop dword [rax]
mov rcx, qword [r15 + rbp*8]
lea rdi, [r15 + rbp*8]
lea rdx, [0x140081878]
call fcn.14005a3cc
test eax, eax
je 0x140010c0d
mov rcx, qword [rdi]
lea rdx, str._accepteula
call fcn.14005a3cc
test eax, eax
je 0x140010c0d
inc ebx
inc rbp
cmp ebx, dword [0x1400a4668]
mov r14d, esi
jl 0x140010bd0
jmp 0x140010c42
mov ecx, dword [0x1400a4668]
mov r14d, r13d
lea eax, [rcx - 1]
cmp ebx, eax
jge 0x140010c3a
nop dword [rax]
mov rax, qword [rdi + 8]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
mov ecx, dword [0x1400a4668]
lea eax, [rcx - 1]
cmp ebx, eax
jl 0x140010c20
dec ecx
mov dword [0x1400a4668], ecx
mov rcx, qword [rsp + 0x50]
mov edx, r14d
call fcn.140010cc0
test eax, eax
cmovne r14d, r13d
test r14d, r14d
mov rbx, qword [rsp + 0x58]
setne sil
mov rbp, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140011340
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r15d, r15d
mov qword [rsp + 0x2c8], r13
cmp dword [rdx], 1
mov r12, r8
mov r14, rdx
mov r13, rcx
mov esi, r15d
jle 0x1400113fd
mov ebx, 1
mov ebp, ebx
nop word [rax + rax]
mov rcx, qword [r12 + rbp*8]
lea rdi, [r12 + rbp*8]
lea rdx, [0x140081b18]
call fcn.14005a3cc
test eax, eax
je 0x1400113ca
mov rcx, qword [rdi]
lea rdx, str._nobanner
call fcn.14005a3cc
test eax, eax
je 0x1400113ca
inc ebx
inc rbp
mov esi, r15d
cmp ebx, dword [r14]
jl 0x140011390
jmp 0x1400113fd
mov ecx, dword [r14]
mov esi, 1
lea eax, [rcx - 1]
cmp ebx, eax
jge 0x1400113f7
nop dword [rax]
mov rax, qword [rdi + 8]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
mov ecx, dword [r14]
lea eax, [rcx - 1]
cmp ebx, eax
jl 0x1400113e0
lea eax, [rcx - 1]
mov dword [r14], eax
mov r8, r12
mov rdx, r14
mov rcx, r13
call fcn.140010550
mov r13, qword [rsp + 0x2c8]
test eax, eax
jne 0x1400115b7
lea ecx, [rax + 1]
call fcn.14005a668
mov rcx, rax
call fcn.14005b384
mov ecx, eax
call fcn.14005b858
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x1400115b7
mov ecx, 1
call fcn.14005a668
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rbx, rax
call fcn.14005b338
test eax, eax
jne 0x14001148c
cmp qword [rsp + 0x40], r15
jne 0x14001148c
mov rcx, rbx
call fcn.14005b384
mov ecx, eax
mov edx, 0x20000
call fcn.14005b940
lea rdx, [0x140081c04]
mov rcx, rbx
call fcn.140011780
test esi, esi
jne 0x1400115c0
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov ebx, eax
call fcn.140059d40
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea rdx, [0x140081b48]
mov rcx, rdi
call fcn.140011820
lea rdx, [0x140081b68]
mov rcx, rdi
mov rbx, rax
call fcn.140011820
lea rdx, [0x140081b80]
mov rcx, rdi
mov rbp, rax
call fcn.140011820
lea rdx, [0x140081ba0]
mov rcx, rdi
mov r14, rax
call fcn.140011820
lea rdx, [0x140081bc0]
mov rcx, rdi
mov r12, rax
call fcn.140011820
mov rdi, rax
call fcn.1400107c0
test eax, eax
je 0x140011575
lea ecx, [rsi + 1]
call fcn.14005a668
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
mov rcx, rax
mov qword [rsp + 0x28], r12
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rbx
call fcn.1400117d0
lea ecx, [rsi + 1]
call fcn.14005a668
mov rcx, rax
call fcn.14005abf4
jmp 0x1400115be
mov ecx, 2
call fcn.14005a668
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
mov rcx, rax
mov qword [rsp + 0x28], r12
mov r9, rbp
mov qword [rsp + 0x20], r14
mov r8, rbx
call fcn.1400117d0
mov ecx, 2
call fcn.14005a668
mov rcx, rax
call fcn.14005abf4
jmp 0x1400115be
mov ecx, esi
call fcn.1400115f0
test esi, esi
sete r15b
mov eax, r15d
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400115f0
Capabilities:
Get file version info

Disassembly:
test ecx, ecx
jne 0x14001177f
mov r11, rsp
sub rsp, 0x278
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov qword [r11 + 8], rbx
lea rdx, [rsp + 0x50]
mov qword [r11 + 0x10], rbp
mov r8d, 0x104
mov qword [r11 + 0x18], rsi
xor ecx, ecx
mov qword [r11 + 0x20], rdi
mov qword [r11 - 8], r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov ebx, eax
call fcn.140059d40
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8d, ebx
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea rdx, [0x140081b48]
mov rcx, rdi
call fcn.140011820
lea rdx, [0x140081b68]
mov rcx, rdi
mov rbx, rax
call fcn.140011820
lea rdx, [0x140081b80]
mov rcx, rdi
mov rsi, rax
call fcn.140011820
lea rdx, [0x140081ba0]
mov rcx, rdi
mov rbp, rax
call fcn.140011820
lea rdx, [0x140081bc0]
mov rcx, rdi
mov r14, rax
call fcn.140011820
mov rdi, rax
call fcn.1400107c0
test eax, eax
je 0x140011700
mov ecx, 1
call fcn.14005a668
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
mov rcx, rax
mov qword [rsp + 0x28], r14
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, rbx
call fcn.1400117d0
mov ecx, 1
jmp 0x140011733
mov ecx, 2
call fcn.14005a668
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
mov rcx, rax
mov qword [rsp + 0x28], r14
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, rbx
call fcn.1400117d0
mov ecx, 2
call fcn.14005a668
mov rcx, rax
call fcn.14005abf4
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov r14, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004bd30
add rsp, 0x278
ret
Function at 0x140017590
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
xor r13d, r13d
lea ecx, [r13 + 2]
call fcn.140059d40
mov rbx, rax
mov word [rax], r13w
lea ecx, [r13 + 2]
call fcn.140059d40
mov r15, rax
mov qword [rsp + 0x78], rax
mov word [rax], r13w
lea r12, [0x14007a7c4]
mov rcx, r12
test rdi, rdi
cmovne rcx, rdi
call fcn.140059d48
mov rdi, rax
mov qword [rsp + 0x88], rax
mov rcx, rbx
call fcn.140059d2c
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x200
jne 0x1400176a7
mov rcx, r12
test rdi, rdi
cmovne rcx, rdi
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
mov rcx, rbx
call fcn.14005c43c
lea rdx, str._PROGRAMFILES_
mov rcx, rbx
call fcn.14004ebac
test rax, rax
je 0x14001769f
lea rdx, str._PROGRAMFILES_
mov rcx, rbx
call fcn.14004ebac
sub rax, rbx
sar rax, 1
mov ecx, eax
movups xmm0, xmmword [str._ProgramW6432_]
movups xmmword [rdi + rcx*2], xmm0
movsd xmm0, qword [0x1400821e0]
movsd qword [rdi + rcx*2 + 0x10], xmm0
mov eax, dword [0x1400821e8]
mov dword [rdi + rcx*2 + 0x18], eax
lea rdx, [rcx + 0xe]
lea rdx, [rdi + rdx*2]
nop dword [rax]
movzx eax, word [rdx]
mov word [rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x140017690
mov rcx, rbx
call fcn.140059d2c
mov rdx, rdi
lea rcx, [rsp + 0x80]
call fcn.14002cd00
mov rdx, qword [rax]
mov rcx, r12
test rdx, rdx
cmovne rcx, rdx
call fcn.140059d48
mov rsi, rax
mov qword [rsp + 0x78], rax
mov rcx, r15
call fcn.140059d2c
mov rcx, qword [rsp + 0x80]
call fcn.140059d2c
mov rcx, r12
test rsi, rsi
cmovne rcx, rsi
call fcn.140059d48
mov rbp, rax
mov qword [rsp + 0x88], rax
mov rcx, rdi
call fcn.140059d2c
cmp word [rsi], 0x22
jne 0x140017769
lea rdi, [rsi + 2]
mov edx, 0x22
mov rcx, rdi
call fcn.14004eb30
mov r15, rax
mov rbx, rbp
mov rcx, r12
test rax, rax
je 0x140017750
mov word [rax], r13w
test rdi, rdi
cmovne rcx, rdi
call fcn.140059d48
mov rbp, rax
mov rcx, rbx
call fcn.140059d2c
mov word [r15], 0x22
jmp 0x1400177cf
test rdi, rdi
cmovne rcx, rdi
call fcn.140059d48
mov rbp, rax
mov rcx, rbx
call fcn.140059d2c
jmp 0x1400177cf
mov rcx, rsi
call fcn.14002ce40
cmp eax, 0xffffffff
jne 0x1400177cf
mov rdi, r13
mov r15d, 0x20
mov edx, r15d
mov rcx, rsi
call fcn.14004fa80
mov rbx, rax
test rax, rax
je 0x1400177cf
test rdi, rdi
je 0x14001779b
mov word [rdi], r15w
mov word [rbx], r13w
mov rcx, rsi
call fcn.14002ce40
cmp eax, 0xffffffff
je 0x1400177b0
test al, 0x10
je 0x140017815
mov rdi, rbx
mov edx, r15d
mov rcx, rsi
call fcn.14004fa80
mov rbx, rax
test rax, rax
jne 0x140017792
test rdi, rdi
je 0x1400177cf
mov word [rdi], r15w
test rbp, rbp
cmovne r12, rbp
mov rcx, r12
mov qword [r14], r13
call fcn.140059d48
mov qword [r14], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov rcx, rsi
call fcn.140059d2c
nop
mov rcx, rbp
call fcn.140059d2c
mov rax, r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
jmp 0x1400177d9
Function at 0x140017cb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0xb0], r14
lea r8d, [r14 + 4]
lea rdx, str.HKLM
mov rcx, qword [rcx]
call fcn.14005bd3c
test eax, eax
je 0x140017d63
lea r8d, [r14 + 4]
lea rdx, str.HKCU
mov rcx, qword [rdi]
call fcn.14005bd3c
test eax, eax
je 0x140017d63
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 7]
mov rcx, qword [rdi]
call fcn.14001cdd0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140017e95
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017e95
mov r8d, 4
lea rdx, str.HKLM
mov rcx, qword [rdi]
call fcn.14005bd3c
mov rbp, qword [0x1400a3700]
test eax, eax
cmove rbp, qword [0x1400a36f8]
mov rax, qword [rdi]
add rax, 0xa
lea rcx, [0x14007a7c4]
cmovne rcx, rax
call fcn.140059d48
mov rbx, rax
mov qword [rsp + 0x60], rax
xor ecx, ecx
call fcn.140059d2c
nop
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call fcn.14001d250
cmp eax, 2
jne 0x140017e34
lea edx, [rax + 0x5a]
mov rcx, rbx
call fcn.14004fa80
test rax, rax
je 0x140017e05
mov edx, 0x5c
mov rcx, rbx
call fcn.14004fa80
mov word [rax], r14w
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
lea rcx, [rsp + 0xb8]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call fcn.14001d250
test eax, eax
jne 0x140017e8d
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rbx
call fcn.140059d2c
cmp dword [rsp + 0xb4], 0
jne 0x140017ea9
cmp dword [rsp + 0xb0], 0
je 0x140017eba
mov rdx, rsi
mov rcx, qword [rsp + 0xb0]
call fcn.140019660
nop
mov rcx, qword [rdi]
call fcn.140059d2c
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001a5e0
Capabilities:
Read file via mapping

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r14, rdx
xor sil, sil
xor r15d, r15d
mov qword [rdx], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x88], rax
cmp rax, 0xffffffffffffffff
je 0x14001a6f8
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor edx, edx
lea r8d, [r15 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x14001a6ef
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x14001a6e6
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14001a6dd
movsxd rax, dword [rdx + 0x3c]
movsxd rax, dword [rax + rdx + 8]
movabs rcx, 0x2b6109100
add rax, rcx
imul rcx, rax, 0x989680
mov qword [rsp + 0x40], rcx
mov dword [r14], ecx
sar rcx, 0x20
mov dword [r14 + 4], ecx
jmp 0x14001a6da
mov sil, 1
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001adc0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400a3758]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebx, ebx
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x68], rbx
xor sil, sil
mov word [rsp + 0x7c], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x70]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rax, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], ebx
mov dl, 2
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rsp + 0x60]
call fcn.140059d40
mov r9d, dword [rsp + 0x60]
lea edx, [rbx + 2]
mov rcx, qword [rsp + 0x70]
mov rdi, rax
lea rax, [rsp + 0x60]
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14001aeda
cmp ebx, dword [rdi]
jae 0x14001aed6
nop
mov rcx, qword [rsp + 0x68]
mov esi, ebx
add rsi, rsi
mov rdx, qword [rdi + rsi*8 + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14001aece
mov eax, dword [rdi + rsi*8 + 0x10]
test eax, 0xffffffef
setne cl
test al, 4
setne al
test al, cl
jne 0x14001aed4
inc ebx
cmp ebx, dword [rdi]
jb 0x14001aea0
cmp ebx, dword [rdi]
setne sil
mov rcx, rdi
call fcn.140059d2c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004bd30
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001afb0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setae al
add rsp, 0x28
ret
Function at 0x14001f3a0
Capabilities:
Write file on windows

Disassembly:
push r14
sub rsp, 0x50
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
mov r8d, ecx
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
mov r9d, 0x400
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r14d, eax
test eax, eax
je 0x14001f4f2
cmp byte [0x1400a468f], 0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x48], rsi
mov esi, 0x65
mov qword [rsp + 0x40], rdi
lea rdi, str.error
je 0x14001f44e
lea ecx, [rsi - 0x64]
mov qword [rsp + 0x78], rbp
call fcn.14005a668
lea ecx, [rsi - 0x29]
mov rdx, rax
mov rbp, rax
call fcn.14005c798
movzx ecx, si
mov rbx, rdi
mov rdx, rbp
call fcn.14005c798
movzx ecx, word [rbx + 2]
lea rbx, [rbx + 2]
test cx, cx
jne 0x14001f427
mov ecx, 0x3e
mov rdx, rbp
call fcn.14005c798
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x1400a468f], 0
je 0x14001f4d8
mov ecx, 1
call fcn.14005a668
mov ecx, 0x3c
mov rdx, rax
mov rbx, rax
call fcn.14005c798
mov ecx, 0x2f
mov rdx, rbx
call fcn.14005c798
nop dword [rax + rax]
mov rdx, rbx
movzx ecx, si
call fcn.14005c798
movzx eax, word [rdi + 2]
lea rdi, [rdi + 2]
movzx esi, ax
test ax, ax
jne 0x14001f4b0
mov ecx, 0x3e
mov rdx, rbx
call fcn.14005c798
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop r14
ret
Function at 0x140021110
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, r9
mov r15d, ecx
mov ecx, 2
call fcn.140059d40
mov rdi, rax
xor eax, eax
mov word [rdi], ax
lea r12, [0x14007a7c4]
mov r13, r12
test rbx, rbx
cmovne r13, rbx
mov rcx, r13
call fcn.140059d48
mov r14, rax
xor ecx, ecx
call fcn.140059d2c
lea rcx, str.SoftwareClassesCLSID_
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
mov rcx, r12
test rbx, rbx
cmovne rcx, rbx
call fcn.140059d48
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140014250
mov rcx, rbx
call fcn.140059d2c
lea rcx, str.Instance
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
mov rbp, qword [rsp + 0x78]
mov rcx, r12
test rbp, rbp
cmovne rcx, rbp
call fcn.140059d48
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140014250
mov rcx, rbx
call fcn.140059d2c
mov rbx, qword [rsp + 0x78]
mov rcx, r12
test rbx, rbx
cmovne rcx, rbx
call fcn.140059d48
mov rsi, rax
mov qword [rsp + 0x78], rax
mov rcx, rdi
call fcn.140059d2c
mov rcx, rbx
call fcn.140059d2c
mov rcx, rbp
call fcn.140059d2c
mov rcx, r14
call fcn.140059d2c
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14001fdd0
test r15d, r15d
je 0x14002138f
mov rax, qword [0x1400a5c18]
test rax, rax
je 0x140021277
mov ecx, 1
call rax
mov edx, 0x200
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, r13
call fcn.140059d48
mov r14, rax
xor ecx, ecx
call fcn.140059d2c
lea rcx, str.SoftwareWow6432NodeClassesCLSID_
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
mov rcx, r12
test rbx, rbx
cmovne rcx, rbx
call fcn.140059d48
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140014250
mov rcx, rbx
call fcn.140059d2c
lea rcx, str.Instance
call fcn.140059d48
mov rbx, rax
xor ecx, ecx
call fcn.140059d2c
mov rbp, qword [rsp + 0x78]
mov rcx, r12
test rbp, rbp
cmovne rcx, rbp
call fcn.140059d48
mov qword [rsp + 0x78], rax
xor ecx, ecx
call fcn.140059d2c
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140014250
mov rcx, rbx
call fcn.140059d2c
mov rdi, qword [rsp + 0x78]
mov rbx, rsi
test rdi, rdi
cmovne r12, rdi
mov rcx, r12
call fcn.140059d48
mov rsi, rax
mov qword [rsp + 0x78], rax
mov rcx, rbx
call fcn.140059d2c
mov rcx, rdi
call fcn.140059d2c
mov rcx, rbp
call fcn.140059d2c
mov rcx, r14
call fcn.140059d2c
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.14001fdd0
mov rax, qword [0x1400a5c18]
test rax, rax
je 0x14002138f
xor ecx, ecx
call rax
mov edx, 0x100
mov ecx, dword [0x1400a555c]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.140059d2c
Function at 0x14002cd00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
xor r8d, r8d
xor edx, edx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [rbp + 2]
mov esi, eax
call fcn.140059d40
mov qword [rbx], rax
mov word [rax], bp
lea rbp, [rsi*2 + 2]
mov rcx, qword [rbx]
mov rdx, rbp
call fcn.140059dcc
mov qword [rbx], rax
test rax, rax
je 0x14002cd62
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.14004e310
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbp, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14002ce40
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x48]
lea rcx, [0x1400a65b0]
xor r9d, r9d
lea rdx, [rsp + 0x50]
call fcn.14001afd0
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14002ce77
mov rcx, qword [rbx]
jmp 0x14002ce79
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
test rbx, rbx
je 0x14002ced4
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14002ced4
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002ceaf
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002cec5
call fcn.14004bd8c
mov qword [rbx + 8], 0
mov edx, 0x18
mov rcx, rbx
call fcn.14004bd8c
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14002cee0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov edi, r9d
mov qword [rsp + 0x20], rcx
mov rsi, r8
lea rcx, [0x1400a65b0]
mov ebp, edx
lea r8, [rsp + 0x30]
xor r9d, r9d
lea rdx, [rsp + 0x38]
call fcn.14001afd0
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x14002cf29
mov rcx, qword [rbx]
jmp 0x14002cf2b
xor ecx, ecx
mov eax, dword [rsp + 0x70]
mov r9d, edi
mov r8, rsi
mov dword [rsp + 0x20], eax
mov edx, ebp
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rdi, rax
test rbx, rbx
je 0x14002cf97
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14002cf97
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002cf72
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002cf88
call fcn.14004bd8c
mov qword [rbx + 8], 0
mov edx, 0x18
mov rcx, rbx
call fcn.14004bd8c
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret