joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140149de0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, r9
mov r14, r8
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
lea rcx, [0x1403a0808]
lea r9, [0x14041f0a0]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140149f64
xor r12d, r12d
lea r13, [rsp + 0x60]
mov qword [r13], r12
mov r15, qword [rsp + 0x68]
movzx eax, byte [r14 + 0x17]
test al, al
mov rcx, qword [r14]
cmovns rcx, r14
lea rdx, [rsp + 0x48]
mov qword [rdx], rcx
cmovs rax, qword [r14 + 8]
mov qword [rdx + 8], rax
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.14017b8e0
mov rdx, qword [r14]
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x28], 0
mov rcx, r15
xor r8d, r8d
xor r9d, r9d
call qword [case.0x1402ceef0.0]
mov ebp, eax
mov rcx, r14
call fcn.14017b930
test ebp, ebp
js 0x140149f70
test bl, bl
je 0x140149efd
mov rcx, qword [rsp + 0x60]
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x140149f7c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], 0
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
jne 0x140149f88
mov byte [rsi], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x140149f9a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140149f43
mov qword [rsp + 0x68], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402ceef0.0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140253b80
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rsi], 1
mov dword [rsi + 4], 0
jmp 0x140149f23
mov byte [rsi], 1
mov dword [rsi + 4], 1
jmp 0x140149f19
mov byte [rsi], 1
mov dword [rsi + 4], 2
jmp 0x140149f19
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402ceef0.0]
jmp 0x140149f16
mov qword [rsp + 0x60], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402ceef0.0]
jmp 0x140149f23
Function at 0x14014beb0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, r9d
mov rsi, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
jne 0x14014bf86
or ebx, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14014c04c
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14014bf82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x14014c03e
call fcn.140206ee0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
cmp rbx, 0xffffffffffffffff
je 0x14014bf42
test rbx, rbx
je 0x14014bf65
call fcn.140206ee0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14014bf5d
mov qword [rsi + 8], rbx
call fcn.140206ee0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140253b80
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14014bf27
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14014c04c
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14014c03a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rdi, 0xffffffffffffffff
je 0x14014c045
call fcn.140206ee0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
or ebx, 8
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rdi
mov edx, ebx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov rbx, qword [r14]
cmovne r15, rbx
mov qword [rsp + 0x30], r15
test r15, r15
je 0x14014c054
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14014bf08
call fcn.140206ee0
mov rcx, rdi
call fcn.1401f3750
jmp 0x14014befe
xor edi, edi
jmp 0x14014bfce
xor ebx, ebx
jmp 0x14014bf1f
xor edi, edi
jmp 0x14014bfc6
mov byte [rsi], 0
jmp 0x14014bf65
mov byte [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14014bf65
call fcn.140206ee0
mov rcx, rdi
call fcn.1401f3750
jmp 0x14014bf65
Function at 0x14014f350
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x14014f3c1
xor r11d, r11d
mov rdi, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rbx, rsi
xor rbx, rdi
mov r14d, eax
lea rax, [rbx - 1]
mov r15, rsi
sub r15, rdi
xor r15, rsi
or r15, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
mov rsi, r15
not r15
and r15d, 1
or r15, rsi
mov rsi, rax
and r14d, esi
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x14014f36b
cmp rdx, r9
jb 0x14014f3d0
ja 0x14014f3fc
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x14014f3d2
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
mov rdx, rcx
and edx, eax
not rcx
or ecx, edx
mov eax, ecx
jmp 0x14014f3c8
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x14014f3ff
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
mov rcx, r8
and ecx, eax
not r8
and r8d, 1
or r8d, ecx
mov eax, r8d
jmp 0x14014f3c8
Function at 0x140151170
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r15, rcx
mov r13, qword [rsp + 0xb0]
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
xor r14d, r14d
test r13, r13
je 0x1401511e0
mov ecx, dword [r13 + 0x2c]
call fcn.14021c180
test rax, rax
je 0x1401512c1
mov r12, rax
xor ecx, ecx
call fcn.14021c1e0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r14, r12
mov rax, qword [r13 + 0x10]
lea rcx, [0x140155190]
cmp rax, rcx
jne 0x1401512b1
xorps xmm0, xmm0
movups xmmword [r14 + 0x5c], xmm0
movups xmmword [r14 + 0x50], xmm0
movups xmmword [r14 + 0x40], xmm0
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x20], xmm0
movaps xmm0, xmmword [0x140422410]
movups xmmword [r14], xmm0
movaps xmm0, xmmword [0x140422420]
movups xmmword [r14 + 0x10], xmm0
mov dword [r14 + 0x6c], 0x20
lea r14, [rsp + 0x20]
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
mov rcx, r14
mov rdx, r15
mov r8, rbx
call qword [case.0x1402ceef0.0]
mov rax, qword [r14]
mov rax, qword [rax + 0x20]
mov rcx, r14
mov rdx, rdi
call qword [case.0x1402ceef0.0]
mov rax, qword [r14]
test rsi, rsi
je 0x14015126a
mov ecx, dword [rax + 4]
mov dword [rsi], ecx
mov edx, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x28]
call fcn.14021c220
mov r14d, 1
mov rcx, qword [rsp + 0x28]
call fcn.14021c1e0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x1401512c5
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140253b80
mov eax, r14d
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x20]
call qword [case.0x1402ceef0.0]
jmp 0x14015122f
xor ecx, ecx
jmp 0x140151282
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [case.0x1402ceef0.0]
jmp 0x140151291

Function at 0x140151330
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx], rdx
je 0x140151362
mov ecx, dword [rdi + 0x2c]
call fcn.14021c180
test rax, rax
je 0x1401513c1
mov rbx, rax
mov rcx, qword [rsi + 8]
call fcn.14021c1e0
mov qword [rsi + 8], rbx
mov qword [rsi], rdi
mov rax, qword [rdi + 0x10]
lea rcx, [0x140155190]
cmp rax, rcx
jne 0x1401513b6
mov rax, qword [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x140422410]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x140422420]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov eax, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [case.0x1402ceef0.0]
jmp 0x1401513a9
xor eax, eax
jmp 0x1401513ae
Function at 0x140151460
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x140151497
mov rcx, qword [rsp + 0x80]
mov rdx, r9
call fcn.14017ef90
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401515aa
mov ebp, dword [rsp + 0x88]
lea rcx, [0x140462818]
lea rdx, [0x1401551d0]
call fcn.14022ced0
lea rax, [0x140462820]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi + 0x10]
cmp ebp, 1
jne 0x1401515ae
call fcn.14017f290
test eax, eax
je 0x1401515aa
test rbx, rbx
je 0x1401514ef
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call fcn.14016c580
test eax, eax
je 0x1401515aa
mov rax, qword [rdi + 0x10]
mov rax, qword [rax]
test ebp, ebp
je 0x1401515b8
add rax, 0x38
cmp qword [rax], 0
je 0x140151581
test rbx, rbx
je 0x1401515c1
cmp qword [rdi], rbx
je 0x14015153a
mov ecx, dword [rbx + 0x2c]
call fcn.14021c180
test rax, rax
je 0x1401515aa
mov r14, rax
mov rcx, qword [rdi + 8]
call fcn.14021c1e0
mov qword [rdi + 8], r14
mov qword [rdi], rbx
mov rax, qword [rbx + 0x10]
lea rcx, [0x140155190]
cmp rax, rcx
jne 0x14015159f
mov rax, qword [rdi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x140422410]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x140422420]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov ebx, 1
test rsi, rsi
je 0x140151592
mov rax, qword [rdi + 0x10]
mov qword [rsi], rax
mov eax, ebx
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
call qword [case.0x1402ceef0.0]
jmp 0x140151581
xor ebx, ebx
jmp 0x140151592
call fcn.140363e20
jmp 0x1401514ce
add rax, 0x28
jmp 0x140151502
mov dword [rsp + 0x20], 0x6d
lea r9, str....._third_party_boringssl_srccrypto_fipsmoduledigestsigndigestsign.c
xor ebx, ebx
mov ecx, 6
xor edx, edx
mov r8d, 0x77
call fcn.140363cb0
jmp 0x140151592
Function at 0x140153cd0
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0x28], r9
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov esi, 1
test rdx, rdx
je 0x140153e9b
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rsp + 0x150]
mov r13d, dword [rsi + 4]
xor r14d, r14d
movaps xmm7, xmmword [0x140422410]
movaps xmm8, xmmword [0x140422420]
lea r12, [rsp + 0x30]
mov eax, r14d
bswap eax
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0x30], rsi
je 0x140153d92
mov ecx, dword [rsi + 0x2c]
call fcn.14021c180
test rax, rax
je 0x140153efe
mov rbp, rax
mov rcx, qword [rsp + 0x38]
call fcn.14021c1e0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov rax, qword [rsi + 0x10]
lea rcx, [0x140155190]
cmp rax, rcx
jne 0x140153eee
mov rax, qword [rsp + 0x38]
movups xmmword [rax + 0x5c], xmm6
movups xmmword [rax + 0x50], xmm6
movups xmmword [rax + 0x40], xmm6
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x20], xmm6
movups xmmword [rax], xmm7
movups xmmword [rax + 0x10], xmm8
mov dword [rax + 0x6c], 0x20
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, r12
mov rdx, r15
mov r8, qword [rsp + 0x28]
call qword [case.0x1402ceef0.0]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov r8d, 4
mov rcx, r12
lea rdx, [rsp + 0x5c]
call qword [case.0x1402ceef0.0]
cmp rdi, r13
jb 0x140153e42
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov rcx, r12
mov rdx, rbx
call qword [case.0x1402ceef0.0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rax + 0x2c]
call fcn.14021c220
add rbx, r13
inc r14d
sub rdi, r13
jne 0x140153d5a
jmp 0x140153e96
movaps xmm0, xmmword [0x1403d47c0]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea r15, [rsp + 0x30]
mov rax, qword [r15]
mov rax, qword [rax + 0x20]
mov rcx, r15
mov rdx, r14
call qword [case.0x1402ceef0.0]
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
mov edx, dword [rax + 0x2c]
call fcn.14021c220
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.140255620
mov esi, 1
mov rcx, qword [rsp + 0x38]
call fcn.14021c1e0
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x140153f02
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140253b80
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x30]
call qword [case.0x1402ceef0.0]
jmp 0x140153dce
xor esi, esi
jmp 0x140153e9b
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [case.0x1402ceef0.0]
jmp 0x140153eaf
Function at 0x140162810
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1403d47c0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14016298c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140467d80]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14027df50
mov rcx, rbx
call fcn.14027c724
sub r14, rax
lea rdx, [0x1403d5af0]
mov rcx, rbx
mov r8, r14
call fcn.14027df50
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140255cd0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1401628ec
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14027df98
test eax, eax
je 0x1401629b0
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140162927
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14027df98
test eax, eax
je 0x1401629b0
xor eax, eax
mov byte [0x140467979], al
mov dword [rsp + 0x30], 0
lea rcx, [0x1403dcfc8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1404266de]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401629b7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [case.0x1402ceef0.0]
test eax, eax
je 0x1401629b7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140467f80], al
mov byte [0x140467978], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140253b80
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140162929
xor eax, eax
jmp 0x14016297f
Function at 0x140162c60
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140162c93
mov rax, qword [rsi + 8]
test rax, rax
je 0x140162d8f
bt ebx, 8
jae 0x140162caf
mov eax, ebx
and eax, 0x200
jne 0x140162d8f
cmp edi, 2
lea rax, [0x140467980]
lea rcx, [0x140467b80]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140162d8f
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x140162d8f
cmp byte [0x140467f80], 0
setne al
bt ebx, 8
jb 0x140162d8f
shr ebx, 9
and ebx, 1
or bl, al
je 0x140162d8f
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x140162deb
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x140162d7c
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.140270a30
test eax, eax
je 0x140162dae
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140162d5c
cmp dword [rsp + 0x2c], 0
jne 0x140162df3
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140253b80
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140162dbc
test ecx, ecx
jne 0x140162d7c
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140162e1c
cmp dword [rsp + 0x2c], 2
jne 0x140162e2d
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140162e2d
mov r14, rsi
jmp 0x140162d3f
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140162dff
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1402ca370
jmp 0x140162d8f
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140162e46
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140162e33
jmp 0x140162e49
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x140162d83
Function at 0x140163840
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
cmovs rax, qword [r8 + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.1401fd250
cmp byte [rsi + 0x17], 0
jns 0x14016389b
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.1401fd250
cmp byte [rdi + 0x17], 0
jns 0x1401638c0
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x1401638df
mov rcx, qword [rsp + 0x48]
call fcn.1402523c4
cmp byte [rsp + 0x87], 0
jns 0x1401638f3
mov rcx, qword [rsp + 0x70]
call fcn.1402523c4
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140253b80
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401639a0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.1401fd250
cmp byte [rdi + 0x17], 0
jns 0x1401639e1
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x140163a02
mov rcx, qword [rsp + 0x58]
call fcn.1402523c4
test rsi, rsi
je 0x140163aa9
test edi, edi
je 0x140163aa9
mov ecx, edi
add rcx, rcx
call fcn.1402523fc
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.1401fd250
cmp byte [r14 + 0x17], 0
jns 0x140163a45
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140163a65
mov rcx, qword [rsp + 0x58]
call fcn.1402523c4
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140163ac7
mov rcx, rbx
call fcn.14027c724
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1401fd710
cmp byte [rsi + 0x17], 0
js 0x140163aca
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140252404
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140253b80
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [rsi]
call fcn.1402523c4
jmp 0x140163a90
Function at 0x140168580
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1404680a8], 0
jne 0x1401685bd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1401685b0
mov dword [rdi], eax
mov dword [0x1404680b0], eax
mov qword [0x1404680a8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14016b350
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r14, [rcx + 0x38]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x14016b44b
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x14016b464
mov qword [rsp + 0x20], r12
lea rcx, [0x1403a19f8]
lea r9, [0x140429ae0]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x14016b47e
mov rcx, qword [r14]
test rcx, rcx
jne 0x14016b497
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [case.0x1402ceef0.0]
test eax, eax
js 0x14016b4b0
cmp rdi, rbx
je 0x14016b403
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x14016b432
test r8b, r8b
jns 0x14016b422
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.1400e55b0
add rdi, 0x18
mov rcx, rdi
mov rdx, rsi
call fcn.140112fb0
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
jmp 0x14016b403
test r8b, r8b
jns 0x14016b43e
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.1400e54c0
jmp 0x14016b403
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402ceef0.0]
jmp 0x14016b377
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402ceef0.0]
jmp 0x14016b388
test r15, r15
je 0x14016b4cc
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
jmp 0x14016b4c6
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402ceef0.0]
jmp 0x14016b3c1
mov rcx, qword [r14]
test rcx, rcx
je 0x14016b4cc
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1402ceef0.0]
xor eax, eax
jmp 0x14016b414