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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x2c0], rbx
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x58], rcx
mov r9d, dword [rdi + 8]
or r9d, 0x2001f
mov rax, qword [rdi]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001aca4
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r9d
mov r8, rsi
mov rdx, rax
call fcn.14001a870
jmp 0x14001acba
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14001adc3
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001acdf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x14001adc3
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001ad86
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.14001ac20
mov ebx, eax
test eax, eax
jne 0x14001adc3
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14001ad31
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001ad9b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14001adb5
mov r8, rsi
mov rdx, qword [rdi]
call fcn.14001aa70
jmp 0x14001adc1
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001ade0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
jmp 0x14001ade8
mov dword [rsp + 0x50], 0
mov eax, ebx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400c2810
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001ea60
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xorps xmm0, xmm0
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cvtsi2sd xmm0, rdx
test rdx, rdx
jns 0x14001ea95
addsd xmm0, qword [0x14013a5b8]
divsd xmm0, qword [0x14013a580]
call fcn.1400e29a0
movsd xmm1, qword [0x14013a5b0]
xor eax, eax
mulsd xmm0, qword [0x14013a588]
comisd xmm0, xmm1
jb 0x14001ead1
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14001ead1
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si r11, xmm0
add r11, rax
test rdi, rdi
je 0x14001ebf0
test rsi, rsi
je 0x14001ebf0
cmp r11, rbp
ja 0x14001ebf0
xor r8d, r8d
lea rbp, [0x140000000]
mov edx, r8d
test rbx, rbx
je 0x14001eba7
mov r10, rsi
cmp rdx, rbx
jae 0x14001eb1b
movzx eax, byte [rdx + rdi]
inc rdx
jmp 0x14001eb1e
mov eax, r8d
cmp rdx, rbx
jae 0x14001eb2d
movzx r9d, byte [rdx + rdi]
inc rdx
jmp 0x14001eb30
mov r9d, r8d
cmp rdx, rbx
jae 0x14001eb3e
movzx ecx, byte [rdx + rdi]
inc rdx
jmp 0x14001eb41
mov ecx, r8d
shl eax, 8
add r10, 4
add eax, r9d
shl eax, 8
add eax, ecx
mov ecx, eax
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbp + 0x1a4d50]
mov byte [r10 - 4], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbp + 0x1a4d50]
mov byte [r10 - 3], al
mov eax, ecx
and ecx, 0x3f
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rbp + 0x1a4d50]
mov byte [r10 - 2], al
movzx eax, byte [rcx + rbp + 0x1a4d50]
mov byte [r10 - 1], al
cmp rdx, rbx
jb 0x14001eb12
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbx, rax
cmp dword [rbp + rbx*4 + 0x1366f0], r8d
jle 0x14001ebe4
lea rax, [rsi - 1]
add rax, r11
nop
mov byte [rax], 0x3d
inc r8d
lea rax, [rax - 1]
cmp r8d, dword [rbp + rbx*4 + 0x1366f0]
jl 0x14001ebd0
mov rax, qword [rsp + 0x50]
mov qword [rax], r11
mov al, 1
jmp 0x14001ebf2
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400254f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov qword [rbp - 0x29], rcx
xor r15d, r15d
mov dword [rbp - 0x39], r15d
mov dword [rbp - 0x19], 0x5f005f
mov dword [rbp - 0x15], 0x520043
mov dword [rbp - 0x11], 0x40005f
mov dword [rbp - 0xd], 0x410046
mov dword [rbp - 9], 0x4c0049
mov dword [rbp - 5], 0x440045
mov dword [rbp - 1], 0x44005f
mov dword [rbp + 3], 0x57004f
mov dword [rbp + 7], 0x4c004e
mov dword [rbp + 0xb], 0x41004f
mov dword [rbp + 0xf], 0x5f0044
mov dword [rbp + 0x13], 0x450052
mov dword [rbp + 0x17], 0x440041
mov dword [rbp + 0x1b], 0x5f0040
mov dword [rbp + 0x1f], 0x520043
mov dword [rbp + 0x23], 0x5f005f
mov word [rbp + 0x27], r15w
mov r8d, dword [0x1401a9d80]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
lea esi, [r15 + 1]
cmp ecx, 2
jne 0x1400255e2
test r8d, r8d
cmove r8d, esi
mov dword [0x1401a9d80], r8d
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rbp - 0x19]
lea rax, [rbp - 0x19]
test rax, 0xffffffffffff0000
jne 0x140025629
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14002564b
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140002750
jmp 0x14002564b
lea rax, [rbp - 0x19]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140025631
mov r8d, ecx
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140002460
nop
mov dword [rbp - 0x39], esi
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400c2810
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400267f0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov qword [rax - 0x28], 0
mov dword [rax - 0x30], 0x80
mov dword [rax - 0x38], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140026864
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14002685d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1400268fd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x60], 0
mov rax, qword [rdi]
mov ebx, dword [rax - 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x14002689c
xor edx, edx
mov rcx, rdi
call fcn.140002550
lea r8d, [rbx + rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete bl
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400268fa
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140026910
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
xor eax, eax
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140026957
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, dword [0x1401a9d80]
mov eax, eax
lea ecx, [r8 + 2]
mov qword [rdi], rax
lea eax, [r8 + 1]
imul ecx, eax
mov eax, 0x30c30c31
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 5
jne 0x1400269f3
movsd xmm3, qword [0x14013a568]
movsd xmm5, qword [0x14013a590]
movd xmm4, r8d
xorps xmm2, xmm2
movaps xmmword [rsp + 0x40], xmm6
movsd xmm6, qword [0x14013a560]
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x1400269da
subsd xmm2, xmm3
divsd xmm3, xmm5
movaps xmm1, xmm2
movaps xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm0, xmm1
comisd xmm0, xmm6
ja 0x1400269c1
movaps xmm6, xmmword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140040e80
Capabilities:
Check os version

Disassembly:
push rbx
mov eax, 0x15c10
call fcn.1400c78c0
sub rsp, rax
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rsp + 0x15c00], rax
mov ecx, dword [0x1401a9d80]
xor ebx, ebx
lea eax, [rcx + 1]
lea r8d, [rcx + 2]
imul r8d, eax
mov eax, 0x2e8ba2e9
imul r8d, ecx
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub r8d, edx
cmp r8d, 7
jne 0x140040f51
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x15bd0
mov word [rsp + 0x20], bx
call fcn.1400c7c50
mov r10d, ebx
or r9, 0xffffffffffffffff
mov rax, rbx
test r10, r10
je 0x140040f25
test rax, rax
je 0x140040f25
lea rcx, [r9 + rax]
lea rdx, [r9 + rax]
movzx r8d, word [rsp + rdx*2 - 0x184]
inc r8w
add r8w, word [rsp + rcx*2 + 0x20]
lea rcx, [r9 + rax]
mov word [rsp + rcx*2 + 0x22], r8w
inc rax
cmp rax, 0xd3
jl 0x140040ef6
add r9, 0xd3
inc r10
cmp r9, 0xade8
jl 0x140040ef3
movsx eax, word [rsp + 0x15bf0]
mov dword [0x1401a9d80], eax
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, 6
ja 0x140040f6e
jne 0x140040f69
shr ax, 8
cmp al, 1
ja 0x140040f6e
movzx eax, bl
jmp 0x140040f70
mov al, 1
mov rcx, qword [rsp + 0x15c00]
xor rcx, rsp
call fcn.1400c2810
add rsp, 0x15c10
pop rbx
ret
Function at 0x1400434c0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor ebp, ebp
mov qword [r11 - 0x38], rbp
mov dword [rsp + 0x68], ebp
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x48], rbp
lea rax, [r11 + 0x18]
mov qword [r11 - 0x58], rax
lea rax, [r11 - 0x48]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140043546
mov dword [rsp + 0x68], ebp
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
jmp 0x140043570
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001ab50
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x140043570
xor dil, dil
jmp 0x1400435e2
mov rcx, qword [rsi]
mov eax, ebp
test rcx, rcx
setne al
test eax, eax
jne 0x140043584
lea edi, [rax + 0xd]
jmp 0x1400435c2
or rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140043590
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x1400435d8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebp
test edi, edi
sete dil
test rbx, rbx
je 0x1400435f5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbp
movzx eax, dil
mov dword [rsp + 0x68], ebp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140043620
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor ebp, ebp
mov qword [r11 - 0x38], rbp
mov dword [rsp + 0x68], ebp
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x48], rbp
lea rax, [r11 + 0x18]
mov qword [r11 - 0x58], rax
lea rax, [r11 - 0x48]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400436a6
mov dword [rsp + 0x68], ebp
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x60], rbx
jmp 0x1400436d0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001ab50
mov rbx, qword [rsp + 0x60]
test eax, eax
je 0x1400436d0
xor dil, dil
jmp 0x140043725
mov eax, dword [rsi]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14004371b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebp
test edi, edi
sete dil
test rbx, rbx
je 0x140043738
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbp
movzx eax, dil
mov dword [rsp + 0x68], ebp
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140043760
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov r10, r9
mov rax, r8
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
mov qword [r11 - 0x38], rbx
mov dword [r11 - 0x30], r15d
mov qword [r11 - 0x28], r15
mov qword [r11 + 0x18], r15
lea rcx, [r11 + 0x18]
mov qword [r11 - 0x58], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004390b
mov dword [rsp + 0x48], r15d
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x40], rbx
mov rax, qword [r14]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x800
or eax, ecx
jge 0x1400437fd
mov edx, 0x800
mov rcx, r14
call fcn.140002550
mov rsi, qword [r14]
cmp dword [rsi - 0xc], 0x800
jge 0x140043814
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rsi - 0x10], 0x800
mov rax, qword [r14]
mov word [rax + 0x1000], r15w
mov dword [rsp + 0x90], 0x1000
mov ebp, r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400438a5
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
jbe 0x140043872
mov edi, 0xd
jmp 0x1400438a5
mov ecx, dword [rsp + 0x90]
test rsi, rsi
je 0x14004389e
test ecx, ecx
je 0x14004389a
test cl, 1
jne 0x140043893
mov eax, ecx
shr rax, 1
cmp word [rsi + rax*2 - 2], bp
je 0x14004389e
mov edi, 0xd
jmp 0x1400438a5
mov word [rsi], r15w
mov ebp, ecx
shr ebp, 1
mov edi, r15d
lea eax, [rbp - 1]
cmp eax, 0xffffffff
jne 0x1400438c3
mov rcx, qword [r14]
test rcx, rcx
jne 0x1400438ba
mov eax, r15d
jmp 0x1400438c7
movsxd rdx, dword [rcx - 0xc]
call fcn.1400c3494
test eax, eax
js 0x140043900
mov rcx, qword [r14]
cmp eax, dword [rcx - 0xc]
jg 0x140043900
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r14]
mov word [rax + rcx*2], r15w
test rbx, rbx
je 0x1400438f3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r15
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], r15d
test edi, edi
sete dil
jmp 0x14004390e
mov ecx, 0x80070057
call fcn.140001920
int3
xor dil, dil
test rbx, rbx
je 0x140043921
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
movzx eax, dil
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140043950
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov r10, r9
mov rax, r8
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
mov ebx, ebp
mov qword [r11 - 0x28], rbx
mov dword [rsp + 0x48], ebp
mov qword [r11 - 0x18], rbp
mov qword [r11 + 0x18], rbp
lea rcx, [r11 + 0x18]
mov qword [r11 - 0x48], rcx
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140043a26
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x80], 4
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140043a04
mov edi, ebp
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne edi, eax
test rbx, rbx
je 0x140043a1a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebp
test edi, edi
sete dil
jmp 0x140043a29
xor dil, dil
test rbx, rbx
je 0x140043a3c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
movzx eax, dil
mov dword [rsp + 0x48], ebp
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x140047c00
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, eax
mov edx, dword [0x1401a9d80]
imul edx, edx
and edx, 0x8000000f
jge 0x140047c49
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x140047c75
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0xcccccccd
mul r8d
shr edx, 6
lea ecx, [rdx + rdx*4]
shl ecx, 4
sub r8d, ecx
lea eax, [r8 + 1]
mov dword [0x1401a9d80], eax
movzx ebp, dil
movzx eax, di
shr ax, 8
movzx r14d, al
cmp edi, 0x80000000
jae 0x140047c91
mov esi, edi
shr esi, 0x10
cmp ebp, 6
jb 0x140047caf
cmp r14d, 2
jb 0x140047caf
mov rcx, rbx
call fcn.140047f70
nop
mov dword [rsp + 0x30], 1
jmp 0x140047d16
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], esi
mov r9d, r14d
mov r8d, ebp
lea rdx, str._d._d___d_
lea rcx, [rsp + 0x68]
call fcn.140010db0
mov rdi, qword [rsp + 0x68]
lea rcx, [rdi - 0x18]
call fcn.1400025b0
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
lock add dword [rdi - 8], 0xffffffff
jg 0x140047d16
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140048e00
Capabilities:
Encode data using xor

Disassembly:
mov r8d, dword [0x1401a9d80]
mov eax, 0x2aaaaaab
mov ecx, r8d
imul ecx, r8d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
lea edx, [rdx + rdx*2]
shl edx, 3
sub eax, edx
cmp eax, 0xf
jne 0x140048f10
and ecx, 0x8000000f
jge 0x140048e41
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 6
je 0x140048f0d
lea ecx, [r8 + 1]
mov eax, 0x6bca1af3
imul ecx, r8d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 9
jne 0x140048f0d
xor edx, edx
mov ecx, edx
mov eax, edx
inc edx
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r8d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r8d
xor eax, ecx
add r8d, eax
cmp edx, 0x100
jl 0x140048e73
mov dword [0x1401a9d80], r8d
xor al, al
ret
mov al, 1
ret

Function at 0x1400492a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp byte [0x1401aa977], 0
lea rax, [0x1401a5ae8]
jne 0x14004934f
mov dword [rbp - 0x40], 0x80012
mov dword [rbp - 0x3c], 0xa000c
mov dword [rbp - 0x38], 0x140008
mov dword [rbp - 0x34], 0x17003d
mov dword [rbp - 0x30], 0x3c0006
mov dword [rbp - 0x2c], 0x110011
mov dword [rbp - 0x28], 0x50002
mov dword [rbp - 0x24], 0x140006
mov dword [rbp - 0x20], 0x18002e
mov dword [rbp - 0x1c], 0x1001a
mov dword [rbp - 0x18], 0x1d000f
mov dword [rbp - 0x14], 0x1e
xor ecx, ecx
lea r8, [0x1401a4d90]
nop dword [rax + rax]
movzx edx, byte [rcx + r8]
inc rcx
xor dx, word [rbp + rcx*2 - 0x42]
mov word [rax + rcx*2 - 2], dx
cmp rcx, 0x17
jl 0x140049330
mov byte [0x1401aa977], 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400c2810
add rsp, 0x40
pop rbp
ret