joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003fed0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x14010d2a0]
mov qword [rcx], rax
add rcx, 8
call fcn.14006ca20
lea rcx, [rsi + 0x10]
call fcn.14006ca20
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.14006ca20
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x140117d20]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.140051da0
lea rcx, [rsi + 0x2e0]
xor edx, edx
call fcn.14004df50
lea rcx, [rsi + 0x2f0]
xor edx, edx
call fcn.14004df50
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14004df50
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], ebp
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
mov byte [rsi + 0x368], bl
mov dword [rsi + 0x36c], edi
mov byte [rsi + 0x370], bl
movups xmmword [rsi + 0x378], xmm6
mov qword [rsi + 0x388], rbx
call fcn.140019c10
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x140117d24], edx
je 0x1400400f5
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.14007f9b0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x140040119
call fcn.140051950
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140051a00
mov qword [0x14013c9b8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x140117d28], edx
jne 0x14004012c
test dword [0x140117d2c], edx
jne 0x14004013a
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.140051b90
jmp 0x1400400b6
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14014f008]
jmp 0x1400400c3
cmp rax, 0x40
mov eax, 0x100
jmp 0x1400400ad
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x14004010e
Function at 0x140041860
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x140041890
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14004189e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14003bce0
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400418b4
mov rdi, rdx
jmp 0x140041875
jae 0x1400419a1
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400418c1
cvtsi2ss xmm0, rax
jmp 0x1400418d6
mov rcx, rdx
call fcn.140063890
mov rdi, rax
jmp 0x140041875
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1400c0528
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x140110f24]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x140041989
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x140041989
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x140041991
mov rcx, rdx
call fcn.140063890
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14004187e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140045370
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 [0x140129038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400453a3
mov rax, qword [rsi + 8]
test rax, rax
je 0x14004549b
mov eax, ebx
not eax
test eax, 0x300
je 0x14004549b
cmp edi, 2
lea rax, [0x14013ffe0]
lea rcx, [0x1401401e0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14004549b
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 0x14004549b
cmp byte [0x14013ffd0], 0
setne al
bt ebx, 8
jb 0x14004549b
shr ebx, 9
and ebx, 1
or bl, al
je 0x14004549b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x1400454f7
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 0x140045488
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400a8804
test eax, eax
je 0x1400454ba
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140045468
cmp dword [rsp + 0x2c], 0
jne 0x1400454ff
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008ec50
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 0x1400454c8
test ecx, ecx
jne 0x140045488
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140045528
cmp dword [rsp + 0x2c], 2
jne 0x140045539
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140045539
mov r14, rsi
jmp 0x14004544b
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14004550b
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.1400d7c70
jmp 0x14004549b
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140045552
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14004553f
jmp 0x140045555
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x14004548f
Function at 0x140047570
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140047597
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400475d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400475f0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008ec50
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.1400476c0
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008ec50
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140071d30
test al, al
jne 0x140047602
xor esi, esi
jmp 0x1400475d4
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x266
mov r9d, 2
call fcn.1400dec80
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400c0f40
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14006aef0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140047688
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x14004768c
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400c0f40
cmp byte [rsp + 0x4f], 0
jns 0x1400476a8
mov rcx, qword [rsp + 0x38]
call fcn.14008d7f8
lea rcx, [rsp + 0x50]
call fcn.1400ded00
jmp 0x1400475fe
Function at 0x1400476c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x1400476e7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140047719
mov dil, 1
test al, 0x10
je 0x1400477b8
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14008ec50
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140071d30
test al, al
je 0x1400477c6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x251
mov r9d, 2
call fcn.1400dec80
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c0f40
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14006aef0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14004784a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x14004784e
mov ecx, 2
call fcn.140071d30
test al, al
jne 0x1400477cd
xor edi, edi
jmp 0x1400476fd
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.14003abb0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c0f40
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14006aef0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140047879
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x14004787d
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400c0f40
cmp byte [rsp + 0x5f], 0
jns 0x14004786a
mov rcx, qword [rsp + 0x48]
call fcn.14008d7f8
lea rcx, [rsp + 0x60]
call fcn.1400ded00
jmp 0x1400477c6
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400c0f40
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400c0f40
cmp byte [rsp + 0x5f], 0
jns 0x1400478ae
mov rcx, qword [rsp + 0x48]
call fcn.14008d7f8
lea rcx, [rsp + 0x60]
call fcn.14003b0a0
jmp 0x1400477c6
Function at 0x140049e80
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [r8]
cmovns rax, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
cmovs rcx, qword [r8 + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.14002dc10
cmp byte [rsi + 0x17], 0
jns 0x140049ee0
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.14002dc10
cmp byte [rdi + 0x17], 0
jns 0x140049f05
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 0x140049f24
mov rcx, qword [rsp + 0x48]
call fcn.14008d7f8
cmp byte [rsp + 0x87], 0
jns 0x140049f38
mov rcx, qword [rsp + 0x70]
call fcn.14008d7f8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008ec50
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140049fe0
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 [0x140129038]
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.14002dc10
cmp byte [rdi + 0x17], 0
jns 0x14004a021
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 0x14004a042
mov rcx, qword [rsp + 0x58]
call fcn.14008d7f8
test rsi, rsi
je 0x14004a0e9
test edi, edi
je 0x14004a0e9
mov ecx, edi
add rcx, rcx
call fcn.14008d82c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.14002dc10
cmp byte [r14 + 0x17], 0
jns 0x14004a085
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 0x14004a0a5
mov rcx, qword [rsp + 0x58]
call fcn.14008d7f8
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14004a107
mov rcx, rbx
call fcn.1400ad360
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.14006aef0
cmp byte [rsi + 0x17], 0
js 0x14004a10a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14008d834
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008ec50
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [rsi]
call fcn.14008d7f8
jmp 0x14004a0d0
Function at 0x14004a120
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140140648]
mov ecx, dword [0x140138f34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004a15b
movzx eax, word [0x140140618]
cmp eax, 9
jne 0x14004a1a3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140140648]
call fcn.14008d910
cmp dword [0x140140648], 0xffffffff
jne 0x14004a145
xorps xmm0, xmm0
movups xmmword [0x140140638], xmm0
movups xmmword [0x140140628], xmm0
movups xmmword [0x140140618], xmm0
lea rcx, [0x140140618]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140140648]
call fcn.14008d9a8
jmp 0x14004a145
test eax, eax
je 0x14004a156
cmp eax, 6
jne 0x14004a1b3
mov eax, 2
jmp 0x14004a156
cmp eax, 0xc
jne 0x14004a1bf
mov eax, 3
jmp 0x14004a156
mov eax, 4
jmp 0x14004a156
Function at 0x14004b6a0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14010dbf0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004b78c
lea rdi, [rsp + 0x6c]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.140090d80
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 + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14004b793
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.14004b7f0
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004b793
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004b79c
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 rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14008ec50
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14004c9d0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14004cbec
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14012cdc0], rax
jne 0x14004cbef
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.140079870
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004cbae
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14004cb3c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004cba7
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x14004cbbb
mov edx, ecx
and edx, 0x1fc000
je 0x14004cbbb
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14007bfc0
mov ecx, dword [0x14014067c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140138f34]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008ec50
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140080160
test rax, rax
je 0x14004cbf2
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x14004cab7
xor ecx, ecx
jmp 0x14004ca9d
mov rcx, rbx
call fcn.14007cc20
jmp 0x14004ca4e
movaps xmm0, xmmword [0x14010dbf0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400e4830
mov rcx, rsi
call fcn.140019c10
mov rcx, r14
call fcn.1400e48a0
int3
int3
xor edi, edi
jmp 0x14004cae1
Function at 0x14004d8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004d958
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004d942
cmp dword [rsp + 0x38], 4
jne 0x14004d942
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008ec50
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14004d942

Function at 0x14004d960
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008ebf0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140090d80
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004da23
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004da27
lea rcx, [rsp + 0x840]
call fcn.1400ad360
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.1400275a0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008ec50
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14004da04
cmp eax, 2
jne 0x14004da83
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140090d80
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14004da7c
lea rcx, [rsp + 0x40]
call fcn.1400ad360
lea rdx, [rsp + 0x40]
jmp 0x14004d9f7
mov edi, 0xea
jmp 0x14004da04
mov edi, 0x3f4
jmp 0x14004da04
Function at 0x14004dc10
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 [0x140138de4]
cmp ecx, 0xffffffff
je 0x14004dcd9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14004dcd9
mov eax, dword [0x140142b78]
mov ecx, dword [0x140138f34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004dce3
mov rbx, qword [0x140142b70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004dd29
mov rax, qword [0x140141368]
inc rax
xor ecx, ecx
lea rdx, [0x140141370]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14004dd36
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov qword [0x140141368], 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 0x14004dd4b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14004dd50
jmp 0x14004dc3a
lea rcx, [0x140142b78]
call fcn.14008d910
cmp dword [0x140142b78], 0xffffffff
jne 0x14004dc5f
mov ecx, 8
call fcn.14008d7bc
mov rbx, rax
mov rcx, rax
call fcn.14006ca20
mov qword [0x140142b70], rbx
lea rcx, [0x140142b78]
call fcn.14008d9a8
jmp 0x14004dc5f
mov rcx, rbx
call fcn.14006ca30
jmp 0x14004dc77
inc rcx
cmp rcx, 0x100
jne 0x14004dc8a
jmp 0x14004dcbf
int3

Function at 0x14004dd50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14008ebf0
sub rsp, rax
mov rax, qword [0x140129038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140138de4]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14004de04
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14004de42
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140090d80
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14008d82c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400906d0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14008ec50
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140055840
test al, al
je 0x14004de45
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14004de48
mov eax, 0xffffffff
lock cmpxchg dword [0x140138de4], ecx
je 0x14004dd88
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140138de4]
mov dword [rsp + 0x2c], ecx
jmp 0x14004dd88
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140055840
test al, al
je 0x14004de6d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004de6d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004de1b
int3