joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140143300
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140143327
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140143361
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140143387
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140297b50
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140143450
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x14014337d
call fcn.140297b50
int3
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14020f6a0
test al, al
je 0x14014343d
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.14030e0f0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401e0d00
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x1401433ea
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
lea rdx, [rsp + 0x30]
mov qword [rdx], rsi
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.140204800
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x140143417
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401e0d00
cmp byte [rsp + 0x57], 0
jns 0x140143433
mov rcx, qword [rsp + 0x40]
call fcn.140296608
lea rcx, [rsp + 0x58]
call fcn.14030e160
xor eax, eax
jmp 0x140143363

Function at 0x140143450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x140143477
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140143527
mov ecx, eax
mov al, 1
test cl, 0x10
je 0x1401434b3
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x1401434a9
call fcn.140297b50
int3
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14020f6a0
test al, al
je 0x140143520
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140114680
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e0d00
mov rcx, rax
mov rdx, rsi
call fcn.14030f390
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401e0d00
mov rcx, rdi
call fcn.140114c90
xor eax, eax
jmp 0x14014348f
mov ecx, 2
call fcn.14020f6a0
test al, al
je 0x140143520
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.14030e0f0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401e0d00
mov rcx, rax
mov rdx, rsi
call fcn.14030f390
mov rcx, rdi
call fcn.14030e160
jmp 0x140143520
Function at 0x1401448b0
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 [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.140143620
mov rax, qword [rsi]
test rax, rax
je 0x140144931
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x140144938
lea rcx, [rsp + 0x28]
call fcn.140144080
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140144921
call fcn.140297b50
int3
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x140144900
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
jne 0x14014495c
cmp byte [rbx + 0x27], 0
js 0x140144951
lea rcx, [rbx + 0x10]
jmp 0x140144955
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x140144967
add rbx, 0x70
cmp rbx, r15
je 0x140144900
jmp 0x14014493f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x140144986
mov rcx, r14
mov rdx, rbx
call fcn.140390630
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14014495c
mov rcx, rdi
mov rdx, rbx
call fcn.1403904d0
mov r14, rax
jmp 0x140144980

Function at 0x1401449a0
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 [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.140143620
mov rax, qword [rsi]
test rax, rax
je 0x140144a21
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x140144a28
lea rcx, [rsp + 0x28]
call fcn.140144080
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140144a11
call fcn.140297b50
int3
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x1401449f0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x140144a4c
cmp byte [rbx + 0x27], 0
js 0x140144a41
lea rcx, [rbx + 0x10]
jmp 0x140144a45
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x140144a57
add rbx, 0x70
cmp rbx, r15
je 0x1401449f0
jmp 0x140144a2f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x140144a76
mov rcx, r14
mov rdx, rbx
call fcn.140390630
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x140144a4c
mov rcx, rdi
mov rdx, rbx
call fcn.1403904d0
mov r14, rax
jmp 0x140144a70
Function at 0x1401487d0
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 0x1401488be
cmp qword [rsi], 0
jne 0x1401488be
cmp dword [rsi + 0x14], 0
jne 0x1401488be
cmp qword [rsi + 8], 0
jne 0x1401488be
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140148840
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140148890
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140148838
mov qword [rsi], r14
call fcn.14020f940
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14014887a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1401488a6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140148872
mov qword [rsi + 8], r14
call fcn.14020f940
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.14020f940
mov rcx, qword [rsi]
call fcn.1401fa240
mov qword [rsi], 0
jmp 0x140148826
call fcn.14020f940
mov rcx, qword [rsi + 8]
call fcn.1401fa240
mov qword [rsi + 8], 0
jmp 0x14014885f
mov rcx, rsi
call fcn.140393880
mov rax, qword [rsi]
jmp 0x14014880a

Function at 0x140152c20
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 [0x140502a7c]
cmp ecx, 0xffffffff
je 0x140152c42
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140152c47
call fcn.140152d70
mov eax, dword [0x140517930]
mov ecx, dword [0x14050f5f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140152cf7
mov rbx, qword [0x140517928]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140152d47
mov rax, qword [0x140516118]
inc rax
xor ecx, ecx
lea rdx, [0x140516120]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140152d54
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140517920]
inc ecx
mov dword [0x140517920], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140516118], 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 0x140152d44
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140517930]
call fcn.14029664c
cmp dword [0x140517930], 0xffffffff
jne 0x140152c6c
mov ecx, 8
call fcn.1402965cc
mov rbx, rax
mov qword [rax], 0
mov rcx, rax
call fcn.1401fae80
mov qword [0x140517928], rbx
lea rcx, [0x140517930]
call fcn.140296700
jmp 0x140152c6c
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140152c84
inc rcx
cmp rcx, 0x100
jne 0x140152c97
jmp 0x140152cdd
Function at 0x140152d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140297af0
sub rsp, rax
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x140502a7c]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140152e2a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140152e68
lea rdi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1402d26c0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14029663c
mov rsi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.1402d2020
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 [0x1404fe040]
je 0x140152e1d
call fcn.140297b50
int3
mov rax, rsi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14017a410
test al, al
je 0x140152e6b
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140152e6e
mov eax, 0xffffffff
lock cmpxchg dword [0x140502a7c], ecx
je 0x140152da4
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140502a7c]
mov dword [rsp + 0x2c], ecx
jmp 0x140152da4
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14017a410
test al, al
je 0x140152e93
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140152e93
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140152e41
int3

Function at 0x140152ea0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140502a7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140152ec8
test rdi, rdi
je 0x140152ee1
call fcn.140152d70
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 0x140158a70
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x140470090]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140158bec
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140517df0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1402ba040
mov rcx, rbx
call fcn.1402b8034
sub r14, rax
lea rdx, [0x14047a444]
mov rcx, rbx
mov r8, r14
call fcn.1402ba040
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1402d26c0
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 0x140158b4c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1402ba088
test eax, eax
je 0x140158c18
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 0x140158b87
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1402ba088
test eax, eax
je 0x140158c18
xor eax, eax
mov byte [0x1405179e1], al
mov dword [rsp + 0x30], 0
lea rcx, [0x14047fa30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1404ccf10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140158c1f
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [case.0x1403053b8.0]
test eax, eax
je 0x140158c1f
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140517ff0], al
mov byte [0x1405179e0], 1
test esi, esi
setns al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140158c0b
call fcn.140297b50
int3
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140158b89
xor eax, eax
jmp 0x140158bdf
Function at 0x140158e50
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 [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140158e84
mov rax, qword [rsi + 8]
test rax, rax
je 0x140158f8a
bt ebx, 8
jae 0x140158ea0
mov eax, ebx
and eax, 0x200
jne 0x140158f8a
cmp edi, 2
lea rax, [0x1405179f0]
lea rcx, [0x140517bf0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140158f8a
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 0x140158f8a
bt ebx, 8
jb 0x140158f8a
shr ebx, 9
and ebx, 1
or bl, byte [0x140517ff0]
test bl, 1
je 0x140158f8a
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x140158fb2
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 0x140158f73
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1402b1fe0
test eax, eax
je 0x140158fba
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140158f53
cmp dword [rsp + 0x2c], 0
jne 0x140159035
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140158fa1
call fcn.140297b50
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 0x140158f32
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140158fc8
test ecx, ecx
jne 0x140158f73
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140158ff4
cmp dword [rsp + 0x2c], 2
jne 0x140159005
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x140159005
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x14015901e
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14015900b
jmp 0x140159021
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x140158f7a
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140159041
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x140159077
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1402b8034
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400e6500
jmp 0x140158f8a
ud2
Function at 0x140159ac0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x1404fe040]
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 0x140159af4
mov rax, qword [r8 + 8]
mov r8, qword [r8]
lea rdx, [rsp + 0x58]
mov qword [rdx], r8
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x68]
mov rcx, rsi
call fcn.140204350
cmp byte [rsi + 0x17], 0
jns 0x140159b18
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.140204350
cmp byte [rdi + 0x17], 0
jns 0x140159b3d
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 0x140159b5c
mov rcx, qword [rsp + 0x40]
call fcn.140296608
cmp byte [rsp + 0x7f], 0
jns 0x140159b6d
mov rcx, qword [rsp + 0x68]
call fcn.140296608
test esi, esi
setne al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x1404fe040]
je 0x140159b8c
call fcn.140297b50
int3
add rsp, 0x88
pop rdi
pop rsi
ret

Function at 0x140159c20
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140297af0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140470090]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140204350
test rsi, rsi
je 0x140159d06
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1402d26c0
cmp byte [rsp + 0x47], 0
jns 0x140159c9f
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 0x140159cce
cmp eax, 0x7fff
jae 0x140159d2b
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14010d100
cmp byte [rsp + 0x47], 0
js 0x140159d14
lea rcx, [rsp + 0x30]
jmp 0x140159d19
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
adc eax, 0x3950bc
int3
Function at 0x14015e4d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14015e547
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140502bb0], rax
jne 0x14015e54a
mov rsi, rcx
call fcn.14016e430
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140147090
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14015e560
mov ecx, dword [0x14051801c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14050f5f0]
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 0x140161d10
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 [0x1404fe040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140161ce0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140518d10]
lea rdx, [0x140161b30]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140161e10
cmp dword [0x140518d18], 0
jne 0x140161e1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140518d1c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140161dbc
mov ecx, 1
mov edx, 0x28
call fcn.140123d50
test rax, rax
je 0x140161e1d
mov r14, rax
mov ecx, dword [0x140518d1c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140161e15
lea r15, [0x140518d20]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140518d30]
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 [0x1404fe040]
je 0x140161e03
call fcn.140297b50
int3
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1402adcd0
mov rcx, r14
call fcn.140123bf0
mov rcx, rsi
mov rax, rdi
call qword [case.0x1403053b8.0]
xor eax, eax
jmp 0x140161dec
Function at 0x1401636f0
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 0x140163824
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x14016383d
mov qword [rsp + 0x20], r12
lea rcx, [0x14044a6e8]
lea r9, [0x1404d1820]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x1401637eb
mov rcx, qword [r14]
test rcx, rcx
jne 0x140163857
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [case.0x1403053b8.0]
test eax, eax
js 0x140163804
cmp rdi, rbx
je 0x1401637a2
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x1401637d2
test r8b, r8b
js 0x1401637c1
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.140210ab0
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.1400e6b60
jmp 0x1401637a2
test r8b, r8b
jns 0x1401637de
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.1400e6a00
jmp 0x1401637a2
test r15, r15
je 0x140163820
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
jmp 0x14016381a
mov rcx, qword [r14]
test rcx, rcx
je 0x140163820
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1403053b8.0]
xor eax, eax
jmp 0x1401637b3
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1403053b8.0]
jmp 0x140163717
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1403053b8.0]
jmp 0x140163728
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1403053b8.0]
jmp 0x140163761