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

Disassembly:
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov r14, rcx
xor ebx, ebx
mov ecx, dword [0x1403bc778]
cmp byte [0x1403bc77c], bl
je 0x140027334
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14002733a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140027418
mov ecx, dword [0x1403bc768]
cmp byte [0x1403bc76c], bl
je 0x140027359
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14002735f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002736e
mov ebx, 1
jmp 0x140027418
lea rax, [0x1403bc778]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], ebx
mov esi, 1
mov ecx, dword [0x1403bc778]
mov edx, esi
cmp byte [0x1403bc77c], bl
je 0x14002739b
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x1400273a1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
setne al
test al, al
jne 0x1400273b1
mov ecx, 7
int 0x29
lock xadd dword [rsp + 0x30], esi
mov rax, qword [r14]
mov r9, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 8]
mov rcx, qword [rax]
add rcx, 8
mov r9b, byte [r9]
mov r8d, dword [r8]
mov edx, dword [rdx]
call fcn.1400258f0
mov sil, al
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140027415
or eax, 0xffffffff
lock xadd dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x28]
xor edx, edx
cmp byte [rcx + 4], bl
mov ecx, dword [rcx]
je 0x140027404
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x14002740a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400273dd
lea ecx, [rax + 7]
int 0x29
jmp 0x1400273dd
mov bl, sil
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop r14
ret
Function at 0x140027a44
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov byte [rax + 0x18], r8b
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xc0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, r9
mov edi, edx
mov esi, ecx
mov r14, qword [rbp + 0x7f]
xor r12d, r12d
mov ecx, dword [0x1403bc770]
cmp byte [0x1403bc774], r12b
je 0x140027aa1
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140027aa7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027acd
mov ecx, dword [0x1403fdaa0]
mov rax, qword gs:[0x58]
mov edx, 8
mov rcx, qword [rax + rcx*8]
inc qword [rcx + rdx]
jmp 0x140027b9d
lea rcx, [0x1403bc760]
call fcn.140026a84
mov r15, rax
lea rdx, [0x140290a68]
test rbx, rbx
cmovne rdx, rbx
mov qword [rbp - 0x41], r12
mov qword [rbp - 0x39], 7
mov word [rbp - 0x51], r12w
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140027aff
lea rcx, [rbp - 0x51]
call fcn.140018284
nop
xor eax, eax
mov byte [rbp - 0x61], al
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x51]
lea r8, [rbp + 0x6f]
mov dl, al
lea rcx, [rbp - 0x31]
call fcn.140026a00
mov dword [rbp + 7], edi
mov dword [rbp + 0xf], esi
lea rdx, [rbp - 0x31]
mov rcx, r15
call fcn.1400274ac
nop
lea rcx, [rbp - 0x21]
call fcn.14000c764
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140027b94
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140027b94
mov rbx, qword [rbp - 0x29]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002a211.0]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140027b94
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
nop
lea rcx, [rbp - 0x51]
call fcn.14000c764
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14020ed60
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 4], 0
mov rbx, rcx
mov ecx, dword [rcx]
je 0x140027be5
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x140027beb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x140027c2f
mov rcx, rax
call fcn.1400286a0
mov rcx, qword [rdi]
call fcn.140210c50
and qword [rdi], 0
mov rcx, rdi
call fcn.140070920
mov ecx, dword [rbx]
xor edx, edx
cmp byte [rbx + 4], dl
je 0x140027c20
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
jmp 0x140027c26
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140027c2f
lea ecx, [rax + 7]
int 0x29
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140033e50
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov rbx, rcx
xor r14d, r14d
mov dword [rax + 0x18], r14d
call fcn.14003bfe8
mov rdx, rax
lea r8, [rsp + 0x80]
lea ecx, [r14 + 3]
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov esi, eax
test eax, eax
jne 0x140033e9a
mov qword [rbx], r14
mov qword [rbx + 8], r14
jmp 0x140033f5f
mov edx, 1
mov rcx, rsi
call fcn.140070918
mov rdi, rax
test rax, rax
jne 0x140033ec0
call fcn.1401ee6e8
nop
nop word [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rdi
call fcn.1402108c0
call fcn.14003bfe8
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r9d, esi
xor r8d, r8d
lea ecx, [r8 + 3]
call sub.VERSION.dll_GetFileVersionInfoExW
mov rcx, rdi
test eax, eax
jne 0x140033ef9
mov qword [rbx], r14
mov qword [rbx + 8], r14
jmp 0x140033f59
mov qword [rsp + 0x88], r14
mov dword [rsp + 0x78], r14d
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x88]
lea rdx, [0x140290c4c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140033f2c
mov qword [rbx], r14
mov qword [rbx + 8], r14
jmp 0x140033f56
cmp dword [rsp + 0x78], 0x34
jne 0x140033f23
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx + 0xa]
mov dword [rbx], eax
movzx eax, word [rcx + 8]
mov dword [rbx + 4], eax
movzx eax, word [rcx + 0xe]
mov dword [rbx + 8], eax
movzx eax, word [rcx + 0xc]
mov dword [rbx + 0xc], eax
mov rcx, rdi
call fcn.140070920
nop
mov rax, rbx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14003427c
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x40]
call fcn.1402108c0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x1400342c0
mov ecx, 0x8d339f
call fcn.1401e41d8
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14020ed60
add rsp, 0x78
ret
Function at 0x140034ad4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x40
mov edi, ecx
xor ebx, ebx
and qword [rbp - 0x10], rbx
mov ecx, 0x20019
call fcn.14003c2e4
mov r9d, eax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
lea rax, [rbp - 0x10]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140034c1c
lea r15d, [rbx + 1]
test r15b, dil
je 0x140034b75
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
and dword [rbp + 0x28], ebx
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.HideFileExt
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034b6d
cmp dword [rbp + 0x38], 4
jne 0x140034b6d
mov eax, dword [rbp + 0x28]
jmp 0x140034b6f
xor eax, eax
test eax, eax
cmove ebx, r15d
test dil, 2
je 0x140034bc9
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Hidden
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034bbf
cmp dword [rbp + 0x38], 4
jne 0x140034bbf
mov eax, dword [rbp + 0x28]
jmp 0x140034bc1
xor eax, eax
cmp eax, r15d
jne 0x140034bc9
or ebx, 2
test dil, 4
je 0x140034c1c
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
and dword [rbp + 0x28], 0
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ShowSuperHidden
lea rax, [rbp + 0x28]
mov dword [rbp + 0x30], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140034c13
cmp dword [rbp + 0x38], 4
jne 0x140034c13
mov eax, dword [rbp + 0x28]
jmp 0x140034c15
xor eax, eax
test eax, eax
je 0x140034c1c
or ebx, 4
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140034c30
and qword [rbp - 0x10], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
Function at 0x140035dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov bl, dl
mov rdi, rcx
xor r14d, r14d
test rcx, rcx
jne 0x140035de9
xor al, al
jmp 0x140035f6f
test bl, bl
je 0x140035df6
cmp dword [0x1403d11c0], r14d
jmp 0x140035dfd
call fcn.140035c50
test al, al
mov ecx, r14d
sete cl
test ecx, ecx
jne 0x140035de2
mov dword [rbp + 0x30], r14d
mov qword [rbp + 0x48], r14
lea rcx, [0x1403d1700]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
lock xadd dword [rbp - 0x20], eax
test eax, eax
jne 0x140035e52
cmp dword [rbp - 0x1c], r14d
sete al
test al, al
jne 0x140035e4a
xor edx, edx
mov ecx, 0x131f4c4
call fcn.1400235f8
int3
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 0x1c], eax
neg bl
sbb esi, esi
and esi, 2
mov qword [rbp + 0x40], r14
movzx r9d, word [rdi + 0x18]
shr r9d, 1
and r9d, 0x10
or r9d, esi
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x48]
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x18]
call fcn.140037160
mov ecx, dword [rax]
mov dword [rbp + 0x30], ecx
mov rbx, qword [rax + 8]
mov qword [rax + 8], r14
mov rcx, qword [rbp + 0x40]
test rcx, rcx
sete al
test al, al
jne 0x140035ea7
mov qword [rbp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x40], rbx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
sete al
test al, al
jne 0x140035ec7
mov qword [rbp - 0x10], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rbp + 0x40]
mov eax, dword [rbp + 0x30]
test eax, eax
jne 0x140035f47
mov rax, qword [rbp + 0x48]
test rax, rax
cmovne rbx, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rbp + 0x30], eax
cmp eax, 0x3f2
je 0x140035f0b
cmp eax, 0x3fa
je 0x140035f0b
cmp eax, 6
jne 0x140035f41
mov rax, qword [rdi + 0x10]
movzx ecx, word [rax + 0xa]
and ecx, 0xf
shl rcx, 5
lea rax, [0x1403c0d00]
mov qword [rcx + rax], r14
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140035e59
mov qword [rbp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140035e59
mov rbx, qword [rbp + 0x40]
test eax, eax
sete dil
test rbx, rbx
sete dl
test dl, dl
jne 0x140035f63
mov qword [rbp + 0x40], r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x28]
call fcn.1401763b8
mov al, dil
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140036144
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rsp + 0x70]
mov rbx, r9
mov dword [rsp + 0x70], eax
xor edi, edi
test rdx, rdx
mov dword [rsp + 0x50], edi
lea rax, [r11 + 0x28]
mov r9d, 0xffff
mov qword [r11 - 0x18], rax
cmovne rcx, rdx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rbx
xor edx, edx
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov r8d, dword [rsp + 0x50]
lea r9d, [rdi + 2]
mov edx, eax
cmp dword [rsp + 0x70], r9d
jae 0x1400361a7
lea ecx, [r8 - 1]
cmp ecx, 1
cmovbe edx, r9d
cmp edx, 0x3f2
je 0x1400361ff
cmp edx, 0x3fa
je 0x1400361ff
cmp edx, 6
je 0x1400361ff
test edx, edx
jne 0x1400361ff
lea eax, [r8 - 1]
cmp eax, 1
ja 0x1400361da
mov eax, dword [rsp + 0x70]
shr rax, 1
mov word [rbx + rax*2 - 2], di
mov r8d, dword [rsp + 0x50]
movzx ecx, byte [rsp + 0x78]
cmp r8d, ecx
je 0x1400361ff
sub r8d, 1
je 0x1400361f7
cmp r8d, 1
jne 0x1400361fc
cmp ecx, r8d
jne 0x1400361fc
jmp 0x1400361ff
cmp ecx, r9d
je 0x1400361ff
mov edx, r9d
mov eax, edx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140037a04
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x20], r14d
mov rax, qword [rcx + 0x10]
test byte [rax + 0xa], 0xf
je 0x140037a40
mov eax, 0xa0
jmp 0x140037b7d
lea rcx, [0x1403d1700]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
lock xadd dword [rbp - 0x20], eax
test eax, eax
jne 0x140037a83
cmp dword [rbp - 0x1c], r14d
sete al
test al, al
jne 0x140037a7b
xor edx, edx
mov ecx, 0x131f4c4
call fcn.1400235f8
int3
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 0x1c], eax
mov qword [rbp + 0x28], r14
movzx r9d, word [rsi + 0x18]
shr r9d, 1
and r9d, 0x10
mov rdx, qword [rsi + 0x10]
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rdx, qword [rdx + 0x10]
lea rcx, [rbp - 0x18]
call fcn.140037160
mov ecx, dword [rax]
mov dword [rbp + 0x20], ecx
mov rdi, qword [rax + 8]
mov qword [rax + 8], r14
mov rcx, qword [rbp + 0x28]
test rcx, rcx
sete al
test al, al
jne 0x140037ad1
mov qword [rbp + 0x28], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x28], rdi
mov rcx, qword [rbp - 0x10]
test rcx, rcx
sete al
test al, al
jne 0x140037af1
mov qword [rbp - 0x10], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp + 0x28]
mov ebx, dword [rbp + 0x20]
test ebx, ebx
jne 0x140037b5a
mov rdx, qword [rsi + 0x10]
mov rdx, qword [rdx]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov dword [rbp + 0x20], eax
cmp eax, 0x3f2
je 0x140037b20
cmp eax, 0x3fa
je 0x140037b20
cmp eax, 6
jne 0x140037b56
mov rax, qword [rsi + 0x10]
movzx ecx, word [rax + 0xa]
and ecx, 0xf
shl rcx, 5
lea rax, [0x1403c0d00]
mov qword [rcx + rax], r14
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140037a83
mov qword [rbp + 0x28], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140037a83
mov rdi, qword [rbp + 0x28]
test rdi, rdi
sete dl
test dl, dl
jne 0x140037b72
mov qword [rbp + 0x28], r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x28]
call fcn.1401763b8
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140037b94
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov rsi, rcx
xor r14d, r14d
mov qword [rbp + 0x48], r14
lea rcx, [0x1403d1700]
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [r14 + 1]
lock xadd dword [rbp - 0x20], eax
test eax, eax
jne 0x140037bf5
cmp dword [rbp - 0x1c], r14d
sete al
test al, al
jne 0x140037bed
xor edx, edx
mov ecx, 0x131f4c4
call fcn.1400235f8
int3
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp - 0x1c], eax
mov dword [rbp + 0x38], r14d
mov qword [rbp + 0x40], r14
movzx r9d, word [rsi + 0x18]
shr r9d, 1
and r9d, 0x10
mov qword [rsp + 0x20], r14
lea r8, [rbp + 0x48]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x18]
call fcn.140037160
mov ecx, dword [rax]
mov dword [rbp + 0x38], ecx
mov rdi, qword [rax + 8]
mov qword [rax + 8], r14
mov rcx, qword [rbp + 0x40]
test rcx, rcx
sete al
test al, al
jne 0x140037c44
mov qword [rbp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + 0x40], rdi
mov rcx, qword [rbp - 0x10]
test rcx, rcx
sete al
test al, al
jne 0x140037c64
mov qword [rbp - 0x10], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp + 0x40]
mov ebx, dword [rbp + 0x38]
test ebx, ebx
jne 0x140037ce2
mov rdx, qword [rsi]
mov rax, qword [rbp + 0x48]
test rdx, rdx
jne 0x140037c80
test rax, rax
cmovne rdi, rax
jmp 0x140037c87
test rax, rax
cmovne rdi, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rbp + 0x38], eax
mov ebx, eax
cmp eax, 0x3f2
je 0x140037ca8
cmp eax, 0x3fa
je 0x140037ca8
cmp eax, 6
jne 0x140037cde
mov rax, qword [rsi + 0x10]
movzx ecx, word [rax + 0xa]
and ecx, 0xf
shl rcx, 5
lea rax, [0x1403c0d00]
mov qword [rcx + rax], r14
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140037bf5
mov qword [rbp + 0x40], r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140037bf5
mov rdi, qword [rbp + 0x40]
test rdi, rdi
sete dl
test dl, dl
jne 0x140037cfa
mov qword [rbp + 0x40], r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x28]
call fcn.1401763b8
mov eax, ebx
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140037d2c
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x60
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov rsi, r8
mov r14d, edx
mov rbx, rcx
call fcn.140037888
test eax, eax
jne 0x140037d68
mov eax, 2
jmp 0x140037e08
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140038014
mov ebx, eax
test eax, eax
je 0x140037d9f
mov rcx, qword [rsp + 0x48]
test rcx, rcx
sete dl
test dl, dl
jne 0x140037d9b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140037e08
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test rbx, rbx
sete cl
test cl, cl
jne 0x140037dff
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140037e08
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

Function at 0x140037e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x60
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov rsi, r8
mov r14d, edx
mov rbx, rcx
call fcn.140037888
test eax, eax
jne 0x140037e5c
mov eax, 2
jmp 0x140037efc
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140038014
mov ebx, eax
test eax, eax
je 0x140037e93
mov rcx, qword [rsp + 0x48]
test rcx, rcx
sete dl
test dl, dl
jne 0x140037e8f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140037efc
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rsi
mov edx, r14d
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test rbx, rbx
sete cl
test cl, cl
jne 0x140037ef3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140037efc
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x14003816c
Capabilities:
Delete registry key

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x20
and qword [rax + 0x18], 0
lea r8, [rax + 0x10]
lea rdx, [rax + 0x18]
call fcn.140038014
mov ebx, eax
test eax, eax
je 0x1400381a4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400381a0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400381c6
mov rbx, qword [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov edi, eax
test rbx, rbx
je 0x1400381c4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003c190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 1
mov rbx, rcx
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor esi, esi
mov rdi, rax
test rax, rax
je 0x14003c1f1
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14003c1f1
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003c1f1
cmp word [rax + 2], si
je 0x14003c1f1
cmp dword [rax + 0x28], 0xfeef04bd
jne 0x14003c1f1
add rax, 0x30
jmp 0x14003c1f8
lea rax, [0x1402b1300]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14003c344
Capabilities:
Get disk size

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x14003c3b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
lea rcx, str.LastError
mov qword [rsp + 0x40], rcx
mov edx, 0x55f
lea rax, method.Mso::Logging::StructuredObject_unsigned_int__1_.virtual_0
mov r8d, 0xf
mov qword [rsp + 0x38], rax
lea r9, str.GetDiskFreeSpaceExW_failed
lea rax, [rsp + 0x38]
mov ecx, 0x8ca512
mov qword [rsp + 0x20], rax
call fcn.1401cfa48
xor al, al
jmp 0x14003c3ca
mov rax, qword [rsp + 0x70]
shr rax, 0x14
mov dword [rbx + 4], eax
mov rax, qword [rsp + 0x78]
shr rax, 0x14
mov dword [rbx], eax
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x14003c570
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xor edi, edi
mov qword [rbp + 0x1f], rdi
lea esi, [rdi + 7]
mov qword [rbp + 0x27], rsi
mov word [rbp + 0xf], di
mov byte [rbp - 0x19], dil
movups xmm0, xmmword [rbp + 0xf]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rbp + 0x1f]
movups xmmword [rbp - 1], xmm1
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], rsi
mov word [rbp + 0xf], di
lea rcx, [rbp + 0xf]
call fcn.14000c764
xor edx, edx
lea r8d, [rdi + 0x20]
lea rcx, [rbp + 0x2f]
call fcn.1402108c0
mov dword [rbp - 0x29], 0x10
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x2f]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x14003c60d
mov al, byte [rbp - 0x19]
mov byte [rbx], al
jmp 0x14003c633
lea rax, [rbp + 0x2f]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x14003c615
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
call fcn.140018284
mov byte [rbp - 0x19], 1
mov byte [rbx], 1
movups xmm0, xmmword [rbp - 0x11]
movups xmm1, xmmword [rbp - 1]
movups xmmword [rbx + 8], xmm0
mov word [rbp - 0x11], di
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rdi
movups xmmword [rbx + 0x18], xmm1
lea rcx, [rbp - 0x11]
call fcn.14000c764
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14020ed60
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret