joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f96d0
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040c190
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x004f97a8]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x4f977c
xor rdi, rdi
test rsi, rsi
je 0x4f973a
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040c190
mov rbx, rax
mov rcx, rsi
call fcn.0040c190
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x4f979d
mov rcx, qword [0x004f6720]
mov dl, 1
mov r8, qword [0x005611d8]
call fcn.00430550
mov rcx, rax
call fcn.00409cc0
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4f97b0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040c190
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x5073d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0x90], rcx
mov byte [rbp + 0x98], dl
nop
mov dword [rbp + 0x7c], 0
nop
cmp byte [rbp + 0x98], 0
je 0x507437
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x90]
call fcn.00425830
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x40]
mov r8w, 0xfde9
call fcn.0040bcc0
jmp 0x50744c
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x90]
mov r8w, 0xfde9
call fcn.0040bcc0
mov dword [rbp + 0x64], 1
mov dword [rbp + 0x6c], 0
mov dword [rbp + 0x5c], 0
cmp qword [rbp + 0x70], 0
je 0x507472
mov rax, qword [rbp + 0x70]
mov eax, dword [rax - 4]
mov dword [rbp + 0x5c], eax
mov eax, 1
mov ecx, dword [rbp + 0x5c]
mov dword [rbp + 0x68], eax
cmp dword [rbp + 0x68], ecx
jg 0x5074ba
add ecx, 1
mov eax, dword [rbp + 0x68]
mov dword [rbp + 0x6c], eax
imul eax, dword [rbp + 0x64], 0x5517e877
mov dword [rbp + 0x64], eax
lea rax, [0x0055b2a4]
mov rdx, qword [rbp + 0x70]
movsxd r8, dword [rbp + 0x68]
movzx rdx, byte [rdx + r8 - 1]
mov eax, dword [rax + rdx*4]
xor dword [rbp + 0x64], eax
add dword [rbp + 0x68], 1
cmp dword [rbp + 0x68], ecx
jne 0x507486
nop
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x7c], eax
jmp 0x507507
nop
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.0040ac50
lea rcx, [rbp + 0x70]
call fcn.0040abc0
mov eax, dword [rbp + 0x7c]
lea rsp, [rbp + 0x80]
pop rbp
ret
Function at 0x509800
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x78
mov rbp, rsp
mov qword [rbp + 0x58], rcx
mov dword [rbp + 0x50], r9d
mov qword [rbp + 0x98], rdx
mov qword [rbp + 0xa0], r8
mov rcx, qword [rbp + 0x98]
call fcn.0040ad00
mov rcx, qword [rbp + 0xa0]
call fcn.0040ad00
nop
xor rax, rax
mov byte [rbp + 0x57], al
xor rbx, rbx
mov rax, qword [0x00561030]
cmp byte [rax], 0
je 0x509877
call fcn.00410a90
cmp byte [rax + 0x1a9], 0
je 0x509863
mov ebx, pe_nt_image_headers64
jmp 0x509877
call fcn.00410a90
cmp byte [rax + 0x1a8], 0
je 0x509877
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0x98]
call fcn.0040c190
mov rcx, qword [rbp + 0x58]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
or ebx, 0x20006
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
mov ecx, ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x509962
cmp qword [rbp + 0xa0], 0
jne 0x509913
mov rcx, qword [rbp + 0x60]
xor rdx, rdx
xor r8, r8
mov r9d, dword [rbp + 0x50]
mov rax, qword [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov eax, dword [rbp + 0xb8]
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete al
mov byte [rbp + 0x57], al
jmp 0x509952
mov rcx, qword [rbp + 0xa0]
call fcn.0040c190
mov rcx, qword [rbp + 0x60]
mov rdx, rax
xor r8, r8
mov r9d, dword [rbp + 0x50]
mov rax, qword [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov eax, dword [rbp + 0xb8]
mov dword [rsp + 0x28], eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete al
mov byte [rbp + 0x57], al
mov ecx, ebx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rbp + 0x60]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x98]
mov edx, 2
call fcn.0040ac50
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x78]
pop rbx
pop rbp
ret
Function at 0x5099c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x34], r9d
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040ad00
mov rcx, qword [rbp + 0x90]
call fcn.0040ad00
nop
xor rax, rax
mov byte [rbp + 0x33], al
mov rax, qword [rbp + 0xa0]
mov qword [rax], 0
mov rax, qword [rbp + 0xa8]
mov dword [rax], 0
xor rbx, rbx
mov rax, qword [0x00561030]
cmp byte [rax], 0
je 0x509a53
call fcn.00410a90
cmp byte [rax + 0x1a9], 0
je 0x509a3f
mov ebx, pe_nt_image_headers64
jmp 0x509a53
call fcn.00410a90
cmp byte [rax + 0x1a8], 0
je 0x509a53
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0x88]
call fcn.0040c190
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
mov r9d, ebx
or r9d, 0x20019
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x509b41
cmp qword [rbp + 0x90], 0
jne 0x509a99
xor rsi, rsi
jmp 0x509aa8
mov rcx, qword [rbp + 0x90]
call fcn.0040c190
mov rsi, rax
mov rcx, qword [rbp + 0x50]
mov rdx, rsi
xor r8, r8
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x509b38
mov ecx, dword [rbp + 0x4c]
call fcn.00405ff0
mov rbx, rax
mov rcx, qword [rbp + 0x50]
mov rdx, rsi
xor r8, r8
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x4c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x509b30
mov eax, dword [rbp + 0x34]
cmp eax, dword [rbp + 0x5c]
jne 0x509b26
mov rax, qword [rbp + 0xa0]
mov qword [rax], rbx
mov rax, qword [rbp + 0xa8]
mov ecx, dword [rbp + 0x4c]
mov dword [rax], ecx
mov al, 1
mov byte [rbp + 0x33], al
jmp 0x509b38
mov rcx, rbx
call fcn.00406020
jmp 0x509b38
mov rcx, rbx
call fcn.00406020
mov rcx, qword [rbp + 0x50]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040ac50
movzx rax, byte [rbp + 0x33]
lea rsp, [rbp + 0x60]
pop rbx
pop rsi
pop rbp
ret

Function at 0x509e80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
xor rax, rax
mov byte [rbp + 0x3f], al
xor r13, r13
mov rax, qword [0x00561030]
cmp byte [rax], 0
je 0x509ed7
call fcn.00410a90
cmp byte [rax + 0x1a9], 0
je 0x509ec2
mov r13d, pe_nt_image_headers64
jmp 0x509ed7
call fcn.00410a90
cmp byte [rax + 0x1a8], 0
je 0x509ed7
mov r13d, 0x200
nop
mov rcx, rsi
call fcn.0040c190
mov rcx, rbx
mov rdx, rax
xor r8, r8
mov r9d, r13d
or r9d, 0x20019
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x509f42
mov rcx, rdi
call fcn.0040c190
mov rcx, qword [rbp + 0x48]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete al
mov byte [rbp + 0x3f], al
mov rcx, qword [rbp + 0x48]
call sub.advapi32.dll_RegCloseKey_1
movzx rax, byte [rbp + 0x3f]
lea rsp, [rbp + 0x50]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x50a0e0
Capabilities:
Delete registry key

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov rax, qword [0x00561030]
cmp byte [rax], 0
jne 0x50a11d
mov rcx, qword [rbp + 0x58]
call fcn.0040c190
mov rcx, qword [rbp + 0x50]
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov dword [rbp + 0x3c], eax
jmp 0x50a19f
nop
mov dword [rbp + 0x38], 0
mov rax, qword [0x00561030]
cmp byte [rax], 0
je 0x50a15d
call fcn.00410a90
cmp byte [rax + 0x1a9], 0
je 0x50a148
mov dword [rbp + 0x38], pe_nt_image_headers64
jmp 0x50a15d
call fcn.00410a90
cmp byte [rax + 0x1a8], 0
je 0x50a15d
mov dword [rbp + 0x38], 0x200
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040c190
mov rcx, qword [rbp + 0x50]
mov rdx, rax
mov r8d, dword [rbp + 0x38]
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov dword [rbp + 0x3c], eax
jmp 0x50a19f
mov eax, dword [rbp + 0x3c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x50a320
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
sub rsp, 0xb0
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
mov byte [rbp + 0xd0], r8b
nop
mov byte [rbp + 0x9f], 0
lea rcx, [0x0050a6d4]
mov rdx, qword [rbp + 0xc8]
mov r8d, 1
call fcn.0040ca90
test eax, eax
je 0x50a5de
cmp byte [rbp + 0xd0], 0
je 0x50a5c4
nop
mov dword [rbp + 0x7c], 0
mov rax, qword [0x00561030]
cmp byte [rax], 0
je 0x50a3d9
call fcn.00410a90
cmp byte [rax + 0x1a9], 0
je 0x50a3c4
mov dword [rbp + 0x7c], pe_nt_image_headers64
jmp 0x50a3d9
call fcn.00410a90
cmp byte [rax + 0x1a8], 0
je 0x50a3d9
mov dword [rbp + 0x7c], 0x200
nop
mov rcx, qword [rbp + 0xc8]
call fcn.0040c190
mov rcx, qword [rbp + 0xc0]
mov rdx, rax
xor r8, r8
mov r9d, dword [rbp + 0x7c]
or r9d, 0x2000f
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
mov dword [rbp + 0x98], eax
nop
cmp dword [rbp + 0x98], 0
jne 0x50a59e
mov dword [rbp + 0x90], 0
mov rcx, qword [rbp + 0xa0]
xor rdx, rdx
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x50a59e
mov eax, dword [rbp + 0x90]
sub eax, 1
mov dword [rbp + 0x8c], eax
cmp dword [rbp + 0x8c], 0
jl 0x50a59d
mov eax, dword [0x0055bd78]
mov dword [rbp + 0x94], eax
lea rcx, [rbp + 0xa8]
mov edx, dword [rbp + 0x94]
call fcn.0040c420
lea rcx, [rbp + 0xa8]
call fcn.0040b440
mov rcx, qword [rbp + 0xa0]
mov edx, dword [rbp + 0x8c]
mov r8, rax
lea r9, [rbp + 0x94]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x50a589
lea rcx, [rbp + 0xa8]
mov edx, dword [rbp + 0x94]
call fcn.0040c420
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0xc8]
call fcn.00431d00
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0xa8]
call fcn.0040c5f0
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x80]
movzx r8, byte [rbp + 0xd0]
call fcn.0050a320
test al, al
jne 0x50a589
mov rcx, qword [rbp + 0x68]
lea rdx, [0x0050a5de]
call fcn.00409e70
jmp 0x50a5de
sub dword [rbp + 0x8c], 1
cmp dword [rbp + 0x8c], 0xffffffff
jne 0x50a4b1
nop
nop
lea rcx, [rbp + 0xa8]
xor rdx, rdx
call fcn.0040c420
mov rcx, qword [rbp + 0xa0]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x50a5c4
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.0050a1c0
mov byte [rbp + 0x9f], al
nop
lea rcx, [rbp + 0x60]
call fcn.0040ab70
lea rcx, [rbp + 0x80]
call fcn.0040ab70
lea rcx, [rbp + 0xa8]
call fcn.0040ab70
movzx rax, byte [rbp + 0x9f]
lea rsp, [rbp + 0xb0]
pop rbp
ret
Function at 0x50a6e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x48], r8
mov byte [rbp + 0x57], r9b
mov qword [rbp + 0x78], 0
mov qword [rbp + 0xb8], rdx
mov rcx, qword [rbp + 0xb8]
call fcn.0040ad00
mov rcx, qword [rbp + 0xd0]
call fcn.0040ad00
nop
xor rax, rax
mov byte [rbp + 0x47], al
mov rcx, qword [rbp + 0x48]
call fcn.0040ab70
xor rbx, rbx
mov rax, qword [0x00561030]
cmp byte [rax], 0
je 0x50a76a
call fcn.00410a90
cmp byte [rax + 0x1a9], 0
je 0x50a756
mov ebx, pe_nt_image_headers64
jmp 0x50a76a
call fcn.00410a90
cmp byte [rax + 0x1a8], 0
je 0x50a76a
mov ebx, 0x200
nop
mov rcx, qword [rbp + 0xb8]
call fcn.0040c190
mov rcx, qword [rbp + 0x58]
mov rdx, rax
xor r8, r8
mov r9d, ebx
or r9d, 0x20019
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x50a8c7
mov al, 1
mov byte [rbp + 0x47], al
mov dword [rbp + 0x6c], 0x800
mov ecx, dword [rbp + 0x6c]
call fcn.00405ff0
mov rdi, rax
xor rbx, rbx
mov dword [rbp + 0x6c], 0x800
movzx rax, byte [rbp + 0x57]
test al, al
je 0x50a805
mov rcx, qword [rbp + 0x70]
mov edx, ebx
mov r8, rdi
lea r9, [rbp + 0x6c]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumKeyExW
mov esi, eax
jmp 0x50a83d
mov rcx, qword [rbp + 0x70]
mov edx, ebx
mov r8, rdi
lea r9, [rbp + 0x6c]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.advapi32.dll_RegEnumValueW
mov esi, eax
test esi, esi
jne 0x50a8ad
cmp dword [rbp + 0x6c], 0
jbe 0x50a8aa
cmp qword [rbp + 0xd8], 0
je 0x50a85b
mov rax, qword [rbp + 0xd8]
add dword [rax], 1
lea rcx, [rbp + 0x78]
mov rdx, rdi
mov r8d, dword [rbp + 0x6c]
call fcn.0040ae30
mov rax, qword [rbp + 0x48]
cmp qword [rax], 0
jne 0x50a884
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x78]
call fcn.0040b1a0
jmp 0x50a8aa
mov rcx, qword [rbp + 0x48]
mov edx, 3
mov rax, qword [rbp + 0x48]
mov r8, qword [rax]
mov r9, qword [rbp + 0xd0]
mov rax, qword [rbp + 0x78]
mov qword [rsp + 0x20], rax
call fcn.0040c710
add ebx, 1
test esi, esi
je 0x50a7bb
nop
mov rcx, rdi
call fcn.00406020
mov rcx, qword [rbp + 0x70]
call sub.advapi32.dll_RegCloseKey_1
nop
lea rcx, [rbp + 0x78]
call fcn.0040ab70
lea rcx, [rbp + 0xb8]
call fcn.0040ab70
lea rcx, [rbp + 0xd0]
call fcn.0040ab70
movzx rax, byte [rbp + 0x47]
lea rsp, [rbp + 0x88]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x50b470
Capabilities:
Check os version

Disassembly:
push rbp
sub rsp, 0x150
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov byte [rbp + 0x14f], 7
nop
mov dword [rbp + 0x30], 0x11c
lea rcx, [rbp + 0x30]
call sub.kernel32.dll_GetVersionExW
cmp dword [rbp + 0x40], 2
jne 0x50b53c
mov byte [rbp + 0x14f], 5
cmp dword [rbp + 0x34], 6
jb 0x50b50e
mov byte [rbp + 0x14f], 0xa
cmp byte [rbp + 0x14a], 1
jne 0x50b4e6
cmp dword [rbp + 0x38], 2
jb 0x50b4d0
mov byte [rbp + 0x14f], 0xe
jmp 0x50b582
cmp dword [rbp + 0x38], 1
jb 0x50b582
mov byte [rbp + 0x14f], 0xd
jmp 0x50b582
mov byte [rbp + 0x14f], 0xb
cmp dword [rbp + 0x38], 2
jb 0x50b4ff
mov byte [rbp + 0x14f], 0xf
jmp 0x50b582
cmp dword [rbp + 0x38], 1
jb 0x50b582
mov byte [rbp + 0x14f], 0xc
jmp 0x50b582
cmp dword [rbp + 0x34], 5
jb 0x50b582
mov byte [rbp + 0x14f], 6
cmp dword [rbp + 0x38], 1
jb 0x50b582
cmp byte [rbp + 0x14a], 1
jne 0x50b533
mov byte [rbp + 0x14f], 7
jmp 0x50b582
mov byte [rbp + 0x14f], 9
jmp 0x50b582
cmp dword [rbp + 0x40], 1
jne 0x50b571
mov byte [rbp + 0x14f], 1
cmp dword [rbp + 0x34], 4
jne 0x50b55c
cmp dword [rbp + 0x38], 0xa
jne 0x50b55c
mov byte [rbp + 0x14f], 2
cmp dword [rbp + 0x34], 4
jne 0x50b582
cmp dword [rbp + 0x38], 0x5a
jne 0x50b582
mov byte [rbp + 0x14f], 3
jmp 0x50b582
mov byte [rbp + 0x14f], 1
jmp 0x50b582
movzx rax, byte [rbp + 0x14f]
lea rsp, [rbp + 0x150]
pop rbp
ret
Function at 0x50caf0
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xa0], rcx
nop
nop
call fcn.0050b5b0
cmp al, 0xa
jb 0x50cc09
lea rcx, [rbp + 0x88]
mov edx, 0x104
call fcn.0040c420
nop
mov rcx, qword [rbp + 0x88]
call fcn.0040c190
xor rcx, rcx
mov edx, 0x1a
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], rax
call sub.SHFolder.dll_SHGetFolderPathW
test eax, eax
jne 0x50cbf9
mov rcx, qword [rbp + 0x88]
call fcn.0040c190
mov rcx, qword [rbp + 0xa0]
mov rdx, rax
call fcn.004287f0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x7c], 0
cmp qword [rbp + 0x80], 0
je 0x50cbbb
mov rax, qword [rbp + 0x80]
mov eax, dword [rax - 4]
mov dword [rbp + 0x7c], eax
cmp dword [rbp + 0x7c], 0
jle 0x50cbe4
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax]
call fcn.00431d00
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x40]
call fcn.0040b1a0
mov rcx, qword [rbp + 0x48]
lea rdx, [0x0050ccde]
call fcn.00409e70
jmp 0x50ccde
nop
lea rcx, [rbp + 0x88]
xor rdx, rdx
call fcn.0040c420
mov rax, qword [0x005612e0]
mov rcx, qword [rax]
lea rdx, [0x0050cda0]
lea r8, [0x0050ce30]
mov r9, qword [rbp + 0xa0]
call fcn.00509ce0
test al, al
je 0x50ccdd
lea rcx, [rbp + 0x38]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax]
call fcn.0050ca90
mov rcx, qword [rbp + 0xa0]
mov rdx, qword [rbp + 0x38]
call fcn.0040b1a0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x6c], 0
cmp qword [rbp + 0x70], 0
je 0x50cc7e
mov rax, qword [rbp + 0x70]
mov eax, dword [rax - 4]
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x6c], 0
jle 0x50ccdd
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x5c], 0
cmp qword [rbp + 0x60], 0
je 0x50ccaa
mov rax, qword [rbp + 0x60]
mov eax, dword [rax - 4]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
movsxd rcx, dword [rbp + 0x5c]
cmp word [rax + rcx*2 - 2], 0x5c
je 0x50ccdd
mov rcx, qword [rbp + 0xa0]
lea rdx, [0x0050ce4c]
call fcn.0040c500
jmp 0x50ccdd
nop
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.0040ac50
lea rcx, [rbp + 0x88]
call fcn.0040ab70
mov rax, qword [rbp + 0xa0]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x50d5f0
Capabilities:
Create directory

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0x26], dl
mov byte [rbp + 0x27], r8b
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
nop
mov al, 1
mov byte [rbp + 0x25], al
mov qword [rbp + 0x58], 0
movzx rax, byte [rbp + 0x26]
test al, al
je 0x50d653
call fcn.0050c4f0
mov qword [rbp + 0x58], rax
xor rax, rax
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x50d666
mov rax, qword [rbp + 0x28]
mov eax, dword [rax - 4]
test eax, eax
jne 0x50d675
xor rax, rax
mov byte [rbp + 0x25], al
jmp 0x50d7cb
movzx rax, byte [rbp + 0x27]
test al, al
je 0x50d7ad
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x28]
call fcn.0040b220
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x50]
call fcn.00431d60
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x48]
call fcn.0040b220
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.00427dd0
xor rax, rax
cmp qword [rbp + 0x60], 0
je 0x50d6c7
mov rax, qword [rbp + 0x60]
mov eax, dword [rax - 4]
cmp eax, 2
jne 0x50d6fe
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x60]
mov r8d, 2
mov r9d, 1
call fcn.0040c800
mov rcx, qword [rbp + 0x38]
lea rdx, [0x0050d880]
call fcn.0040c7f0
test eax, eax
sete al
jmp 0x50d701
xor rax, rax
test al, al
je 0x50d709
mov al, 1
jmp 0x50d714
mov rcx, qword [rbp + 0x60]
mov dl, 1
call fcn.004274d0
test al, al
je 0x50d71c
mov al, 1
jmp 0x50d72e
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.0040c7f0
test eax, eax
sete al
test al, al
jne 0x50d7cb
cmp qword [rbp + 0x68], 0
jne 0x50d75c
mov rcx, qword [rbp + 0x60]
call fcn.0040c190
mov rcx, rax
mov rdx, qword [rbp + 0x58]
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
mov byte [rbp + 0x25], al
jmp 0x50d7ca
mov rcx, qword [rbp + 0x68]
call fcn.0040c190
lea rcx, [rbp + 0x30]
mov rdx, rax
call fcn.0040c230
mov rcx, qword [rbp + 0x30]
movzx rdx, byte [rbp + 0x26]
movzx r8, byte [rbp + 0x27]
call fcn.0050d5f0
test al, al
je 0x50d7a1
mov rcx, qword [rbp + 0x60]
call fcn.0040c190
mov rcx, rax
mov rdx, qword [rbp + 0x58]
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x50d7a6
xor rax, rax
jmp 0x50d7a8
mov al, 1
mov byte [rbp + 0x25], al
jmp 0x50d7ca
mov rcx, qword [rbp + 0x28]
call fcn.0040c190
mov rcx, rax
lea rdx, [rbp + 0x58]
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
mov byte [rbp + 0x25], al
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040ac50
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.0040ac50
lea rcx, [rbp + 0x60]
mov edx, 2
call fcn.0040ac50
movzx rax, byte [rbp + 0x25]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x50dec0
Capabilities:
Move file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rsi, rsi
call fcn.0050b5e0
test al, al
je 0x50df08
mov rcx, rbx
mov dl, 1
call fcn.004274d0
test al, al
jne 0x50dee8
mov sil, 1
jmp 0x50df08
mov rcx, rbx
call fcn.0040c190
mov rcx, rax
xor rdx, rdx
mov r8d, 5
call sub.kernel32.dll_MoveFileExW
test eax, eax
setne sil
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x50e180
Capabilities:
Set file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rsi, rsi
mov rcx, rbx
call fcn.0050e260
test al, al
je 0x50e1d1
mov rcx, rbx
call fcn.00427b50
mov esi, eax
test sil, sil
jne 0x50e1d1
mov rcx, rbx
call fcn.0050e070
mov rcx, rbx
call fcn.0040c190
mov rcx, rax
mov edx, 0x80
call sub.kernel32.dll_SetFileAttributesW
mov rcx, rbx
call fcn.00427b50
mov esi, eax
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x50e1e0
Capabilities:
Set file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.0050e260
test al, al
je 0x50e253
mov rcx, rbx
call fcn.00427b50
mov edi, eax
test dil, dil
jne 0x50e253
mov rcx, rbx
call fcn.0050e070
mov rcx, rbx
call fcn.0040c190
mov rcx, rax
mov edx, 0x80
call sub.kernel32.dll_SetFileAttributesW
mov rcx, rbx
call fcn.00427b50
mov edi, eax
test dil, dil
jne 0x50e253
test sil, sil
je 0x50e253
call fcn.0050b5e0
test al, al
je 0x50e253
mov rcx, rbx
call fcn.0050e290
mov edi, eax
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
call fcn.0040c190
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x50e27e
test eax, 0x10
je 0x50e283
xor rax, rax
jmp 0x50e285
mov al, 1
add rsp, 0x28
ret

Function at 0x50e290
Capabilities:
Move file

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor rsi, rsi
call fcn.0050b5e0
test al, al
je 0x50e2d6
mov rcx, rbx
call fcn.0050e260
test al, al
jne 0x50e2b6
mov sil, 1
jmp 0x50e2d6
mov rcx, rbx
call fcn.0040c190
mov rcx, rax
xor rdx, rdx
mov r8d, 5
call sub.kernel32.dll_MoveFileExW
test eax, eax
setne sil
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x50ecf0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x40], rcx
mov rax, qword [rbp + 0x40]
mov byte [rax + 0x10], 0
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 8]
call fcn.0040c190
mov rcx, rax
mov rax, qword [rbp + 0x40]
lea rdx, [rax + 0x20]
call sub.version.dll_GetFileVersionInfoSizeW
mov rcx, qword [rbp + 0x40]
mov dword [rcx + 0x14], eax
mov rax, qword [rbp + 0x40]
cmp dword [rax + 0x14], 0
jbe 0x50edac
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax + 0x14]
call fcn.00405ff0
mov rcx, qword [rbp + 0x40]
mov qword [rcx + 0x18], rax
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 0x18]
mov rax, qword [rbp + 0x40]
mov edx, dword [rax + 0x14]
xor r8, r8
call fcn.004075b0
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 8]
call fcn.0040c190
mov rcx, rax
mov rax, qword [rbp + 0x40]
mov edx, dword [rax + 0x20]
mov rax, qword [rbp + 0x40]
mov r8d, dword [rax + 0x14]
mov rax, qword [rbp + 0x40]
mov r9, qword [rax + 0x18]
call sub.version.dll_GetFileVersionInfoW
mov rcx, qword [rbp + 0x40]
test eax, eax
setne al
mov byte [rcx + 0x10], al
jmp 0x50edac
lea rsp, [rbp + 0x30]
pop rbp
ret