joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028330
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 [0x1401b5e90]
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
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rbp - 0x19]
lea rax, [rbp - 0x19]
test rax, 0xffffffffffff0000
jne 0x14002842f
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14002845a
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140002690
jmp 0x14002845a
lea rax, [rbp - 0x19]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140028440
mov r8d, ecx
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.1400023a0
nop
mov dword [rbp - 0x39], 1
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400cbae0
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 0x140029b80
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 0x140029bf4
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140029bed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x140029c8d
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 0x140029c2c
xor edx, edx
mov rcx, rdi
call fcn.140002490
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 0x140029c8a
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 0x140029ca0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
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 0x140029ce7
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x14002a4a0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1401b5e90]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r9d, dword [0x1401bdd80]
mov r14, rdx
mov eax, 0x78787879
lea r8d, [r9 + 1]
xor sil, sil
xor ebx, ebx
mov r10, rcx
imul r8d, r9d
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub r8d, edx
cmp r8d, 0xf
jne 0x14002a59a
mov edx, ebx
mov ecx, edx
mov eax, edx
inc edx
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
mov ecx, eax
sar eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, r9d
xor ecx, eax
mov eax, ecx
sar ecx, 1
and eax, 1
dec eax
not eax
and eax, r9d
xor eax, ecx
add r9d, eax
cmp edx, 0x100
jl 0x14002a500
mov dword [0x1401bdd80], r9d
mov rcx, qword [r10]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002a615
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [r14]
mov dword [rsp + 0x40], ebx
mov r8d, dword [rdx - 0x10]
lea r9, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a615
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov sil, 1
mov edx, dword [0x1401bdd80]
mov eax, edx
imul eax, edx
and eax, 0x8000000f
jge 0x14002a62e
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xa
jne 0x14002a663
lea r8, [rsp + 0x50]
nop dword [rax + rax]
mov eax, dword [r8]
inc ebx
lea r8, [r8 + 4]
movsxd rcx, ebx
imul eax, eax, 0xf9
add edx, eax
cmp rcx, 0x1f8
jb 0x14002a640
mov dword [0x1401bdd80], edx
cmp rdi, 0xffffffffffffffff
je 0x14002a672
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400cbae0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140047e20
Capabilities:
Check os version

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov rbp, r8
mov r14, rdx
mov rdi, rcx
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr ax, 8
movzx edx, al
cmp ecx, 6
ja 0x140047e7f
jne 0x140047efa
cmp edx, 1
jbe 0x140047efa
cmp qword [0x1401b8d58], 0xffffffff80000002
je 0x140047efa
mov r8b, 1
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140047880
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x140047ef3
cmp dword [rdi + 0x10], 0
jl 0x140047ee4
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140047ee4
call fcn.1400024f0
mov rsi, rax
lock add dword [rdi + 0x10], ebx
jg 0x140047ed9
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x140047ef3
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400023a0
nop
mov rdx, qword [rsp + 0x20]
jmp 0x140047f66
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.140047880
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
lea rdi, [rbx - 0x18]
or ebx, 0xffffffff
cmp rcx, rdi
je 0x140047f61
cmp dword [rdi + 0x10], 0
jl 0x140047f52
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140047f52
call fcn.1400024f0
mov rsi, rax
lock add dword [rdi + 0x10], ebx
jg 0x140047f47
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x140047f61
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.1400023a0
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140047f7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [0x1401b8d58]
lea rcx, [rsp + 0x78]
call fcn.1400477b0
mov r8, rbp
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140047fd0
movzx edi, al
mov rax, qword [rsp + 0x78]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
jg 0x140047fb9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
movzx eax, dil
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140047fd0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdx, qword [rcx]
mov rcx, qword [0x1401b8d58]
lea rax, [rsp + 0x40]
mov rdi, r8
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140048014
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rdi]
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
jne 0x14004802f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
jmp 0x140048069
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140048069
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
mov rbx, qword [rsp + 0x48]
sete al
add rsp, 0x30
pop rdi
ret
Function at 0x140048a10
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov rbx, r9
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov qword [r11 - 0x38], r15
mov dword [r11 - 0x30], r15d
mov qword [r11 - 0x28], r15
mov qword [r11 - 0x48], r15
lea rax, [r11 + 0x18]
mov qword [r11 - 0x58], rax
lea rax, [r11 - 0x48]
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x68], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140048a9d
mov dword [rsp + 0x68], r15d
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x60], rdi
jmp 0x140048aca
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001bd70
mov rdi, qword [rsp + 0x60]
test eax, eax
je 0x140048aca
xor bl, bl
jmp 0x140048b9f
mov rcx, qword [rsi]
mov eax, r15d
test rcx, rcx
setne al
test eax, eax
jne 0x140048adf
lea ebp, [rax + 0xd]
jmp 0x140048b15
or rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140048ae3
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, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
test rdi, rdi
je 0x140048b2b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r15
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x68], r15d
mov esi, dword [0x1401bdd80]
mov ecx, esi
imul ecx, esi
and ecx, 0x8000000f
jge 0x140048b4a
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 0xa
jne 0x140048b9a
lea r8d, [rcx + 0x33]
mov r11d, r15d
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
nop
test ebx, ebx
jle 0x140048b92
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov r9d, r15d
mov r10, rbx
test eax, eax
jle 0x140048b8a
mov ecx, r9d
mov edx, eax
nop
add r8d, ecx
dec ecx
dec rdx
jne 0x140048b80
add r9d, r11d
dec r10
jne 0x140048b75
inc r11d
cmp r11d, r8d
jl 0x140048b60
test ebp, ebp
sete bl
test rdi, rdi
je 0x140048bb2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r15
movzx eax, bl
mov dword [rsp + 0x68], r15d
lea r11, [rsp + 0x80]
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 0x140048be0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov eax, dword [0x1401bdd80]
mov r9d, eax
imul r9d, eax
imul r9d, eax
mov eax, 0x92492493
imul r9d
add edx, r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub r9d, edx
cmp r9d, 5
jne 0x140048c49
lea edx, [r9 + 0x1d]
lea r8d, [r9 + 0x1e]
lea rcx, str._d__d_n
call fcn.1400cc3f4
xor ebp, ebp
mov qword [rsp + 0x58], rbp
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0x100
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140048cad
mov dword [rsp + 0x60], ebp
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x58], rbx
jmp 0x140048cd7
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
mov r8, qword [rbx]
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14001bd70
mov rbx, qword [rsp + 0x58]
test eax, eax
je 0x140048cd7
xor dil, dil
jmp 0x140048d27
mov eax, dword [r14]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x140048d1d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebp
test edi, edi
sete dil
test rbx, rbx
je 0x140048d3a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], rbp
movzx eax, dil
mov dword [rsp + 0x60], ebp
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140048d50
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 0x140048efb
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 0x140048ded
mov edx, 0x800
mov rcx, r14
call fcn.140002490
mov rsi, qword [r14]
cmp dword [rsi - 0xc], 0x800
jge 0x140048e04
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 0x140048e95
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
jbe 0x140048e62
mov edi, 0xd
jmp 0x140048e95
mov ecx, dword [rsp + 0x90]
test rsi, rsi
je 0x140048e8e
test ecx, ecx
je 0x140048e8a
test cl, 1
jne 0x140048e83
mov eax, ecx
shr rax, 1
cmp word [rsi + rax*2 - 2], bp
je 0x140048e8e
mov edi, 0xd
jmp 0x140048e95
mov word [rsi], r15w
mov ebp, ecx
shr ebp, 1
mov edi, r15d
lea eax, [rbp - 1]
cmp eax, 0xffffffff
jne 0x140048eb3
mov rcx, qword [r14]
test rcx, rcx
jne 0x140048eaa
mov eax, r15d
jmp 0x140048eb7
movsxd rdx, dword [rcx - 0xc]
call fcn.1400cc6d4
test eax, eax
js 0x140048ef0
mov rcx, qword [r14]
cmp eax, dword [rcx - 0xc]
jg 0x140048ef0
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r14]
mov word [rax + rcx*2], r15w
test rbx, rbx
je 0x140048ee3
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 0x140048efe
mov ecx, 0x80070057
call fcn.140001920
int3
xor dil, dil
test rbx, rbx
je 0x140048f11
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 0x140048f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov r10, r9
mov rax, r8
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov edi, r14d
mov qword [r11 - 0x38], r14
mov dword [r11 - 0x30], r14d
mov qword [r11 - 0x28], r14
mov qword [r11 + 0x18], r14
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 0x14004907f
mov dword [rsp + 0x48], r14d
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x90], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test eax, eax
jne 0x140048ffb
mov ebp, r14d
mov eax, 0xd
cmp dword [rsp + 0x30], 4
cmovne ebp, eax
test rdi, rdi
je 0x140049011
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov eax, dword [0x1401bdd80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 4
jne 0x140049078
mov ecx, 0x28
call fcn.1400cb128
mov rsi, rax
mov rbx, r14
nop
call fcn.1400cc4a0
add eax, dword [0x1401bdd80]
mov dword [rsi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x140049050
mov ecx, dword [rsi + 0x24]
mov dword [0x1401bdd80], ecx
mov rcx, rsi
call fcn.1400cc208
test ebp, ebp
sete bl
jmp 0x140049081
xor bl, bl
test rdi, rdi
je 0x140049094
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
movzx eax, bl
mov dword [rsp + 0x48], r14d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400490c0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rdi, r8
mov rsi, rdx
mov rbp, qword [0x1401b8d58]
xor r8d, r8d
mov dword [rsp + 0x70], r8d
mov ecx, dword [0x1401bdd80]
lea r9d, [rcx + 2]
lea eax, [rcx + 1]
imul r9d, eax
imul r9d, ecx
mov eax, 0x78787879
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub r9d, edx
cmp r9d, 2
jne 0x140049138
mov qword [rsp + 0x20], r8
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.1400024f0
add rax, 0x18
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, rbp
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140049260
test al, al
jne 0x140049232
mov eax, dword [0x1401bdd80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 2
jne 0x1400491dd
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401bdd80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401bdd80], ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx]
sub rcx, 0x18
call fcn.1400024f0
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbp
mov r8, rdi
xor edx, edx
mov rcx, rsi
call fcn.140049870
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004922e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14004924d
mov rdx, qword [rbx]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140049249
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004a7f0
Capabilities:
Encode data using xor

Disassembly:
mov r8d, dword [0x1401bdd80]
lea eax, [r8 + 1]
lea ecx, [r8 + 2]
imul ecx, eax
mov eax, 0x66666667
imul ecx, r8d
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 1
jne 0x14004a8ed
mov eax, r8d
imul eax, r8d
and eax, 0x8000000f
jge 0x14004a83d
dec eax
or eax, 0xfffffff0
inc eax
cmp eax, 0xa
jne 0x14004a8ea
xor edx, edx
nop dword [rax + rax]
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 0x14004a850
mov dword [0x1401bdd80], r8d
xor al, al
ret
mov al, 1
ret