joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401499b0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x68]
mov qword [r9], 0
lea rcx, [0x14045f668]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140149b66
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140149b55
movabs r15, 0x7ffffffffffffff7
mov rcx, rdi
call fcn.1402bdc14
cmp rax, r15
ja 0x140149b5c
mov rbx, rax
lea r14, [rsp + 0x28]
cmp rax, 0xa
jbe 0x140149b39
mov rax, rbx
or rax, 3
lea rcx, [rax + 1]
cmp rax, 0xb
mov r12d, ntohl
cmovne r12, rcx
test r12, r12
js 0x140149b57
lea rcx, [r12 + r12]
call fcn.14029a62c
mov rcx, rax
mov qword [rsp + 0x28], rax
lea rax, [r15 + r12]
add rax, 9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea r15, [rcx + rbx*2]
cmp rcx, rdi
seta al
cmp r15, rdi
setbe dl
or dl, al
je 0x140149b55
test rbx, rbx
je 0x140149a9f
add rbx, rbx
mov rdx, rdi
mov r8, rbx
call fcn.1402d94c0
mov word [r15], 0
movsx rax, byte [rsp + 0x3f]
test rax, rax
cmovs rax, qword [rsp + 0x30]
cmovs r14, qword [rsp + 0x28]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rax
test rax, rax
js 0x140149b55
sete al
test r14, r14
setne cl
or cl, al
je 0x140149b55
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140213f20
mov rcx, rsi
mov rdx, rdi
call fcn.140119a00
mov rcx, rdi
call fcn.140214060
cmp byte [rsp + 0x3f], 0
jns 0x140149b10
mov rcx, qword [rsp + 0x28]
call fcn.14029a668
mov bl, 1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140149b22
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140149b45
call fcn.14029bbb0
int3
mov byte [rsp + 0x3f], bl
mov rcx, r14
jmp 0x140149a74
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
call fcn.1402da960
lea rcx, [rsp + 0x28]
call fcn.1402da920
mov rcx, rsi
call fcn.1403a2f60
mov ebx, eax
jmp 0x140149b12
Function at 0x140149c40
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140149c67
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140149ca1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140149cc7
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14029bbb0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140149da0
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140149cbd
call fcn.14029bbb0
int3
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140212c30
test al, al
je 0x140149d92
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x265
mov r9d, 2
call fcn.140313cd0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401e8c50
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x140149d2a
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
test rax, rax
js 0x140149d99
sete al
test rsi, rsi
setne cl
or cl, al
je 0x140149d99
lea rsi, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1402079d0
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x140149d6c
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e8c50
cmp byte [rsp + 0x57], 0
jns 0x140149d88
mov rcx, qword [rsp + 0x40]
call fcn.14029a668
lea rcx, [rsp + 0x58]
call fcn.140313d40
xor eax, eax
jmp 0x140149ca3
ud2
Function at 0x140149da0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x140149dc7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140149e77
mov ecx, eax
mov al, 1
test cl, 0x10
je 0x140149e03
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140149df9
call fcn.14029bbb0
int3
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140212c30
test al, al
je 0x140149e70
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.1401165d0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e8c50
mov rcx, rax
mov rdx, rsi
call fcn.140314fa0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401e8c50
mov rcx, rdi
call fcn.140116bd0
xor eax, eax
jmp 0x140149ddf
mov ecx, 2
call fcn.140212c30
test al, al
je 0x140149e70
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.140313cd0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e8c50
mov rcx, rax
mov rdx, rsi
call fcn.140314fa0
mov rcx, rdi
call fcn.140313d40
jmp 0x140149e70
Function at 0x14014b210
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.140149f70
mov rax, qword [rsi]
test rax, rax
je 0x14014b291
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14014b298
lea rcx, [rsp + 0x28]
call fcn.14014aa00
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14014b281
call fcn.14029bbb0
int3
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14014b260
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
jne 0x14014b2bc
cmp byte [rbx + 0x27], 0
js 0x14014b2b1
lea rcx, [rbx + 0x10]
jmp 0x14014b2b5
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x14014b2c7
add rbx, 0x70
cmp rbx, r15
je 0x14014b260
jmp 0x14014b29f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x14014b2e6
mov rcx, r14
mov rdx, rbx
call fcn.1403a4850
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14014b2bc
mov rcx, rdi
mov rdx, rbx
call fcn.1403a46e0
mov r14, rax
jmp 0x14014b2e0

Function at 0x14014b300
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.140149f70
mov rax, qword [rsi]
test rax, rax
je 0x14014b381
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14014b388
lea rcx, [rsp + 0x28]
call fcn.14014aa00
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14014b371
call fcn.14029bbb0
int3
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14014b350
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x14014b3ac
cmp byte [rbx + 0x27], 0
js 0x14014b3a1
lea rcx, [rbx + 0x10]
jmp 0x14014b3a5
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x14014b3b7
add rbx, 0x70
cmp rbx, r15
je 0x14014b350
jmp 0x14014b38f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x14014b3d6
mov rcx, r14
mov rdx, rbx
call fcn.1403a4850
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14014b3ac
mov rcx, rdi
mov rdx, rbx
call fcn.1403a46e0
mov r14, rax
jmp 0x14014b3d0
Function at 0x14014e050
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14014e13e
cmp qword [rsi], 0
jne 0x14014e13e
cmp dword [rsi + 0x14], 0
jne 0x14014e13e
cmp qword [rsi + 8], 0
jne 0x14014e13e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14014e0c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14014e110
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14014e0b8
mov qword [rsi], r14
call fcn.140212f50
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14014e0fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14014e126
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14014e0f2
mov qword [rsi + 8], r14
call fcn.140212f50
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140212f50
mov rcx, qword [rsi]
call fcn.1401fded0
mov qword [rsi], 0
jmp 0x14014e0a6
call fcn.140212f50
mov rcx, qword [rsi + 8]
call fcn.1401fded0
mov qword [rsi + 8], 0
jmp 0x14014e0df
mov rcx, rsi
call fcn.1403a78e0
mov rax, qword [rsi]
jmp 0x14014e08a

Function at 0x140157660
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14051b334]
cmp ecx, 0xffffffff
je 0x14015773a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14015773a
mov eax, dword [0x1405301b0]
mov ecx, dword [0x140527e80]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140157744
mov rbx, qword [0x1405301a8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140157794
mov rax, qword [0x14052e990]
inc rax
xor ecx, ecx
lea rdx, [0x14052e9a0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x1401577a1
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1405301a0]
inc ecx
mov dword [0x1405301a0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x14052e990], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140157791
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401577c0
jmp 0x14015768a
lea rcx, [0x1405301b0]
call fcn.14029a6ac
cmp dword [0x1405301b0], 0xffffffff
jne 0x1401576af
mov ecx, 8
call fcn.14029a62c
mov rbx, rax
mov qword [rax], 0
mov rcx, rax
call fcn.1401fec80
mov qword [0x1405301a8], rbx
lea rcx, [0x1405301b0]
call fcn.14029a760
jmp 0x1401576af
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1401576c7
inc rcx
cmp rcx, 0x100
jne 0x1401576da
jmp 0x140157720
Function at 0x1401577c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14029bb50
sub rsp, rax
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x14051b334]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14015787a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1401578b8
lea rdi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1402d9b60
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14029a69c
mov rsi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.1402d94c0
mov ecx, dword [rsp + 0x2c]
mov rdx, rsi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14015786d
call fcn.14029bbb0
int3
mov rax, rsi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140183bf0
test al, al
je 0x1401578bb
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1401578be
mov eax, 0xffffffff
lock cmpxchg dword [0x14051b334], ecx
je 0x1401577f4
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14051b334]
mov dword [rsp + 0x2c], ecx
jmp 0x1401577f4
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140183bf0
test al, al
je 0x1401578e3
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1401578e3
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140157891
int3

Function at 0x1401578f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14051b334]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140157918
test rdi, rdi
je 0x140157931
call fcn.1401577c0
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14015c430
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x140484a40]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14015c5ac
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140530650]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1402bee0c
mov rcx, rbx
call fcn.1402bdc14
sub r14, rax
lea rdx, [0x140490864]
mov rcx, rbx
mov r8, r14
call fcn.1402bee0c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1402d9b60
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 0x14015c50c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1402bee54
test eax, eax
je 0x14015c5d8
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 0x14015c547
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1402bee54
test eax, eax
je 0x14015c5d8
xor eax, eax
mov byte [0x140530241], al
mov dword [rsp + 0x30], 0
lea rcx, [0x140495c00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1404e37a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14015c5df
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140505c38]
test eax, eax
je 0x14015c5df
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140530850], al
mov byte [0x140530240], 1
test esi, esi
setns al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14015c5cb
call fcn.14029bbb0
int3
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x14015c549
xor eax, eax
jmp 0x14015c59f
Function at 0x14015c810
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 [0x140516040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x14015c844
mov rax, qword [rsi + 8]
test rax, rax
je 0x14015c94a
bt ebx, 8
jae 0x14015c860
mov eax, ebx
and eax, 0x200
jne 0x14015c94a
cmp edi, 2
lea rax, [0x140530250]
lea rcx, [0x140530450]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14015c94a
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 0x14015c94a
bt ebx, 8
jb 0x14015c94a
shr ebx, 9
and ebx, 1
or bl, byte [0x140530850]
test bl, 1
je 0x14015c94a
cmp edi, 2
lea rax, str._8N_
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14015c972
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x14015c933
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1402b7bc0
test eax, eax
je 0x14015c97a
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x14015c913
cmp dword [rsp + 0x2c], 0
jne 0x14015c9f5
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14015c961
call fcn.14029bbb0
int3
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x14015c8f2
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14015c988
test ecx, ecx
jne 0x14015c933
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14015c9b4
cmp dword [rsp + 0x2c], 2
jne 0x14015c9c5
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x14015c9c5
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x14015c9de
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14015c9cb
jmp 0x14015c9e1
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14015c93a
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14015ca01
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x14015ca37
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1402bdc14
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400e6470
jmp 0x14015c94a
ud2
Function at 0x14015d4a0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x14015d4d4
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], rax
test rax, rax
js 0x14015d593
sete al
test r8, r8
setne cl
or cl, al
je 0x14015d593
lea rsi, [rsp + 0x68]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1402079a0
cmp byte [rsi + 0x17], 0
jns 0x14015d515
mov rsi, qword [rsp + 0x68]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1402079a0
cmp byte [rdi + 0x17], 0
jns 0x14015d53a
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x57], 0
jns 0x14015d559
mov rcx, qword [rsp + 0x40]
call fcn.14029a668
cmp byte [rsp + 0x7f], 0
jns 0x14015d56a
mov rcx, qword [rsp + 0x68]
call fcn.14029a668
test esi, esi
setne al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x14015d589
call fcn.14029bbb0
int3
add rsp, 0x88
pop rdi
pop rsi
ret
ud2

Function at 0x14015d620
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.14029bb50
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140484a40]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.1402079a0
test rsi, rsi
je 0x14015d706
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1402d9b60
cmp byte [rsp + 0x47], 0
jns 0x14015d69f
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14015d6ce
cmp eax, 0x7fff
jae 0x14015d72b
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14010f060
cmp byte [rsp + 0x47], 0
js 0x14015d714
lea rcx, [rsp + 0x30]
jmp 0x14015d719
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
adc eax, 0x3a9b74
int3
Function at 0x140162490
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140162507
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14051b450], rax
jne 0x14016250a
mov rsi, rcx
call fcn.140177d60
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14014ced0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140162520
mov ecx, dword [0x14053087c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140527e80]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x210], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x140169b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140516040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140169b20]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140533400]
lea rdx, [0x140169970]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140169c50
cmp dword [0x140533408], 0
jne 0x140169c5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14053340c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140169bfc
mov ecx, 1
mov edx, 0x28
call fcn.1401268d0
test rax, rax
je 0x140169c5d
mov r14, rax
mov ecx, dword [0x14053340c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140169c55
lea r15, [0x140533410]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140533420]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140516040]
je 0x140169c43
call fcn.14029bbb0
int3
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1402b38b0
mov rcx, r14
call fcn.140126770
mov rcx, rsi
mov rax, rdi
call qword [0x140505c38]
xor eax, eax
jmp 0x140169c2c
Function at 0x14016c1b0
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 0x14016c2e4
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x14016c2fd
mov qword [rsp + 0x20], r12
lea rcx, [0x14045f6e8]
lea r9, [0x1404e7ff0]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x14016c2ab
mov rcx, qword [r14]
test rcx, rcx
jne 0x14016c317
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [0x140505c38]
test eax, eax
js 0x14016c2c4
cmp rdi, rbx
je 0x14016c273
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x14016c292
test r8b, r8b
jns 0x14016c265
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.1400e6980
jmp 0x14016c273
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
add rdi, 0x18
mov rcx, rdi
mov rdx, rsi
call fcn.140214070
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test r8b, r8b
jns 0x14016c29e
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.1400e6820
jmp 0x14016c273
test r15, r15
je 0x14016c2e0
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
jmp 0x14016c2da
mov rcx, qword [r14]
test rcx, rcx
je 0x14016c2e0
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140505c38]
xor eax, eax
jmp 0x14016c284
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140505c38]
jmp 0x14016c1d7
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140505c38]
jmp 0x14016c1e8
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140505c38]
jmp 0x14016c221