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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000deae
movsxd rcx, dword [rsi + 0x300]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x304]
jne 0x14000deae
cmp qword [rax + rcx], 0
jne 0x14000dfb7
mov eax, dword [0x140179158]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000dfbf
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000dfb7
movsxd rcx, dword [0x140179150]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140179154]
jne 0x14000dfb7
cmp qword [rax + rcx], 0
je 0x14000dfb7
mov rdi, qword [0x140178c08]
cmp rdi, 1
jbe 0x14000e003
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000dfb7
movsxd rcx, dword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 4]
jne 0x14000dfb7
cmp qword [rax + rcx], 0
je 0x14000dfb7
mov eax, dword [0x140178c78]
test eax, eax
jne 0x14000e0bb
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000e061
movsxd rcx, dword [rsi + 0x2f8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x2fc]
jne 0x14000e061
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x14000e061
mov rax, qword [rsi + 0x368]
cmp dword [rdi + 0x28], eax
jne 0x14000e051
mov eax, dword [0x140178c78]
test eax, eax
jne 0x14000e0d6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140179158]
call fcn.14010bdd8
cmp dword [0x140179158], 0xffffffff
jne 0x14000ded3
mov eax, 0xffffffff
mov qword [0x140179150], rax
lea rcx, [0x140179150]
xor edx, edx
call fcn.14001c0c0
lea rcx, [0x140179158]
call fcn.14010ba50
jmp 0x14000ded3
lea rcx, [0x140178c08]
call fcn.140022080
test al, al
je 0x14000e0fe
mov eax, 0xffffffff
mov qword [0x140178c10], rax
lea rbx, [0x140178c08]
lea rdi, [0x140178c10]
mov rcx, rdi
xor edx, edx
call fcn.14001c0c0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14000ad70
jmp 0x14000df20
mov rcx, rdi
call fcn.140054e80
mov rcx, rdi
call fcn.14010b880
mov ecx, 0x30
call fcn.14010b888
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.140011470
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14000e0b4
movsxd rcx, dword [rsi + 0x2f8]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 0x2fc]
movsxd rdx, dword [rsi + 0x2f8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
jmp 0x14000dfa9
call fcn.14000bf20
jmp 0x14000e08b
mov eax, dword [0x140178c78]
test eax, eax
je 0x14000df5b
call fcn.1400a2320
inc dword [rax + 0x38]
jmp 0x14000df5b
mov eax, dword [0x140178c78]
test eax, eax
je 0x14000dfb7
call fcn.1400a2320
mov ecx, dword [rax + 0x38]
test ecx, ecx
je 0x14000dfb7
dec ecx
mov dword [rax + 0x38], ecx
jmp 0x14000dfb7
mov rdi, qword [0x140178c08]
jmp 0x14000df20
Function at 0x140018ee0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.140110bf0
mov qword [rsp + 0x20], r15
xor esi, esi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140019150
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140146a10]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.1400199f0
movzx eax, byte [rdi + 0x17]
mov rcx, rax
test al, al
jns 0x140018f79
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140019052
lea rbx, [rsp + 0x48]
lea rbp, [rsp + 0x298]
mov r12, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r13d, r13d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.140110bf0
mov rcx, rbp
mov rdx, rbx
call fcn.1400197d0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400190ed
mov rcx, rbx
call fcn.140019160
test al, al
jne 0x140019093
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140018fe0
mov rcx, qword [rsp + 0x30]
call r12
xor esi, esi
test eax, eax
jne 0x140018fff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test r13d, r13d
cmovne esi, r13d
mov rcx, rbx
call fcn.1400021b0
mov rcx, rbp
mov rdx, rbx
call fcn.1400199f0
mov rcx, rdi
mov rdx, rbx
call fcn.140019760
cmp byte [rsp + 0x5f], 0
jns 0x140019035
mov rcx, qword [rsp + 0x48]
call fcn.14010b880
movzx eax, byte [rsp + 0x47]
mov rcx, rax
test al, al
jns 0x140019046
mov rcx, qword [rsp + 0x38]
mov r13d, esi
test rcx, rcx
jne 0x140018f99
test al, al
jns 0x140019060
mov rcx, qword [rsp + 0x30]
call fcn.14010b880
lea rcx, [rsp + 0x298]
call fcn.140019860
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.14010e4a0
mov eax, esi
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
test r14b, r14b
je 0x140018fff
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8b, 1
call fcn.140018ee0
test eax, eax
jne 0x140019140
cmp byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
jns 0x1400190c7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140018fff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x140018fff
test r14b, r14b
je 0x140019103
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14001912a
mov rcx, qword [rsp + 0x30]
jmp 0x14001912f
lea rcx, [rsp + 0x48]
call fcn.140019160
test al, al
je 0x14001913a
lea rcx, [rsp + 0x48]
call fcn.140019160
test al, al
je 0x140018fd1
xor esi, esi
jmp 0x140018fff
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140018fc1
mov edx, dword [rsp + 0x48]
jmp 0x1400190f2
mov esi, eax
jmp 0x140018fff
Function at 0x14001c000
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140178b70]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001c05c
mov ecx, dword [0x14016f428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001c08d
movsxd rcx, dword [0x140178b68]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140178b6c]
jne 0x14001c08d
mov rax, qword [rax + rcx]
test rax, rax
je 0x14001c091
add rsp, 0x28
ret
lea rcx, [0x140178b70]
call fcn.14010bdd8
cmp dword [0x140178b70], 0xffffffff
jne 0x14001c025
lea rcx, [0x140178b68]
xor edx, edx
call fcn.14001c0a0
lea rcx, [0x140178b70]
call fcn.14010ba50
jmp 0x14001c025
xor eax, eax
jmp 0x14001c052
lea rax, [0x14015533b]
jmp 0x14001c057

Function at 0x14001c0c0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x14016f428]
cmp ecx, 0xffffffff
je 0x14001c0e6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14001c0eb
call fcn.14000bf20
mov eax, dword [0x140178b58]
mov ecx, dword [0x14016f824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001c1b1
mov rbx, qword [0x140178b50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14001c1f3
mov rcx, qword [0x140177340]
inc rcx
mov edx, 0x100
lea rax, [0x140177350]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14001c168
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14001c168
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x14001c13e
jmp 0x14001c18d
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140177340], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14001c200
cmp eax, 0x100
jge 0x14001c203
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140178b58]
call fcn.14010bdd8
cmp dword [0x140178b58], 0xffffffff
jne 0x14001c110
mov ecx, 8
call fcn.14010b888
mov qword [rax], 0
mov qword [0x140178b50], rax
lea rcx, [0x140178b58]
call fcn.14010ba50
jmp 0x14001c110
mov rcx, rbx
call fcn.1400067c0
jmp 0x14001c128
int3
int3
Function at 0x14001d6d4
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140110bf0
xor ebx, ebx
lea r14, str.PROGRAMFILES
mov r15, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r14]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call r15
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14001d74f
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.14001d781
test al, al
jne 0x14001d77c
add rbx, 8
cmp rbx, 0x18
jne 0x14001d71c
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14010e4a0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x14001d75b

Function at 0x14001d7f9
Capabilities:
Get common file path
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x248], rax
movabs rbx, 0x7fffffffffffffef
lea rsi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140110bf0
mov word [rsi], 0
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov rcx, rsi
call fcn.14010b924
cmp rax, rbx
ja 0x14001d931
mov rsi, rax
cmp rax, 0xb
jb 0x14001d912
lea rdi, [rsi + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.14010b888
mov r15, rax
lea r14, [rsp + 0x20]
mov qword [r14], rax
add rbx, 0x11
or rbx, rdi
mov qword [r14 + 0x10], rbx
mov qword [r14 + 8], rsi
mov r8, rsi
add r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1401107e0
mov word [r15 + rsi*2], 0
lea rdx, str.usp10.dll
lea rcx, [rsp + 0x20]
call fcn.14001df38
cmp byte [rax + 0x17], 0
jns 0x14001d8d9
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [r14 + 0x17], 0
js 0x14001d925
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.14010e4a0
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov byte [r14 + 0x17], sil
mov r15, r14
test rsi, rsi
jne 0x14001d8a5
jmp 0x14001d8b8
mov rcx, qword [rsp + 0x20]
call fcn.14010b880
jmp 0x14001d8eb
lea rcx, [rsp + 0x20]
call fcn.1400786f8
int3
Function at 0x14001eb10
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 r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14001eb44
mov rax, qword [r12 + 8]
test rax, rax
je 0x14001ec3f
mov eax, 0x300
mov ecx, ebx
and ecx, eax
cmp ecx, eax
je 0x14001ec3f
cmp edi, 2
lea rax, [0x140176c30]
lea rcx, [0x140176e30]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14001ec3f
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x14001ec3f
cmp byte [0x140176c20], 0
setne al
bt ebx, 8
jb 0x14001ec3f
shr ebx, 9
and ebx, 1
or bl, al
je 0x14001ec3f
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x14001ebec
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
jmp 0x14001ebef
mov rbx, r12
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x14001ec2c
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.14010be40
test eax, eax
je 0x14001ec5e
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14001ec0e
cmp dword [rsp + 0x2c], 0
jne 0x14001ec9a
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14010e4a0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp cx, 0x5c
je 0x14001ec6d
test cx, cx
jne 0x14001ec2c
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14001eca8
cmp dword [rsp + 0x2c], 2
jne 0x14001ecb9
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14001ecb9
cmp byte [r12 + 0x17], 0
jns 0x14001ece8
mov rax, qword [r12]
jmp 0x14001eceb
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x14001ecd2
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x14001ecbf
jmp 0x14001ecd5
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x14001ec33
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140094ed8
jmp 0x14001ec3f
Function at 0x14001f2db
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
lea rdx, str.RtlInitUnicodeString
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rsi
mov qword [0x1401769f0], rax
lea rdx, str.NtCreateKey
mov rcx, rdi
call rsi
mov qword [0x140177030], rax
lea rdx, str.NtDeleteKey
mov rcx, rdi
call rsi
mov qword [0x1401769e8], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rdi
call rsi
mov qword [0x1401769f8], rax
lea rdx, str.NtClose
mov rcx, rdi
call rsi
mov qword [0x1401769e0], rax
lea rdx, str.NtQueryKey
mov rcx, rdi
call rsi
mov qword [0x140176a10], rax
lea rdx, str.NtEnumerateKey
mov rcx, rdi
call rsi
mov qword [0x140176a18], rax
lea rdx, str.NtQueryValueKey
mov rcx, rdi
call rsi
mov qword [0x140176a00], rax
lea rdx, str.NtSetValueKey
mov rcx, rdi
call rsi
mov qword [0x140176a08], rax
xor r14d, r14d
test rax, rax
je 0x14001f507
cmp qword [0x1401769f0], 0
je 0x14001f507
cmp qword [0x140177030], 0
je 0x14001f507
cmp qword [0x1401769f8], 0
je 0x14001f507
cmp qword [0x1401769e8], 0
je 0x14001f507
cmp qword [0x1401769e0], 0
je 0x14001f507
cmp qword [0x140176a10], 0
je 0x14001f507
cmp qword [0x140176a18], 0
je 0x14001f507
cmp qword [0x140176a00], 0
je 0x14001f507
lea rdx, str.RtlFormatCurrentUserKeyPath
mov rcx, rdi
call rsi
mov rbx, rax
lea rdx, str.RtlFreeUnicodeString
mov rcx, rdi
call rsi
xor r14d, r14d
test rbx, rbx
je 0x14001f507
mov rdi, rax
test rax, rax
je 0x14001f507
movaps xmm0, xmmword [0x140146a10]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call rbx
test eax, eax
setns r14b
js 0x14001f507
lea rbx, [rsp + 0x20]
mov rdx, qword [rbx + 8]
lea rsi, [0x140177040]
mov ebp, 0xff
mov r8d, 0xff
mov rcx, rsi
call fcn.14010c0a8
mov rcx, rsi
call fcn.14010b924
sub rbp, rax
lea rdx, [0x14014d33c]
mov rcx, rsi
mov r8, rbp
call fcn.14010c0a8
mov rcx, qword [rbx + 8]
mov dx, 0x5c
call fcn.14010c138
lea rdx, [rax + 2]
lea rcx, [0x140176a20]
mov r8d, 0xff
call fcn.14010c0f0
mov rcx, rbx
call rdi
call fcn.14001f599
mov byte [0x1401769dd], al
call fcn.14001f522
mov byte [0x140176c20], al
mov byte [0x1401769dc], 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010e4a0
mov eax, r14d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14001f599
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.140110bf0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14001f607
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14010c1e8
test eax, eax
je 0x14001f65c
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14001f63e
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14010c1e8
test eax, eax
je 0x14001f65c
xor esi, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14010e4a0
mov eax, esi
add rsp, 0x238
pop rdi
pop rsi
ret
mov sil, 1
jmp 0x14001f640

Function at 0x140020fb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140020fff
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14010e4a0
mov rax, rsi
add rsp, 0x30
pop rsi
ret
int3

Function at 0x140021090
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.14010e430
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea rsi, [rsp + 0x830]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140110bf0
lea rax, [rsp + 0x2c]
mov dword [rax], 1
lea r9, [rsp + 0x28]
mov dword [r9], 0x800
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.1400211c0
test eax, eax
jne 0x14002113d
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x140021141
lea rdx, [rsp + 0x830]
mov rcx, r14
call fcn.140021194
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14010e4a0
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14002111e
cmp eax, 2
jne 0x140021186
lea rsi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140110bf0
lea rcx, [rsp + 0x830]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
dec eax
cmp eax, 0x3ff
ja 0x14002118d
lea rdx, [rsp + 0x30]
jmp 0x140021114
mov edi, 0x3f4
jmp 0x14002111e
mov edi, 0xea
jmp 0x14002111e
Function at 0x1400211c0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, r9
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov r15, qword [rsp + 0xb0]
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x38]
mov r9d, 0x19e
call fcn.140003270
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
mov rdx, r14
xor r8d, r8d
mov r9, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010e4a0
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140024b10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140109540]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x140179a38]
lea rdx, [0x140109530]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140024c0d
cmp dword [0x140179a40], 0
jne 0x140024c1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140179a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x140024bc3
mov ecx, 0x18
call fcn.14001bfa0
test rax, rax
je 0x140024c1a
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov ecx, dword [0x140179a44]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140024c12
lea rbp, [0x140179a48]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140179a50]
mov qword [rax + rbx*8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi + rbx*8], r14
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14010e4a0
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.14010cab0
mov rcx, rsi
call fcn.140055390
mov rcx, r14
call rdi
xor esi, esi
jmp 0x140024bf3

Function at 0x1400256c6
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x30], rax
test edx, edx
jne 0x140025775
mov ecx, pe_nt_image_headers64
call fcn.14010b888
mov rdi, rax
lea rax, [0x140147ce0]
mov qword [rdi], rax
lea rax, [0x140052c00]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140179a30]
lea rdx, [0x140109530]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14002577e
xorps xmm0, xmm0
movups xmmword [rdi + 0x64], xmm0
movups xmmword [rdi + 0x58], xmm0
movups xmmword [rdi + 0x48], xmm0
movups xmmword [rdi + 0x38], xmm0
movups xmmword [rdi + 0x28], xmm0
movaps xmm0, xmmword [0x140154fc0]
movups xmmword [rdi + 8], xmm0
movaps xmm0, xmmword [0x140154fd0]
movups xmmword [rdi + 0x18], xmm0
mov dword [rdi + 0x74], 0x20
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010e4a0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov qword [rsi], 0
jmp 0x14002575e
call fcn.14010cab0
int3
Function at 0x140027560
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x1400275ac
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400275b7
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14002759a
mov qword [rdi], rsi
call fcn.1400068d0
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400068d0
mov r14, qword [rdi]
mov rcx, qword [0x140173f80]
test rcx, rcx
je 0x1400275dc
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rdi], 0
jmp 0x140027588
call fcn.140048130
mov rcx, qword [0x140173f80]
jmp 0x1400275cb

Function at 0x140029a10
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14016c028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x140146a10]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x14014d4ca]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3e6
call fcn.140003270
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140014670
cmp byte [rdi + 0x17], 0
jns 0x140029a86
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.14000a640
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14010e4a0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret