joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f028
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1f78]
mov eax, 0x2070
call fcn.14000fa40
sub rsp, rax
mov rax, qword [0x1400224e8]
xor rax, rsp
mov qword [rbp + 0x1f60], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov r14d, 0x800
lea rcx, [rsp + 0x60]
mov r8d, r14d
xor edx, edx
xor edi, edi
call sub.VCRUNTIME140.dll_memset
mov r8d, r14d
lea rcx, [rbp + 0x760]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], r14d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14001b928]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f1f5
and qword [rsp + 0x38], rdi
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x14000f1d8
lea rax, [rsp + 0x60]
mov rdx, r14
lea r9, str.SOFTWAREJavaSoftJava_Runtime_Environment
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x760]
call fcn.140009a2c
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x760]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f1b7
mov r8, r14
lea rcx, [rbp + 0xf60]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0xf60]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RuntimeLib
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000f1b7
cmp dword [rsp + 0x40], eax
jbe 0x14000f1b7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x1760]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14001b9f8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and qword [rsp + 0x38], 0
inc edi
and qword [rsp + 0x30], 0
mov edx, edi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], r14d
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14000f0dc
lea rdx, [rbp + 0x1760]
mov rcx, rbx
call fcn.14000c764
mov rax, rbx
mov rcx, qword [rbp + 0x1f60]
xor rcx, rsp
call fcn.14000fab0
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000f238
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x7e8]
sub rsp, 0x8c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400224e8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r13d, r8d
mov r12, rdx
mov r14, rcx
mov qword [rbp - 0x58], rcx
xor eax, eax
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rax
mov ebx, eax
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x68], rax
mov edi, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rax
mov esi, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rax
call fcn.14000f028
mov dword [rsp + 0x34], 1
mov r9d, 0x20019
lea r8, str.SOFTWARE
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.14000ca98
test eax, eax
jne 0x14000f3f6
mov ebx, 0x20019
mov r9d, ebx
lea r8, str.JavaSoft
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.14000ca98
test eax, eax
jne 0x14000f3f2
mov r9d, ebx
lea r8, str.Java_Plug_in
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000ca98
mov rdi, qword [rsp + 0x70]
test eax, eax
jne 0x14000f3f6
mov r9d, 0x20019
mov r8, r12
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000ca98
mov rsi, qword [rsp + 0x58]
test eax, eax
jne 0x14000f3f6
mov r12d, 0x800
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.JavaHome
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000f3f6
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x14000f3f6
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000f3b8
cmp byte [rbp + rax - 0x51], 0
je 0x14000f3bc
jmp 0x14000f3f6
mov byte [rbp - 0x50], 0
xor eax, eax
test eax, eax
jne 0x14000f3f6
mov r8d, r12d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x50]
test r13d, r13d
je 0x14000f3ea
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x14000f3f6
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.14000f468
jmp 0x14000f3f6
call qword [sym.imp.KERNEL32.dll_GetLongPathNameA]
jmp 0x14000f3d8
mov rbx, qword [rbp - 0x78]
test rsi, rsi
je 0x14000f405
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14000f414
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x14000f423
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x40], 0
je 0x14000f436
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14000fab0
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140007c60
Capabilities:
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
mov rbx, rcx
and edi, 0xffffb1af
cmp qword [rcx + 0x18], 8
jb 0x140007c9d
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140007cb0
mov al, 1
jmp 0x140007d57
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140008eb0
test al, al
je 0x140007d01
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140007d01
mov bl, 1
jmp 0x140007d03
xor bl, bl
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140007d41
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007d3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007d74
call fcn.140049020
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], si
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140048fc0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.14004d324
int3

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

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140007db5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140007e5f
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140080000]
movdqu xmmword [rsp + 0x38], xmm1
xor esi, esi
mov word [rsp + 0x28], si
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140008eb0
test al, al
je 0x140007e0e
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140007e4c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007e47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007e7e
call fcn.140049020
movdqa xmm0, xmmword [0x140080000]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140048fc0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14004d324
int3
Function at 0x140007e90
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x140007ecc
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140007ed6
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140007ee7
mov al, 1
jmp 0x1400080b8
xor sil, sil
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
movdqa xmm1, xmmword [0x140080000]
movdqu xmmword [rbp - 0x18], xmm1
xor r14d, r14d
mov word [rbp - 0x28], r14w
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.140008eb0
movzx ebx, sil
mov ecx, 1
test al, al
cmovne ebx, ecx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
movdqa xmm1, xmmword [0x140080000]
movdqu xmmword [rbp - 0x38], xmm1
mov word [rbp - 0x48], r14w
lea rdx, [rbp - 0x48]
mov rcx, rdi
call fcn.140008eb0
test al, al
jne 0x140007f53
test bl, bl
je 0x140008016
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140008016
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140007fbd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007fb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400080df
call fcn.140049020
movdqa xmm0, xmmword [0x140080000]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14000800f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000800a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400080e5
call fcn.140049020
mov al, 1
jmp 0x1400080a6
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140008056
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140008051
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400080eb
call fcn.140049020
movdqa xmm0, xmmword [0x140080000]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400080a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000809f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400080d9
call fcn.140049020
xor al, al
movdqa xmm0, xmmword [0x140080000]
mov word [rbp - 0x28], r14w
movdqu xmmword [rbp - 0x18], xmm0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140048fc0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14004d324
nop
call fcn.14004d324
nop
call fcn.14004d324
nop
call fcn.14004d324
int3
Function at 0x140008740
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x20]
call fcn.14004ae70
cmp qword [rdi + 0x18], 8
jb 0x140008782
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x14000878c
mov rbx, qword [rbx]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400087dc
xor eax, eax
mov r8, 0xffffffffffffffff
mov word [rsp + 0x22a], ax
lea rax, [rsp + 0x20]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400087c0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140004360
mov al, 1
jmp 0x1400087de
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x140027140
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.14004ae70
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400272a2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1400271a4
jne 0x140027245
cmp dword [rbx + 8], 2
jb 0x140027245
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140027245
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140027245
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140027245
movups xmm0, xmmword [0x140079d40]
mov rcx, rax
movups xmm1, xmmword [0x140079d50]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140027245
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140027245
cmp word [rdi + 2], ax
jbe 0x140027245
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140027296
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.14004ae70
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x140027296
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1400272a4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x170
pop rbx
ret
Function at 0x14002f3d0
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x14002f415
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r14
mov word [rdi + 8], r14w
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x28]
call fcn.140031180
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rbp, [rbx + 0x10]
jne 0x14002f43c
mov rbp, r14
cmp qword [rsi + 0x10], 0
je 0x14002f452
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x14002f455
mov r8, qword [rsi]
jmp 0x14002f455
mov r8, r14
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x14002f4a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002f4a3
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x10], 0
je 0x14002f48f
cmp qword [rsi + 0x18], 8
jb 0x14002f492
mov rsi, qword [rsi]
jmp 0x14002f492
mov rsi, r14
mov r8, rsi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
mov rax, qword [rdi]
test rax, rax
je 0x14002f4ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002f4bc
mov byte [rdi + 9], 1
mov rcx, qword [rdi]
call fcn.140030790
mov rax, qword [rdi]
test rax, rax
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x14002f4ed
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002f500
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.140049020
mov qword [rsp + 0x28], r14
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140048fc0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14002f760
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.140048fe4
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.14004ae70
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x14002f7c7
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x150
pop rbx
ret
Function at 0x140034290
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x1400342dd
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400342dd
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0x38]
cmp eax, 0x7530
jb 0x140034363
lea rcx, [rsi + 8]
call fcn.140006130
lea rcx, [rsi + 0x20]
call fcn.140006130
lea rdx, [rsi + 8]
mov rcx, rsi
call fcn.1400343a0
lea r9, [rsi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1400346a0
lea r9, [rsi + 0x20]
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.1400346a0
lea r9, [rsi + 0x20]
xor r8d, r8d
mov dl, 1
mov rcx, rsi
call fcn.1400346a0
lea r9, [rsi + 0x20]
mov r8b, 1
movzx edx, r8b
mov rcx, rsi
call fcn.1400346a0
lea rdx, [rsi + 0x20]
call fcn.140035820
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x38], eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x140034371
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140048fc0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140046d30
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140046d5f
xor al, al
jmp 0x140046daa
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x4a8], rbp
or r9d, 0x20019
xor ebp, ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call fcn.140047150
test al, al
je 0x140046da0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], bpl
je 0x140046dc5
mov byte [rdi + 1], 1
mov al, 1
mov rbp, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140046dd2
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x140046da0
cmp qword [rbx + 0x18], 8
jb 0x140046de9
mov rbx, qword [rbx]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x412
call fcn.14004ae70
lea rax, [rsp + 0x40]
mov r9d, 0x208
sub rbx, rax
lea rdx, [rsp + 0x40]
nop
lea rax, [r9 + 0x7ffffdf6]
test rax, rax
je 0x140046e32
movzx eax, word [rbx + rdx]
test ax, ax
je 0x140046e32
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140046e10
mov r8d, dword [rdi + 4]
lea rax, [rdx - 2]
test r9, r9
mov rcx, rsi
cmovne rax, rdx
lea rdx, [rsp + 0x40]
mov word [rax], bp
call fcn.1400474e0
test eax, eax
setne al
jmp 0x140046da2

Function at 0x140046e60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140046ee4
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call fcn.140047150
test al, al
je 0x140046eb8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], 0
je 0x140046eca
mov byte [rdi + 1], 1
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x140046ed4
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140046eb8
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140046f00
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14009a750]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140046f38
xor al, al
jmp 0x140047079
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x140080000]
movdqu xmmword [rsp + 0x58], xmm1
xor r14d, r14d
mov word [rsp + 0x48], r14w
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x140046f65
mov rdx, qword [r8]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140080000]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r14w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140046f90
lea rcx, [rsp + 0x28]
call fcn.140004360
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rdx, rsi
mov rcx, rdi
call fcn.1400472a0
movzx ebp, al
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140047000
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046ffb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400470bc
call fcn.140049020
movdqa xmm0, xmmword [0x140080000]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
test bpl, bpl
je 0x140047022
cmp byte [rdi], 0
je 0x140047091
mov byte [rdi + 1], 1
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140047062
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004705d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400470b6
call fcn.140049020
movdqa xmm0, xmmword [0x140080000]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140048fc0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rbx + 0x18], 8
jb 0x14004709b
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140047022
xor bl, bl
jmp 0x140047024
call fcn.14004d324
nop
call fcn.14004d324
int3