joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140134850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140278c40
sub rsp, rax
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x140433190]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14013490a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140134948
lea rdi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1402b6a10
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1402776fc
mov rsi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.1402b6370
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 [0x140430040]
je 0x1401348fd
call fcn.140278ca0
int3
mov rax, rsi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140165890
test al, al
je 0x14013494b
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14013494e
mov eax, 0xffffffff
lock cmpxchg dword [0x140433190], ecx
je 0x140134884
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140433190]
mov dword [rsp + 0x2c], ecx
jmp 0x140134884
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140165890
test al, al
je 0x140134973
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140134973
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140134921
int3

Function at 0x140134980
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140433190]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x1401349a8
test rdi, rdi
je 0x1401349c1
call fcn.140134850
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 0x140139640
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x68]
mov qword [r9], 0
lea rcx, [0x1403af700]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1401397dd
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1401397cc
movabs r15, 0x7ffffffffffffff7
mov rcx, rdi
call fcn.14029c474
cmp rax, r15
ja 0x1401397d3
mov rbx, rax
lea r14, [rsp + 0x28]
cmp rax, 0xa
jbe 0x1401397b0
mov rax, rbx
or rax, 3
lea rcx, [rax + 1]
cmp rax, 0xb
mov r12d, reloc.WS2_32.dll_listen
cmovne r12, rcx
test r12, r12
js 0x1401397ce
lea rcx, [r12 + r12]
call fcn.14027768c
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 rdi, rcx
setb al
cmp rdi, r15
setae dl
or dl, al
je 0x1401397cc
test rbx, rbx
je 0x14013972f
add rbx, rbx
mov rdx, rdi
mov r8, rbx
call fcn.1402b6370
mov word [r15], 0
movsx rax, byte [rsp + 0x3f]
test rax, rax
cmovs rax, qword [rsp + 0x30]
cmovs r14, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov qword [rdx], r14
mov qword [rdx + 8], rax
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.14021c580
mov rcx, rsi
mov rdx, rdi
call fcn.14010ff50
mov rcx, rdi
call fcn.14021c6c0
cmp byte [rsp + 0x3f], 0
jns 0x140139787
mov rcx, qword [rsp + 0x28]
call fcn.1402776c8
mov bl, 1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140139799
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1401397bc
call fcn.140278ca0
int3
mov byte [rsp + 0x3f], bl
mov rcx, r14
jmp 0x140139704
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
call fcn.1402b9a10
lea rcx, [rsp + 0x28]
call fcn.1402b99d0
mov rcx, rsi
call fcn.14031c400
mov ebx, eax
jmp 0x140139789
Function at 0x140139b10
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1403d4b30]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140139c8c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140447130]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14029daf8
mov rcx, rbx
call fcn.14029c474
sub r14, rax
lea rdx, [0x1403dac18]
mov rcx, rbx
mov r8, r14
call fcn.14029daf8
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1402b6a10
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 0x140139bec
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14029db40
test eax, eax
je 0x140139cb8
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 0x140139c27
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14029db40
test eax, eax
je 0x140139cb8
xor eax, eax
mov byte [0x140446d21], al
mov dword [rsp + 0x30], 0
lea rcx, [0x1403e1038]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1403f5d22]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140139cbf
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [str._a_]
test eax, eax
je 0x140139cbf
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140447330], al
mov byte [0x140446d20], 1
test esi, esi
setns al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140139cab
call fcn.140278ca0
int3
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140139c29
xor eax, eax
jmp 0x140139c7f
Function at 0x140139ef0
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140139f24
mov rax, qword [rsi + 8]
test rax, rax
je 0x14013a02a
bt ebx, 8
jae 0x140139f40
mov eax, ebx
and eax, 0x200
jne 0x14013a02a
cmp edi, 2
lea rax, [0x140446d30]
lea rcx, [0x140446f30]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14013a02a
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 0x14013a02a
bt ebx, 8
jb 0x14013a02a
shr ebx, 9
and ebx, 1
or bl, byte [0x140447330]
test bl, 1
je 0x14013a02a
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14013a052
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 0x14013a013
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.140295ed0
test eax, eax
je 0x14013a05a
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140139ff3
cmp dword [rsp + 0x2c], 0
jne 0x14013a0d5
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14013a041
call fcn.140278ca0
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 0x140139fd2
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14013a068
test ecx, ecx
jne 0x14013a013
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14013a094
cmp dword [rsp + 0x2c], 2
jne 0x14013a0a5
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x14013a0a5
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x14013a0be
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14013a0ab
jmp 0x14013a0c1
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14013a01a
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14013a0e1
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x14013a117
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14029c474
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400e86e0
jmp 0x14013a02a
ud2
Function at 0x14013ab60
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x140430040]
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 0x14013ab94
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.140212080
cmp byte [rsi + 0x17], 0
jns 0x14013abb8
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.140212080
cmp byte [rdi + 0x17], 0
jns 0x14013abdd
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 0x14013abfc
mov rcx, qword [rsp + 0x40]
call fcn.1402776c8
cmp byte [rsp + 0x7f], 0
jns 0x14013ac0d
mov rcx, qword [rsp + 0x68]
call fcn.1402776c8
test esi, esi
setne al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14013ac2c
call fcn.140278ca0
int3
add rsp, 0x88
pop rdi
pop rsi
ret

Function at 0x14013acc0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140278c40
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1403d4b30]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140212080
test rsi, rsi
je 0x14013ada6
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1402b6a10
cmp byte [rsp + 0x47], 0
jns 0x14013ad3f
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 0x14013ad6e
cmp eax, 0x7fff
jae 0x14013adcb
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14010a630
cmp byte [rsp + 0x47], 0
js 0x14013adb4
lea rcx, [rsp + 0x30]
jmp 0x14013adb9
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
adc eax, 0x2e5e2c
int3
Function at 0x14013b690
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14013b6b7
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14013b6f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14013b717
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140278ca0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14013b7e0
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14013b70d
call fcn.140278ca0
int3
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14021c050
test al, al
je 0x14013b7cd
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.1402f6330
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, reloc.WS2_32.dll_recv
call fcn.1401f8290
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x14013b77a
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.1402120b0
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x14013b7a7
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401f8290
cmp byte [rsp + 0x57], 0
jns 0x14013b7c3
mov rcx, qword [rsp + 0x40]
call fcn.1402776c8
lea rcx, [rsp + 0x58]
call fcn.1402f63a0
xor eax, eax
jmp 0x14013b6f3
Function at 0x14013b7e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x14013b807
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14013b8b7
mov ecx, eax
mov al, 1
test cl, 0x10
je 0x14013b843
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14013b839
call fcn.140278ca0
int3
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14021c050
test al, al
je 0x14013b8b0
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.14010dcd0
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, reloc.WS2_32.dll_select
call fcn.1401f8290
mov rcx, rax
mov rdx, rsi
call fcn.1402f7400
lea rdx, str.:_not_a_directory
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, rax
call fcn.1401f8290
mov rcx, rdi
call fcn.14010e2d0
xor eax, eax
jmp 0x14013b81f
mov ecx, 2
call fcn.14021c050
test al, al
je 0x14013b8b0
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.1402f6330
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, reloc.WS2_32.dll_select
call fcn.1401f8290
mov rcx, rax
mov rdx, rsi
call fcn.1402f7400
mov rcx, rdi
call fcn.1402f63a0
jmp 0x14013b8b0
Function at 0x14013cc40
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14013b9b0
mov rax, qword [rsi]
test rax, rax
je 0x14013ccc1
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14013ccc8
lea rcx, [rsp + 0x28]
call fcn.14013c410
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14013ccb1
call fcn.140278ca0
int3
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14013cc90
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
jne 0x14013ccec
cmp byte [rbx + 0x27], 0
js 0x14013cce1
lea rcx, [rbx + 0x10]
jmp 0x14013cce5
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x14013ccf7
add rbx, 0x70
cmp rbx, r15
je 0x14013cc90
jmp 0x14013cccf
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x14013cd16
mov rcx, r14
mov rdx, rbx
call fcn.14031e840
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14013ccec
mov rcx, rdi
mov rdx, rbx
call fcn.14031e6d0
mov r14, rax
jmp 0x14013cd10

Function at 0x14013cd30
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14013b9b0
mov rax, qword [rsi]
test rax, rax
je 0x14013cdb1
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14013cdb8
lea rcx, [rsp + 0x28]
call fcn.14013c410
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14013cda1
call fcn.140278ca0
int3
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14013cd80
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x14013cddc
cmp byte [rbx + 0x27], 0
js 0x14013cdd1
lea rcx, [rbx + 0x10]
jmp 0x14013cdd5
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
je 0x14013cde7
add rbx, 0x70
cmp rbx, r15
je 0x14013cd80
jmp 0x14013cdbf
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x14013ce06
mov rcx, r14
mov rdx, rbx
call fcn.14031e840
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14013cddc
mov rcx, rdi
mov rdx, rbx
call fcn.14031e6d0
mov r14, rax
jmp 0x14013ce00

Function at 0x14013f7e0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14013f857
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140433230], rax
jne 0x14013f85a
mov rsi, rcx
call fcn.140162080
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14012f730
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14013f870
mov ecx, dword [0x14044735c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14043f8b8]
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 0x140147370
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 [0x140430040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140147340]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140449f00]
lea rdx, [0x1401471e0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140147470
cmp dword [0x140449f08], 0
jne 0x14014747d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140449f0c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14014741c
mov ecx, 1
mov edx, Ordinal_41
call fcn.140119ad0
test rax, rax
je 0x14014747d
mov r14, rax
mov ecx, dword [0x140449f0c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140147475
lea r15, [0x140449f10]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140449f20]
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 [0x140430040]
je 0x140147463
call fcn.140278ca0
int3
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140292318
mov rcx, r14
call fcn.140119970
mov rcx, rsi
mov rax, rdi
call qword [str._a_]
xor eax, eax
jmp 0x14014744c
Function at 0x140148ac0
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 0x140148bf4
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x140148c0d
mov qword [rsp + 0x20], r12
lea rcx, [0x1403af730]
lea r9, [0x1403f9f50]
xor edx, edx
mov r8d, reloc.WS2_32.dll_socket
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x140148bbb
mov rcx, qword [r14]
test rcx, rcx
jne 0x140148c27
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [str._a_]
test eax, eax
js 0x140148bd4
cmp rdi, rbx
je 0x140148b72
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x140148ba2
test r8b, r8b
js 0x140148b91
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.14021c6d0
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.1400e8bf0
jmp 0x140148b72
test r8b, r8b
jns 0x140148bae
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.1400e8a90
jmp 0x140148b72
test r15, r15
je 0x140148bf0
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
jmp 0x140148bea
mov rcx, qword [r14]
test rcx, rcx
je 0x140148bf0
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._a_]
xor eax, eax
jmp 0x140148b83
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._a_]
jmp 0x140148ae7
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._a_]
jmp 0x140148af8
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str._a_]
jmp 0x140148b31
Function at 0x140149da0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1403d4b30]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x140149e8c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1402b6a10
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x140149e93
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], Ordinal_27
xor ecx, ecx
call fcn.140149f00
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x140149e93
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x140149e9c
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140149ee7
call fcn.140278ca0
int3
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret