joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035110
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov r14, r8
mov rbp, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140034900
nop
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14001d690
lea rcx, [rsp + 0x50]
call fcn.140034a70
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.140020c90
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14001d690
nop
lea rcx, [rsp + 0xc0]
call fcn.14001d440
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x58]
call fcn.1400222a0
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14001d690
nop
lea rcx, [rsp + 0xe8]
call fcn.14001d440
xor dil, dil
mov ebx, 0x80
xor esi, esi
nop word [rax + rax]
lea rcx, [rsp + 0x58]
call fcn.14002aa20
mov rcx, rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xa8], rax
cmp rax, 0xffffffffffffffff
jne 0x140035272
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xb0], eax
cmp eax, 5
jne 0x14003526b
test dil, dil
jne 0x14003526b
mov dil, 1
lea rcx, [rsp + 0x58]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14003526b
cmp eax, 0x80
je 0x14003526b
test dil, bl
je 0x1400351d0
and ebx, 0xfffffffe
lea rcx, [rsp + 0x58]
call fcn.14002aa20
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400351d0
mov esi, 0xfffffffe
jmp 0x140035293
mov byte [rsp + 0x50], 1
test rbp, rbp
je 0x140035293
test r14, r14
jle 0x140035293
mov r8, r14
mov rdx, rbp
lea rcx, [rsp + 0x50]
call fcn.140034dc0
mov esi, eax
lea rcx, [rsp + 0x50]
call fcn.140034940
mov eax, esi
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140283120
add rsp, 0x120
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140035f00
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov eax, dword [rcx]
mov rdi, r8
mov r11d, dword [rcx + 4]
mov rbx, rdx
mov r10, rcx
test r8, r8
jle 0x140035f70
nop
inc al
lea rbx, [rbx + 1]
movzx eax, al
mov r9d, dword [r10 + rax*4 + 8]
lea r8, [r10 + rax*4]
lea ecx, [r11 + r9]
movzx r11d, cl
mov edx, dword [r10 + r11*4 + 8]
mov dword [r8 + 8], edx
mov dword [r10 + r11*4 + 8], r9d
add r9b, dl
movzx ecx, r9b
movzx edx, byte [r10 + rcx*4 + 8]
xor byte [rbx - 1], dl
sub rdi, 1
jne 0x140035f20
mov dword [r10], eax
mov dword [r10 + 4], r11d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [rcx], eax
mov dword [rcx + 4], r11d
ret
Function at 0x14004e800
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x20
test ecx, ecx
je 0x14004e85f
xor edx, edx
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14004e854
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
jne 0x14004e85f
mov eax, 0xfffffffe
add rsp, 0x20
pop rdi
ret
mov eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14004e870
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xor eax, eax
mov qword [r11 - 0x30], rax
lea rdx, [r11 - 0x40]
call fcn.14004e2f0
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
sub rbp, rdi
cmp rbp, 4
jae 0x14004e8ca
mov r14d, 0xffffffff
jmp 0x14004e962
mov r13b, 1
xor edx, edx
mov r12d, edx
sar rbp, 2
test ebp, ebp
jle 0x14004e95f
mov rsi, rdi
lea edi, [rdx - 2]
lea r14d, [rdx - 1]
mov r8d, dword [rsi]
test r8d, r8d
je 0x14004e92f
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14004e92c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
test ebx, ebx
mov eax, 0
cmovne edx, eax
jmp 0x14004e931
mov edx, r14d
xor eax, eax
mov ecx, eax
movzx eax, r13b
test edx, edx
cmove ecx, eax
movzx r13d, cl
inc r12d
add rsi, 4
cmp r12d, ebp
mov edx, 0
jl 0x14004e8e8
test cl, cl
mov rdi, qword [rsp + 0x28]
jne 0x14004e95f
lea ebx, [rdx - 2]
jmp 0x14004e965
mov r14d, edx
mov ebx, r14d
test rdi, rdi
je 0x14004e99f
mov rdx, qword [rsp + 0x38]
sub rdx, rdi
and rdx, 0xfffffffffffffffc
mov rax, rdi
cmp rdx, 0x1000
jb 0x14004e997
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e9c1
mov rcx, rdi
call fcn.140283144
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140287d84
int3
Function at 0x1400508d0
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
add rcx, 8
call fcn.14001d690
mov rcx, rdi
call fcn.140034a70
mov qword [rdi + 0x68], 0
lea rdx, [rsp + 0x50]
lea rcx, [rdi + 8]
call fcn.140020c90
nop
mov rdx, rax
lea rcx, [rdi + 8]
call fcn.14001d690
nop
lea rcx, [rsp + 0x50]
call fcn.14001d440
lea rdx, [rsp + 0x78]
lea rcx, [rdi + 8]
call fcn.1400222a0
nop
mov rdx, rax
lea rcx, [rdi + 8]
call fcn.14001d690
nop
lea rcx, [rsp + 0x78]
call fcn.14001d440
lea rcx, [rdi + 8]
call fcn.14002aa20
mov rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, dword [rdi + 0x70]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x1400509b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x60], eax
mov eax, 0xfffffffe
jmp 0x1400509ed
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400509df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x60], eax
mov rcx, rdi
call fcn.140034b70
mov eax, 0xfffffffd
jmp 0x1400509ed
mov rcx, qword [rsp + 0x40]
mov qword [rdi + 0x68], rcx
mov byte [rdi], 1
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop rdi
ret

Function at 0x140051660
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rcx + 8]
mov rcx, qword [rcx]
call fcn.14006c980
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp fcn.14006cb80
Function at 0x140052fa0
Capabilities:
Delete registry value

Disassembly:
push rdi
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rdi, rcx
mov dword [rcx], 0
je 0x140052fed
mov rcx, rdx
mov qword [rsp + 0x30], rbx
call fcn.14002aa20
mov rcx, qword [rdi + 0x10]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
mov dword [rdi], eax
jne 0x140052fed
mov al, 1
add rsp, 0x20
pop rdi
ret
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x140053000
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 8], 0
mov rbx, r8
mov rdi, rcx
mov dword [rcx], 0
je 0x140053076
mov rcx, rdx
mov dword [rsp + 0x58], 4
mov dword [rsp + 0x40], 4
call fcn.14002aa20
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x58]
mov rdx, rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
test ebx, ebx
jne 0x140053076
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140053090
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x480
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x4d8], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r8
mov rdi, rdx
mov r12, rcx
xor r13d, r13d
mov ebx, r13d
mov dword [rsp + 0x44], ebx
mov dword [rcx], r13d
mov rcx, rdx
call fcn.14001f110
cmp byte [r12 + 8], bl
jne 0x1400530f2
xor al, al
jmp 0x140053218
mov ebp, r13d
nop word [rax + rax]
mov dword [rsp + 0x40], 0x100
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rsp + 0x80]
call fcn.140285450
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
mov edx, ebp
mov rcx, qword [r12 + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r12], eax
test r14d, r14d
jne 0x14005320b
mov rcx, r15
call fcn.140028de0
test al, al
je 0x1400531a5
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001c950
nop
or ebx, 1
mov dword [rsp + 0x44], ebx
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, r15
call fcn.140026ad0
test al, al
jne 0x1400531a5
mov sil, 1
jmp 0x1400531a8
xor sil, sil
test bl, 1
je 0x1400531ba
and ebx, 0xfffffffe
lea rcx, [rsp + 0x58]
call fcn.14001d440
test sil, sil
jne 0x14005320b
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001c950
nop
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x1400531f0
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.14001c050
add qword [rdi + 8], 0x28
jmp 0x140053201
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rdi
call fcn.14001a9f0
nop
lea rcx, [rsp + 0x58]
call fcn.14001d440
inc ebp
test r14d, r14d
je 0x140053100
mov al, 1
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140053250
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x9fa0]
mov eax, 0xa0a0
call fcn.1402837f0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x9f90], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rcx], r14d
mov rcx, r8
call fcn.14001f110
cmp byte [rsi + 8], r14b
je 0x14005344d
mov dword [rsp + 0x34], 7
xor edx, edx
mov r8d, 0xa000
lea rcx, [rbp - 0x70]
call fcn.140285450
mov dword [rsp + 0x30], 0xa000
mov rcx, rbx
call fcn.14002aa20
mov rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov dword [rsi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
test ebx, ebx
jne 0x14005344d
mov ebx, r14d
test dword [rsp + 0x30], 0xfffffffe
jbe 0x140053449
nop
mov eax, ebx
lea rdx, [rbp - 0x70]
lea rdx, [rdx + rax*2]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r14w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140053345
lea rcx, [rsp + 0x40]
call fcn.14001ecc0
nop
cmp qword [rsp + 0x50], 0
jne 0x1400533ad
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140053439
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053434
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053472
jmp 0x140053434
add ebx, dword [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14001c1a0
nop
mov rax, qword [rdi + 8]
cmp qword [rdi + 0x10], rax
je 0x1400533df
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001c050
add qword [rdi + 8], 0x28
jmp 0x1400533f0
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, rdi
call fcn.14001a9f0
nop
lea rcx, [rsp + 0x60]
call fcn.14001d440
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140053439
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053434
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005346c
call fcn.140283144
inc ebx
mov eax, dword [rsp + 0x30]
shr eax, 1
cmp ebx, eax
jb 0x140053320
mov al, 1
jmp 0x14005344f
xor al, al
mov rcx, qword [rbp + 0x9f90]
xor rcx, rsp
call fcn.140283120
add rsp, 0xa0a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140287d84
int3
call fcn.140287d84
int3
Function at 0x140053480
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x880
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov dword [rcx], 0
cmp byte [rcx + 8], 0
je 0x140053574
mov dword [rsp + 0x34], 1
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.140285450
mov dword [rsp + 0x30], 0x800
mov rcx, rbx
call fcn.14002aa20
mov rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
lea rcx, [rsp + 0x40]
test ebx, ebx
jne 0x14005354f
lea rdx, [rsp + 0x70]
call fcn.14001c950
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001d690
nop
lea rcx, [rsp + 0x40]
call fcn.14001d440
mov al, 1
jmp 0x140053576
lea rdx, [0x1402d078c]
call fcn.14001c950
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001d690
nop
lea rcx, [rsp + 0x40]
call fcn.14001d440
xor al, al
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140283120
add rsp, 0x880
pop rdi
pop rsi
pop rbx
ret

Function at 0x140053770
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
cmp byte [rcx + 8], 0
mov rdi, rcx
mov dword [rcx], 0
je 0x1400537dc
mov rcx, rdx
mov qword [rsp + 0x40], rbx
call fcn.14002aa20
mov rcx, qword [rdi + 0x10]
mov rdx, rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
mov rbx, qword [rsp + 0x40]
mov dword [rdi], eax
jne 0x1400537dc
mov al, 1
add rsp, 0x30
pop rdi
ret
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x1400537f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
push r13
push r15
sub rsp, 0x38
xor edi, edi
mov rbx, r8
mov r13, rdx
mov r15, rcx
mov dword [rcx], edi
cmp byte [rcx + 8], dil
je 0x140053a0a
mov r9, qword [r8]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x68], rbp
sub r8, r9
mov qword [rsp + 0x70], rsi
mov ebp, edi
mov qword [rsp + 0x78], r12
movabs r12, 0x6666666666666667
mov rax, r12
mov qword [rsp + 0x30], r14
imul r8
mov r14d, edi
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400538b2
mov r8d, edi
nop dword [rax]
lea rax, [r8 + r8*4]
lea rsi, [rax*8]
lea rcx, [rsi + r9]
call fcn.14001f680
test al, al
jne 0x14005388a
mov rcx, qword [rbx]
add rcx, rsi
call fcn.140026e10
inc r14d
add r14d, eax
mov r9, qword [rbx]
inc ebp
mov rcx, qword [rbx + 8]
mov rax, r12
sub rcx, r9
movsxd r8, ebp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jb 0x140053860
lea eax, [r14 + 2]
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140283754
add r14d, r14d
xor edx, edx
mov r12, rax
lea ecx, [r14 + 4]
movsxd r8, ecx
mov rcx, rax
call fcn.140285450
mov r9, qword [rbx]
movabs rax, 0x6666666666666667
mov rcx, qword [rbx + 8]
mov rbp, r12
sub rcx, r9
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400539a3
mov r8, rdi
movabs r15, 0x6666666666666667
nop word [rax + rax]
lea rax, [r8 + r8*4]
lea rsi, [rax*8]
lea rcx, [rsi + r9]
call fcn.14001f680
test al, al
jne 0x140053976
mov rcx, qword [rbx]
add rcx, rsi
call fcn.14002aa20
mov rdx, rax
mov rcx, rbp
call fcn.14001f0d0
mov rcx, qword [rbx]
add rcx, rsi
call fcn.140026e10
movsxd rcx, eax
lea rbp, [rbp + rcx*2]
add rbp, 2
mov r9, qword [rbx]
inc edi
mov rcx, qword [rbx + 8]
mov rax, r15
sub rcx, r9
movsxd r8, edi
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r8, rdx
jb 0x140053930
mov r15, qword [rsp + 0x60]
mov rcx, r13
lea ebx, [r14 + 2]
call fcn.14002aa20
mov rcx, qword [r15 + 0x10]
mov rdx, rax
mov r9d, 7
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [r15 + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r12
mov dword [r15], eax
call fcn.140283144
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
test ebx, ebx
jne 0x140053a0a
mov al, 1
add rsp, 0x38
pop r15
pop r13
pop rdi
pop rbx
ret
xor al, al
add rsp, 0x38
pop r15
pop r13
pop rdi
pop rbx
ret
Function at 0x140053a20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
cmp byte [rcx + 8], 0
mov rbx, r8
mov rbp, rdx
mov dword [rcx], 0
mov rsi, rcx
je 0x140053aae
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call fcn.14001f100
mov rcx, rbx
lea edi, [rax + 2]
call fcn.14002aa20
mov rcx, rbp
mov rbx, rax
call fcn.14002aa20
mov rcx, qword [rsi + 0x10]
mov rdx, rax
mov r9d, 1
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov dword [rsi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x40]
mov dword [rsi], eax
test ebx, ebx
jne 0x140053aae
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x140053df0
Capabilities:
Get user security identifier

Disassembly:
push rdi
sub rsp, 0x3f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x410], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x40], 0
call fcn.14001cac0
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x48], 0x12c
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x1d0]
call fcn.140285450
mov dword [rsp + 0x44], 0x104
mov rcx, rbx
call fcn.14002aa20
mov rdx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140053efd
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x140053efd
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140053efd
lea rcx, [rsp + 0x70]
call fcn.14001c950
nop
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14001d690
nop
lea rcx, [rsp + 0x70]
call fcn.14001d440
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rdi
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x410]
add rsp, 0x3f0
pop rdi
ret

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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rcx + 0x10], sil
mov qword [rcx], rsi
mov dword [rcx + 8], 0xffffffff
mov byte [rcx + 0xc], sil
mov eax, dword [0x1403a9c60]
cmp eax, 0x75bcd0d
je 0x140057ff1
mov eax, dword [0x1403a9c60]
cmp eax, 0x75bcd0e
je 0x140057ff1
lea rdx, str.LVHMutexExLogMark
lea rcx, [r11 - 0x60]
call fcn.14001c950
nop
mov ecx, 0x20a
call fcn.140283754
mov rbx, rax
mov word [rax], si
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001c950
mov rcx, rbx
call fcn.140283144
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.14001da00
nop
lea rcx, [rsp + 0x30]
call fcn.14001d440
nop
lea rcx, [rsp + 0x58]
call fcn.14001d440
lea rcx, [rsp + 0x80]
call fcn.14002aa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete sil
add esi, 0x75bcd0d
mov dword [0x1403a9c60], esi
lea rcx, [rsp + 0x80]
call fcn.14001d440
nop
mov rax, rdi
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400590c0
Capabilities:
Check os version

Disassembly:
mov dword [rcx + 8], r8d
jmp fcn.140058de0

Function at 0x140059c10
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp qword [0x1403b1c80], 0
mov rdi, rdx
mov rbx, rcx
mov esi, 1
jne 0x140059cce
cmp byte [0x1403b1c88], 0
jne 0x140059cb9
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.140285450
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140059c96
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140059cb2
cmp dword [rsp + 0x24], 6
jb 0x140059cb2
movzx eax, byte [0x1403b1c89]
cmp dword [rsp + 0x28], 2
cmovae eax, esi
mov byte [0x1403b1c89], al
mov byte [0x1403b1c88], sil
cmp byte [0x1403b1c89], 0
je 0x140059cce
lea rcx, [0x1403b1c80]
call fcn.1400584e0
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov r8, qword [0x1403b1c80]
xor r9d, r9d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [rdi], reloc.ODBC32.dll_SQLAllocHandle
mov dword [rdi + 0x10], 0
mov qword [rdi + 8], rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret