joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d7c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x14000d8e0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x14000d820
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x14000d820
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x14000d820

Function at 0x140023690
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1400236d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400236f1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400236cf
mov qword [rsi], rdi
call fcn.140053900
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140023707
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140053900
mov rcx, qword [rsi]
call fcn.140053910
mov qword [rsi], 0
jmp 0x1400236bd
int3
Function at 0x140023970
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1400239b6
mov r15, rbx
test r15, r15
je 0x140023a92
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140023a12
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140023a01
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140092af0
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140023992
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x140023aae
lea rcx, [r13*8]
call fcn.1400648f0
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140023a74
lea r15, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x140023a92
mov r10, qword [r14 + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140023a5c
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140023a94
add rbx, 0xfffffffffffffff8
jne 0x140023a87
ud2
test r12, r12
je 0x140023992
mov rcx, r12
call fcn.14006492c
mov r15, qword [rsi + 0x10]
jmp 0x140023992
call fcn.140093c50
int3
Function at 0x140025270
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140025440
mov eax, dword [rsi]
mov dword [0x1400e5120], eax
mov bl, 1
test al, 1
jne 0x1400252c1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x1400252b5
call fcn.140065b40
int3
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1400f45c8]
test rcx, rcx
je 0x1400252ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f45c8], 0
cmp qword [0x1400f45d0], 0
jne 0x1400252ef
and byte [0x1400e5120], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140025318
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x140025306
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140025391
mov qword [0x1400f45c8], rax
jmp 0x14002529e
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x140025326
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400253e0
lea rdi, [rsi + 8]
mov rcx, qword [0x1400f45d0]
test rcx, rcx
jne 0x140025361
mov ecx, 0x18
call fcn.1400648f0
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f45d0], rax
mov rdx, rdi
call fcn.140047bf0
cmp dword [rsi + 0x24], 0
jne 0x140025385
mov rcx, qword [0x1400f45d0]
cmp byte [rcx + 0x17], 0
jns 0x14002537f
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400ad000
mov ebx, eax
jmp 0x14002529e
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, [0x1400cb764]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x232
call fcn.1400538e0
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1400b0a10
mov rcx, r14
call fcn.1400b0c20
mov rax, qword [rsi + 0x28]
jmp 0x14002530f
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, [0x1400cb764]
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x238
call fcn.1400538e0
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1400b0a10
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400acfd0
mov rcx, rbx
call fcn.1400b0c20
jmp 0x14002532f
Function at 0x1400268e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp r9, 2
jb 0x140026a10
cmp word [r8 + 2], 0x3a
jne 0x140026a10
movzx eax, word [r8]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x140026a10
mov ebx, 2
xor eax, eax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, 2
jb 0x140026a19
cmp word [rcx + 2], 0x3a
jne 0x140026a19
movzx r10d, word [rcx]
and r10d, 0xffffffdf
add r10d, 0xffffffa5
cmp r10w, 0xffe6
setae r10b
not al
test al, r10b
je 0x140026a19
cmp r9, rbx
cmovae r9, rbx
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
mov qword [rdx + 8], 2
lea rcx, [rsp + 0x28]
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov r8d, 1
call fcn.140056a20
test al, al
je 0x1400269c6
mov rcx, qword [rdi + 8]
sub rcx, rbx
jb 0x140026a3d
mov rax, qword [rsi + 8]
cmp rax, 1
jbe 0x140026a3d
add rax, 0xfffffffffffffffe
cmp rcx, rax
je 0x1400269e7
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x1400269df
call fcn.140065b40
int3
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov al, 1
test rcx, rcx
je 0x1400269c8
add ebx, ebx
add rbx, qword [rdi]
mov rdx, qword [rsi]
xor r8d, r8d
movzx r9d, word [rbx + r8*2]
cmp r9w, word [rdx + r8*2 + 4]
jne 0x1400269c6
inc r8
cmp rcx, r8
jne 0x1400269f9
jmp 0x1400269c8
mov al, 1
xor ebx, ebx
jmp 0x140026934
cmp r9, rdx
jne 0x1400269c6
mov al, 1
test r9, r9
je 0x1400269c8
xor edx, edx
movzx r10d, word [r8 + rdx*2]
cmp r10w, word [rcx + rdx*2]
jne 0x1400269c6
inc rdx
cmp r9, rdx
jne 0x140026a27
jmp 0x1400269c8
lea rcx, [0x1400c8b3f]
call fcn.140093c10
int3

Function at 0x140027b70
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400f4638]
test rdi, rdi
jne 0x140027c22
mov ecx, 0x50
call fcn.1400648f0
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.1400648f0
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140027c4b
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400f4638], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140027c4b
mov rcx, rax
call fcn.14007de28
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140027c50
test rdi, rdi
sete al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140027c3f
call fcn.140065b40
int3
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
ud2
Function at 0x14002a620
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400f4668]
mov ecx, dword [0x1400f16d8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a687
lea rax, [0x1400f4660]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002a67d
call fcn.140065b40
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400f4668]
call fcn.14006497c
cmp dword [0x1400f4668], 0xffffffff
jne 0x14002a65c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140093190
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.1400648f0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400f46b0]
mov ecx, dword [0x1400f16d8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a747
lea r8, [0x1400f4680]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002a840
mov qword [0x1400f4660], rsi
lea rcx, [0x1400f4668]
call fcn.140064a30
jmp 0x14002a65c
lea rcx, [0x1400f46b0]
call fcn.14006497c
cmp dword [0x1400f46b0], 0xffffffff
jne 0x14002a718
xorps xmm0, xmm0
movups xmmword [0x1400f46a0], xmm0
movups xmmword [0x1400f4690], xmm0
movups xmmword [0x1400f4680], xmm0
lea rcx, [0x1400f4680]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f46b0]
call fcn.140064a30
jmp 0x14002a718

Function at 0x14002a790
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f46b0]
mov ecx, dword [0x1400f16d8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a7cb
movzx eax, word [0x1400f4680]
cmp eax, 9
jne 0x14002a813
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1400f46b0]
call fcn.14006497c
cmp dword [0x1400f46b0], 0xffffffff
jne 0x14002a7b5
xorps xmm0, xmm0
movups xmmword [0x1400f46a0], xmm0
movups xmmword [0x1400f4690], xmm0
movups xmmword [0x1400f4680], xmm0
lea rcx, [0x1400f4680]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f46b0]
call fcn.140064a30
jmp 0x14002a7b5
test eax, eax
je 0x14002a7c6
cmp eax, 6
jne 0x14002a823
mov eax, 2
jmp 0x14002a7c6
cmp eax, 0xc
jne 0x14002a82f
mov eax, 3
jmp 0x14002a7c6
mov eax, 4
jmp 0x14002a7c6
Function at 0x14002c4a0
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 0x14002c58e
cmp qword [rsi], 0
jne 0x14002c58e
cmp dword [rsi + 0x14], 0
jne 0x14002c58e
cmp qword [rsi + 8], 0
jne 0x14002c58e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x14002c510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002c560
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002c508
mov qword [rsi], r14
call fcn.140053900
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14002c54a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14002c576
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002c542
mov qword [rsi + 8], r14
call fcn.140053900
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.140053900
mov rcx, qword [rsi]
call fcn.140053910
mov qword [rsi], 0
jmp 0x14002c4f6
call fcn.140053900
mov rcx, qword [rsi + 8]
call fcn.140053910
mov qword [rsi + 8], 0
jmp 0x14002c52f
mov rcx, rsi
call fcn.1400b1500
mov rax, qword [rsi]
jmp 0x14002c4da

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c69e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20e
call fcn.1400538e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400547b0
cmp byte [rdi + 0x17], 0
jns 0x14002c7f2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140054840
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002c823
call fcn.140065b40
int3
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002c830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c69e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x236
call fcn.1400538e0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400547b0
cmp byte [rdi + 0x17], 0
jns 0x14002c8a2
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.140054840
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002c8de
call fcn.140065b40
int3
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002c8f0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140093190
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002c98f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.14007de28
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14004fed0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.1400272c0
mov rcx, rsi
mov rdx, r14
call fcn.1400268a0
mov rcx, r14
call fcn.140050010
mov rcx, rbx
call fcn.140050010
cmp edi, 0x103
setb al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002c9b2
call fcn.140065b40
int3
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002c9c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140093190
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002ca5f
cmp word [rsp + 0x70], 0
je 0x14002ca5f
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.14007de28
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14004fed0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x14002ca51
call fcn.140065b40
int3
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400c69e0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14004feb0
mov rcx, rdi
call fcn.14002c8f0
test al, al
jne 0x14002cab1
lea rax, [0x1400d5222]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14004fed0
jmp 0x14002cabe
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140026880
lea rcx, [rsp + 0x40]
call fcn.140050010
jmp 0x14002ca37
Function at 0x140033e70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 4
lea r9, [rsp + 0x44]
mov dword [r9], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
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 0x140033ee1
mov ecx, dword [rsp + 0x44]
add ecx, 0xfffffffd
mov eax, 0x3f4
cmp ecx, 1
ja 0x140033ee1
cmp dword [rsp + 0x40], 4
jne 0x140033ee1
mov eax, dword [rsp + 0x3c]
mov dword [rsi], eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140033ef8
call fcn.140065b40
int3
add rsp, 0x50
pop rsi
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140065ae0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140093190
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 0x140033f94
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140033fbb
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140022fc0
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140033fae
call fcn.140065b40
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x140034003
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140093190
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 0x14003400a
lea rdx, [rsp + 0x40]
jmp 0x140033f8a
mov eax, 0x3f4
jmp 0x140033f94
mov eax, 0xea
jmp 0x140033f94
Function at 0x1400359d0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140065ae0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400c69e0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140055610
test rsi, rsi
je 0x140035ab6
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140093190
cmp byte [rsp + 0x47], 0
jns 0x140035a4f
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 0x140035a7e
cmp eax, 0x7fff
jae 0x140035adb
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14002db70
cmp byte [rsp + 0x47], 0
jns 0x140035a8f
mov rcx, qword [rsp + 0x30]
call fcn.14006492c
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
cmp rcx, qword [0x1400e3040]
je 0x140035aa9
call fcn.140065b40
int3
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x140035ac4
lea rcx, [rsp + 0x30]
jmp 0x140035ac9
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x140035a7e
int3

Function at 0x140036970
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400369e7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400e5620], rax
jne 0x1400369ea
mov rsi, rcx
call fcn.14003c960
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.1400374e0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140036a00
mov ecx, dword [0x1400f697c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400f16d8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x14003c860
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1400f76b8], 0
jne 0x14003c89d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003c890
mov dword [rdi], eax
mov dword [0x1400f76c0], eax
mov qword [0x1400f76b8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3