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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x28], rax
call fcn.140105150
mov r14d, dword [rax]
call fcn.140105150
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [0x14016baf0]
cmp rbx, 1
jbe 0x140018e64
mov rbp, qword [rsi + 8]
mov ecx, dword [0x140166310]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140018ea1
movsxd rcx, dword [rbx]
shl rcx, 4
mov qword [rax + rcx], rbp
mov ecx, dword [rbx + 4]
movsxd rdx, dword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
jne 0x140018e12
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140105150
mov dword [rax], r14d
cmp byte [rsi + 0x38], 0
je 0x140018dca
mov rdi, qword [rsi + 0x48]
test rdi, rdi
jne 0x140018e20
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x140018eb4
mov rcx, qword [rsi + 0x28]
mov qword [rsi + 0x28], 0
test rcx, rcx
jne 0x140018f0f
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x140018f1e
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140107cc0
nop
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp qword [rsi + 8], 0
jne 0x140018dab
call fcn.140104940
jmp 0x140018dab
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [fcn.140011510]
mov rdx, qword [rsi + 0x40]
mov r8, qword [rbx]
mov rcx, rdi
call fcn.140018f50
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x140018dca
lock dec dword [rdi]
jne 0x140018dca
mov rcx, rdi
call fcn.14007b3b0
mov rcx, rdi
call fcn.140105028
jmp 0x140018dca
lea rcx, [0x14016baf0]
call fcn.14000c730
test al, al
je 0x140018f33
mov eax, 0xffffffff
mov qword [0x14016baf8], rax
lea rbx, [0x14016baf8]
mov rcx, rbx
xor edx, edx
call fcn.14002ec50
mov qword [0x14016baf0], rbx
jmp 0x140018d70
test rbp, rbp
je 0x140018da3
call fcn.140021dc0
jmp 0x140018d8a
mov ecx, dword [rsi + 0x20]
cmp dword [rax + 0x18], ecx
jbe 0x140018dd7
mov rax, qword [rax + 0x10]
shl rcx, 7
cmp dword [rax + rcx + 0x68], 0
je 0x140018dd7
mov rbx, qword [0x140169470]
lea rdi, [rbx + 0xc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140018f3f
mov rcx, qword [rsi + 0x18]
add rbx, 0x78
mov edx, dword [rsi + 0x20]
mov r8, rbx
call fcn.14009ec80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140018dd7
mov edx, 1
call fcn.1400a5460
jmp 0x140018dec
mov rcx, qword [rax + 8]
lock dec dword [rcx + 0x38]
mov rax, qword [rax + 8]
lock inc dword [rax + 0x3c]
jmp 0x140018df9
mov rbx, qword [0x14016baf0]
jmp 0x140018d70
mov rcx, rdi
call fcn.1400071b0
jmp 0x140018eee
Function at 0x14001aa20
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1038
call fcn.140107c50
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea rsi, [rsp + 0x830]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14010a410
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.14001ab50
test eax, eax
jne 0x14001aacd
mov eax, dword [rsp + 0x2c]
cmp eax, 1
jne 0x14001aad1
lea rdx, [rsp + 0x830]
mov rcx, r14
call fcn.14001ab24
xor edi, edi
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140107cc0
mov eax, edi
add rsp, 0x1038
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14001aaae
cmp eax, 2
jne 0x14001ab16
lea rsi, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14010a410
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 0x14001ab1d
lea rdx, [rsp + 0x30]
jmp 0x14001aaa4
mov edi, 0x3f4
jmp 0x14001aaae
mov edi, 0xea
jmp 0x14001aaae

Function at 0x14001ab50
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 [0x140163028]
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.140006710
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.140107cc0
mov eax, esi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14001d490
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 [0x140163028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.14010a410
mov qword [rsp + 0x20], r15
xor esi, esi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14001d6f0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140141df0]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.14001df20
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14001d526
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14001d5f3
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.14010a410
mov rcx, rbp
mov rdx, rbx
call fcn.14001dd00
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14001d68a
mov rcx, rbx
call fcn.14001d700
test al, al
jne 0x14001d630
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14001d58d
mov rcx, qword [rsp + 0x30]
call r12
xor esi, esi
test eax, eax
jne 0x14001d5ac
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.14000ab20
mov rcx, rbp
mov rdx, rbx
call fcn.14001df20
mov rcx, rdi
mov rdx, rbx
call fcn.14004e400
mov rcx, rbx
call fcn.14004e3d0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14001d5e7
mov rax, qword [rsp + 0x38]
mov r13d, esi
test rax, rax
jne 0x14001d546
lea rcx, [rsp + 0x30]
call fcn.14004e3d0
lea rcx, [rsp + 0x298]
call fcn.14001dd90
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140107cc0
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 0x14001d5ac
lea rcx, [rsp + 0x30]
mov rdx, r15
mov r8b, 1
call fcn.14001d490
test eax, eax
jne 0x14001d6dd
cmp byte [rsp + 0x47], 0
lea rcx, [rsp + 0x30]
jns 0x14001d664
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14001d5ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x14001d5ac
test r14b, r14b
je 0x14001d6a0
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14001d6c7
mov rcx, qword [rsp + 0x30]
jmp 0x14001d6cc
lea rcx, [rsp + 0x48]
call fcn.14001d700
test al, al
je 0x14001d6d7
lea rcx, [rsp + 0x48]
call fcn.14001d700
test al, al
je 0x14001d57e
xor esi, esi
jmp 0x14001d5ac
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14001d56e
mov edx, dword [rsp + 0x48]
jmp 0x14001d68f
mov esi, eax
jmp 0x14001d5ac
Function at 0x140020c10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140166310]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140020c44
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140020c44
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x140020c3e

Function at 0x140020c50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, qword [0x14016bb38]
cmp rsi, 1
jbe 0x140020c93
mov ecx, dword [0x140166310]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140020cc9
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140020cc9
mov rax, qword [rax + rcx]
test rax, rax
je 0x140020cc9
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14016bb38]
call fcn.14000c730
test al, al
je 0x140020ccc
mov eax, 0xffffffff
mov qword [0x14016bb40], rax
lea rsi, [0x14016bb40]
mov rcx, rsi
xor edx, edx
call fcn.14002ec50
mov qword [0x14016bb38], rsi
jmp 0x140020c62
int3
mov rsi, qword [0x14016bb38]
jmp 0x140020c62

Function at 0x140021d30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140166310]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140021d6e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140021d67
call fcn.140021dc0
jmp 0x140021d4e

Function at 0x140021dc0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140107c50
sub rsp, rax
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x140166310]
cmp esi, 0xffffffff
jne 0x140021e1d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140021e9a
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x140166310], esi
je 0x140021e1d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x140166310]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140021e97
lea r14, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call fcn.14010a410
lea rdx, [rsp + 0x23]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call rdi
mov ecx, 0x1000
call fcn.140105334
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, r14
call fcn.14010a000
mov rdx, rbx
or rdx, 3
mov ecx, esi
call rdi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140107cc0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
int3
Function at 0x1400236e0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov r15, rdx
mov r14, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, [0x14014cab0]
lea rsi, [rsp + 0x20]
mov qword [rsi], rax
mov qword [rsi + 8], 0x19
movups xmm0, xmmword [rdx]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
call fcn.1400247c0
mov rbx, rax
mov rcx, rdi
mov rdx, rsi
mov r8, 0xffffffffffffffff
call fcn.140024820
mov rcx, qword [rdi + 8]
sub rax, rbx
inc rax
cmp rcx, rbx
cmovb rbx, rcx
lea rdx, [rbx + rbx]
add rdx, qword [rdi]
sub rcx, rbx
cmp rcx, rax
cmovae rcx, rax
mov qword [r15], rdx
mov qword [r15 + 8], rcx
test rcx, rcx
je 0x1400238a9
movups xmm0, xmmword [r15]
movups xmmword [r14], xmm0
mov dword [rsp + 0x40], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r12, rax
test rax, rax
je 0x1400238d0
lea rdx, [0x14014541e]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400238e3
mov rsi, rax
mov rcx, qword [r15]
lea rdx, [rsp + 0x40]
call rax
mov r13, rax
movsxd rdi, dword [rsp + 0x40]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test rdi, rdi
je 0x140023843
test edi, edi
js 0x1400238eb
shl rdi, 3
lea r15, [rdi + rdi*2]
mov rcx, r15
call fcn.140105030
mov rsi, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdx, qword [r13 + rbx]
mov rcx, rsi
call fcn.140023900
add rsi, 0x18
add rbx, 8
cmp rdi, rbx
jne 0x140023824
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.1400239b0
movups xmmword [r14], xmm6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r12, r12
je 0x14002386b
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x1400238a9
mov rax, qword [rsp + 0x28]
cmp rax, rsi
je 0x1400238cb
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x140023892
mov rcx, qword [rax - 0x18]
call fcn.140105028
mov rax, rdi
cmp rsi, rdi
jne 0x14002387f
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rsi
call fcn.140105028
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140107cc0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
jmp 0x14002389f
mov rcx, qword [r15]
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400237d7
xor r13d, r13d
jmp 0x1400237da
lea rcx, [rsp + 0x20]
call fcn.14007ce34
int3
Function at 0x140027108
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14010a410
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 0x140027183
mov edx, eax
mov rcx, rdi
mov r8, rsi
call fcn.1400271b5
test al, al
jne 0x1400271b0
add rbx, 8
cmp rbx, 0x18
jne 0x140027150
xor esi, esi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140107cc0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov sil, 1
jmp 0x14002718f

Function at 0x14002722d
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 [0x140163028]
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.14010a410
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.1401051a8
cmp rax, rbx
ja 0x140027365
mov rsi, rax
cmp rax, 0xb
jb 0x140027346
lea rdi, [rsi + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.140105030
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.14010a000
mov word [r15 + rsi*2], 0
lea rdx, str.usp10.dll
lea rcx, [rsp + 0x20]
call fcn.140027958
cmp byte [rax + 0x17], 0
jns 0x14002730d
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [r14 + 0x17], 0
js 0x140027359
cmp esi, 0xffffffff
setne bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140107cc0
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 0x1400272d9
jmp 0x1400272ec
mov rcx, qword [rsp + 0x20]
call fcn.140105028
jmp 0x14002731f
lea rcx, [rsp + 0x20]
call fcn.14007ce46
int3
Function at 0x1400282d8
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 [0x140163028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14002830c
mov rax, qword [r12 + 8]
test rax, rax
je 0x140028407
mov eax, 0x300
mov ecx, ebx
and ecx, eax
cmp ecx, eax
je 0x140028407
cmp edi, 2
lea rax, [0x140169b70]
lea rcx, [0x140169d70]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140028407
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 0x140028407
cmp byte [0x140169b60], 0
setne al
bt ebx, 8
jb 0x140028407
shr ebx, 9
and ebx, 1
or bl, al
je 0x140028407
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x1400283b4
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
jmp 0x1400283b7
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 0x1400283f4
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.1401055e8
test eax, eax
je 0x140028426
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x1400283d6
cmp dword [rsp + 0x2c], 0
jne 0x140028462
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140107cc0
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 0x140028435
test cx, cx
jne 0x1400283f4
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140028470
cmp dword [rsp + 0x2c], 2
jne 0x140028481
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140028481
cmp byte [r12 + 0x17], 0
jns 0x1400284b0
mov rax, qword [r12]
jmp 0x1400284b3
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x14002849a
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x140028487
jmp 0x14002849d
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x1400283fb
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.14009970e
jmp 0x140028407
Function at 0x140028a99
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x140163028]
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 [0x140169928], rax
lea rdx, str.NtCreateKey
mov rcx, rdi
call rsi
mov qword [0x140169f70], rax
lea rdx, str.NtDeleteKey
mov rcx, rdi
call rsi
mov qword [0x140169920], rax
lea rdx, str.NtOpenKeyEx
mov rcx, rdi
call rsi
mov qword [0x140169930], rax
lea rdx, str.NtClose
mov rcx, rdi
call rsi
mov qword [0x140169918], rax
lea rdx, str.NtQueryKey
mov rcx, rdi
call rsi
mov qword [0x140169948], rax
lea rdx, str.NtEnumerateKey
mov rcx, rdi
call rsi
mov qword [0x140169950], rax
lea rdx, str.NtQueryValueKey
mov rcx, rdi
call rsi
mov qword [0x140169938], rax
lea rdx, str.NtSetValueKey
mov rcx, rdi
call rsi
mov qword [0x140169940], rax
xor r14d, r14d
test rax, rax
je 0x140028cc5
cmp qword [0x140169928], 0
je 0x140028cc5
cmp qword [0x140169f70], 0
je 0x140028cc5
cmp qword [0x140169930], 0
je 0x140028cc5
cmp qword [0x140169920], 0
je 0x140028cc5
cmp qword [0x140169918], 0
je 0x140028cc5
cmp qword [0x140169948], 0
je 0x140028cc5
cmp qword [0x140169950], 0
je 0x140028cc5
cmp qword [0x140169938], 0
je 0x140028cc5
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 0x140028cc5
mov rdi, rax
test rax, rax
je 0x140028cc5
movaps xmm0, xmmword [0x140141df0]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call rbx
test eax, eax
setns r14b
js 0x140028cc5
lea rbx, [rsp + 0x20]
mov rdx, qword [rbx + 8]
lea rsi, [0x140169f80]
mov ebp, 0xff
mov r8d, 0xff
mov rcx, rsi
call fcn.140105850
mov rcx, rsi
call fcn.1401051a8
sub rbp, rax
lea rdx, [0x14014556e]
mov rcx, rsi
mov r8, rbp
call fcn.140105850
mov rcx, qword [rbx + 8]
mov dx, 0x5c
call fcn.1401058e0
lea rdx, [rax + 2]
lea rcx, [0x140169960]
mov r8d, 0xff
call fcn.140105898
mov rcx, rbx
call rdi
call fcn.140028d57
mov byte [0x140169915], al
call fcn.140028ce0
mov byte [0x140169b60], al
mov byte [0x140169914], 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140107cc0
mov eax, r14d
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140028d57
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.14010a410
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 0x140028dc5
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140105990
test eax, eax
je 0x140028e1a
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 0x140028dfc
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140105990
test eax, eax
je 0x140028e1a
xor esi, esi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140107cc0
mov eax, esi
add rsp, 0x238
pop rdi
pop rsi
ret
mov sil, 1
jmp 0x140028dfe
Function at 0x14002a830
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 [0x140163028]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140102e80]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x14016c088]
lea rdx, [0x140102e70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14002a92d
cmp dword [0x14016c090], 0
jne 0x14002a93a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14016c094]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x14002a8e3
mov ecx, 0x18
call fcn.14004bd80
test rax, rax
je 0x14002a93a
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov ecx, dword [0x14016c094]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14002a932
lea rbp, [0x14016c098]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14016c0a0]
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.140107cc0
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.140106230
mov rcx, rsi
call fcn.14005ae70
mov rcx, r14
call rdi
xor esi, esi
jmp 0x14002a913

Function at 0x14002bd50
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140163028]
xor rax, rsp
mov qword [rsp + 0x30], rax
test edx, edx
jne 0x14002bdff
mov ecx, pe_nt_image_headers64
call fcn.140105030
mov rdi, rax
lea rax, [0x140140bc0]
mov qword [rdi], rax
lea rax, [0x140059f00]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14016c080]
lea rdx, [0x140102e70]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14002be08
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 [0x14014c770]
movups xmmword [rdi + 8], xmm0
movaps xmm0, xmmword [0x14014c780]
movups xmmword [rdi + 0x18], xmm0
mov dword [rdi + 0x74], 0x20
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140107cc0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov qword [rsi], 0
jmp 0x14002bde8
call fcn.140106230
int3