joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00436030
mov ebx, eax
mov rax, qword [0x005b6d70]
cmp byte [rax], 0
je 0x4363c8
mov rcx, qword [0x005b69a0]
call fcn.0040a570
call fcn.00408f80
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436250]
mov r8d, 1
movsxd r9, esi
call fcn.004114e0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00436468]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43640e
mov rcx, qword [0x005bbf40]
call fcn.00411ca0
mov rcx, rax
mov rax, qword [0x005b6918]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436250]
call fcn.004116c0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x4380d0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040ea60
lea rcx, [rbp + 0x58]
call fcn.0040eca0
mov rcx, qword [rbp + 0x58]
call fcn.0040f9d0
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x4381e0
mov ecx, dword [rbp + 0x54]
call fcn.00408c40
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040f9d0
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4381d6
mov rcx, qword [rbp + 0x68]
lea rdx, [0x00438254]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4381d6
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.00408c70
nop
lea rcx, [rbp + 0x58]
call fcn.0040e3b0
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x439030
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040eb80
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00414160
mov esi, eax
cmp esi, 0x104
jbe 0x43908d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00408c40
mov rdi, rax
jmp 0x439091
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00414160
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x4390e4
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x4390c8
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4390f6
mov rcx, rdi
call fcn.00408c70
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x4bf1a0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor rdx, rdx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4bf1a8
nop
ret

Function at 0x50e4f0
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x19], 0
jne 0x50e523
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x50e581
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x50e581
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x68], 0
jne 0x50e581
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x50e5ab
lea rcx, [rbp + 0x38]
mov rdx, qword [0x005b6cc0]
call fcn.00414090
mov rcx, qword [0x004d4200]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00436490
mov rcx, rax
call fcn.0040d620
jmp 0x50e5ab
lea rcx, [rbp + 0x30]
mov rdx, qword [0x005b6cc0]
call fcn.00414090
mov rcx, qword [0x004d4200]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00436490
mov rcx, rax
call fcn.0040d620
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e490
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x50f420
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
sbb ecx, dword [rax + 0x48903f45]
mov eax, dword [rbp + 0x50]

Function at 0x50f4a0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0050e330
cmp esi, 1
jne 0x50f4ca
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x54f5c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xc8]
call fcn.0040ea60
mov rcx, qword [rbp + 0x78]
call fcn.0054ea50
mov byte [rbp + 0x83], al
cmp byte [rbp + 0x83], 0
jne 0x54f635
lea rcx, [rbp + 0x78]
mov edx, 1
mov r8d, 1
call fcn.00410070
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 8]
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.00550850
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x54f789
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x90]
call fcn.0054ef90
mov rcx, qword [rbp + 0xc0]
lea rdx, [rbp + 0x54]
call fcn.0054f940
test al, al
je 0x54f769
lea rcx, [rbp + 0x70]
xor rdx, rdx
mov r8d, dword [rbp + 0x58]
add r8d, 1
call fcn.0040e670
mov eax, dword [rbp + 0x54]
sub eax, 1
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jl 0x54f768
mov eax, dword [rbp + 0x58]
add eax, 1
mov dword [rbp + 0x88], eax
mov rcx, qword [rbp + 0x70]
call fcn.0040f9d0
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x84]
mov r8, rax
lea r9, [rbp + 0x88]
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 rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.0054eeb0
test al, al
je 0x54f754
mov rcx, qword [rbp + 0x70]
call fcn.0040f9d0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040fa70
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x40]
call fcn.0054f5c0
sub dword [rbp + 0x84], 1
cmp dword [rbp + 0x84], 0xffffffff
jne 0x54f6c8
nop
nop
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0x98]
call fcn.0054ef90
mov rcx, qword [rbp + 0x90]
call sub.advapi32.dll_RegCloseKey_1
cmp byte [0x005c0ebc], 0
je 0x54f7e8
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.0054ef70
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040f9d0
mov rcx, rbx
mov rdx, rax
mov rax, qword [rbp + 0xc0]
mov r8d, dword [rax + 0x2c]
and r8d, 0x300
xor r9, r9
call sub.advapi32.dll_RegDeleteKeyExW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.0054eeb0
mov byte [rbp + 0x8f], al
jmp 0x54f827
mov rcx, qword [rbp + 0xc0]
movzx rdx, byte [rbp + 0x83]
call fcn.0054ef70
mov rbx, rax
mov rcx, qword [rbp + 0x78]
call fcn.0040f9d0
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
mov rcx, qword [rbp + 0xc0]
mov edx, eax
call fcn.0054eeb0
mov byte [rbp + 0x8f], al
nop
lea rcx, [rbp + 0x40]
call fcn.0040e3b0
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.0040e490
movzx rax, byte [rbp + 0x8f]
lea rsp, [rbp + 0xa8]
pop rbx
pop rbp
ret

Function at 0x54f910
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
call fcn.0040f9d0
mov rcx, qword [rbx + 8]
mov rdx, rax
call sub.advapi32.dll_RegDeleteValueW
mov rcx, rbx
mov edx, eax
call fcn.0054eeb0
add rsp, 0x20
pop rbx
ret
Function at 0x54f9f0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
nop
mov rax, qword [rbp + 0x50]
mov rcx, rax
mov rbx, qword [rax]
call qword [rbx + 0x90]
mov rcx, qword [rbp + 0x48]
lea rdx, [rbp + 0x70]
call fcn.0054f940
test al, al
je 0x54fae4
lea rcx, [rbp + 0x68]
xor rdx, rdx
mov r8d, dword [rbp + 0x74]
add r8d, 1
call fcn.0040e670
xor rbx, rbx
mov esi, dword [rbp + 0x70]
sub esi, 1
cmp ebx, esi
jg 0x54fae3
add esi, 1
mov eax, dword [rbp + 0x74]
add eax, 1
mov dword [rbp + 0x8c], eax
mov rcx, qword [rbp + 0x68]
call fcn.0040f9d0
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 8]
mov edx, ebx
mov r8, rax
lea r9, [rbp + 0x8c]
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 rcx, qword [rbp + 0x68]
call fcn.0040f9d0
lea rcx, [rbp + 0x58]
mov rdx, rax
call fcn.0040fa70
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
call qword [rax + 0x78]
add ebx, 1
cmp ebx, esi
jne 0x54fa63
nop
nop
lea rcx, [rbp + 0x58]
call fcn.0040e3b0
lea rcx, [rbp + 0x68]
call fcn.0040e3b0
lea rsp, [rbp + 0x90]
pop rbx
pop rsi
pop rbp
ret
Function at 0x551100
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov rax, qword [rax + 8]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rbp + 0xb8]
call fcn.0054ef90
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
lea rdx, [rbp + 0x64]
call fcn.0054f940
test al, al
je 0x5512ad
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
xor r9, r9
call fcn.00550ed0
lea rcx, [rbp + 0x58]
xor rdx, rdx
mov r8d, dword [rbp + 0x70]
add r8d, 1
call fcn.0040e670
xor rax, rax
mov ebx, dword [rbp + 0x6c]
sub ebx, 1
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], ebx
jg 0x5512ac
add ebx, 1
mov eax, dword [rbp + 0x70]
add eax, 1
mov dword [rbp + 0x84], eax
mov rcx, qword [rbp + 0x58]
call fcn.0040f9d0
mov rcx, qword [rbp + 0xb8]
mov edx, dword [rbp + 0x80]
mov r8, rax
lea r9, [rbp + 0x84]
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 rcx, qword [rbp + 0xb0]
lea rcx, [rcx + rbp + 0x50]
mov rdx, rbp
neg rdx
mov rcx, qword [rcx + rdx]
mov edx, eax
call fcn.0054eeb0
test al, al
je 0x551299
mov rcx, qword [rbp + 0x58]
call fcn.0040f9d0
lea rcx, [rbp + 0x40]
mov rdx, rax
call fcn.0040fa70
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
mov r8, qword [rbp + 0xc0]
mov r9, qword [rbp + 0x40]
call fcn.00550ed0
add dword [rbp + 0x80], 1
cmp dword [rbp + 0x80], ebx
jne 0x5511f0
nop
nop
mov rax, qword [rbp + 0xb0]
lea rax, [rax + rbp + 0x50]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
mov rdx, qword [rbp + 0x88]
call fcn.0054ef90
nop
lea rcx, [rbp + 0x40]
call fcn.0040e3b0
lea rcx, [rbp + 0x58]
call fcn.0040e3b0
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x554670
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x28
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0
mov dword [rcx + 0x14], 0
lea rax, [rcx + 0x18]
mov rcx, rax
mov edx, 0x40
xor r8, r8
call fcn.0040a600
add rsp, 0x28
ret

Function at 0x5548f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbp
sub rsp, 0xc0
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xd0], rcx
mov qword [rbp + 0xd8], rdx
mov rcx, qword [rbp + 0xd8]
call fcn.0040e540
nop
lea rcx, [rbp + 0x50]
call fcn.00554670
mov rcx, qword [rbp + 0xd8]
call fcn.0040f9d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x8000080
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0xffffffffffffffff
je 0x554a2e
nop
mov rcx, qword [rbp + 0xa8]
xor rdx, rdx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.kernel32.dll_CreateFileMappingW
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
je 0x554a21
nop
mov rcx, qword [rbp + 0xb0]
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_MapViewOfFile
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
je 0x554a14
nop
mov rcx, qword [rbp + 0xa8]
xor rdx, rdx
call sub.kernel32.dll_GetFileSize
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0xb8]
mov r8d, eax
call fcn.005546c0
nop
mov rcx, qword [rbp + 0xb8]
call sub.kernel32.dll_UnmapViewOfFile
nop
mov rcx, qword [rbp + 0xb0]
call sub.kernel32.dll_CloseHandle_1
nop
mov rcx, qword [rbp + 0xa8]
call sub.kernel32.dll_CloseHandle_1
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0xd0]
call fcn.00554790
nop
lea rcx, [rbp + 0xd8]
call fcn.0040e3b0
mov rax, qword [rbp + 0xd0]
lea rsp, [rbp + 0xc0]
pop rbp
ret
Function at 0x554d70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov r13, r9
mov rcx, rbx
mov rdx, qword [rbp + 0x90]
call fcn.0040e9e0
mov rcx, rdi
call fcn.0040f9d0
mov rcx, rsi
mov rdx, rax
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x554e8f
mov dword [rbp + 0x34], 0
mov rcx, r13
call fcn.0040f9d0
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
cmp dword [rbp + 0x34], 0
je 0x554e86
mov ecx, dword [rbp + 0x34]
call fcn.00408c10
mov rsi, rax
mov rcx, r13
call fcn.0040f9d0
mov rcx, qword [rbp + 0x38]
mov rdx, rax
xor r8, r8
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x554e7e
mov eax, dword [rbp + 0x30]
cmp eax, 7
ja 0x554e5b
mov dl, 1
mov ecx, eax
and cl, 0x7f
shl edx, cl
movzx rax, byte [0x00554ea0]
test dl, al
setne al
jmp 0x554e5e
xor rax, rax
test al, al
je 0x554e6f
mov rcx, rbx
mov rdx, rsi
call fcn.0040fa70
jmp 0x554e7e
mov rcx, rbx
mov rdx, rsi
mov r8d, dword [rbp + 0x34]
call fcn.0040e670
mov rcx, rsi
call fcn.00408c70
mov rcx, qword [rbp + 0x38]
call sub.advapi32.dll_RegCloseKey_1
mov rax, rbx
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x567720
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0xb0], rcx
nop
mov byte [rbp + 0x97], 0
nop
lea rcx, [rbp + 0x88]
mov rdx, qword [rbp + 0xb0]
lea r8, [0x005678ec]
lea r9, [0x005678fc]
movzx rax, byte [0x00567900]
mov byte [rsp + 0x20], al
call fcn.00438b50
mov dword [rbp + 0x4c], 0
cmp qword [rbp + 0x88], 0
je 0x56779d
mov rax, qword [rbp + 0x88]
mov eax, dword [rax - 4]
mov dword [rbp + 0x4c], eax
mov rax, qword [rbp + 0x88]
movsxd rcx, dword [rbp + 0x4c]
cmp word [rax + rcx*2 - 2], 0x5c
jne 0x5677e4
mov dword [rbp + 0x48], 0
cmp qword [rbp + 0x88], 0
je 0x5677ce
mov rax, qword [rbp + 0x88]
mov eax, dword [rax - 4]
mov dword [rbp + 0x48], eax
lea rcx, [rbp + 0x88]
mov edx, dword [rbp + 0x48]
mov r8d, 1
call fcn.00410070
lea rcx, [rbp + 0x50]
mov edx, 0x38
xor r8, r8
call fcn.0040a600
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x88]
lea r8, [0x00567910]
call fcn.0040fe00
mov rcx, qword [rbp + 0x30]
call fcn.0040f9d0
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x58], 3
mov word [rbp + 0x70], 0x614
lea rcx, [rbp + 0x50]
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete al
mov byte [rbp + 0x97], al
jmp 0x56784e
nop
lea rcx, [rbp + 0x30]
call fcn.0040e3b0
lea rcx, [rbp + 0x88]
call fcn.0040e3b0
movzx rax, byte [rbp + 0x97]
lea rsp, [rbp + 0xa0]
pop rbp
ret
Function at 0x569f80
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov rcx, qword [rbp + 0xb0]
call fcn.0040e3b0
mov rcx, qword [rbp + 0xb8]
call fcn.0040f9d0
mov rcx, rax
lea rdx, [rbp + 0x90]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x94], eax
mov ecx, dword [rbp + 0x94]
call fcn.00408c40
mov qword [rbp + 0x98], rax
nop
mov rcx, qword [rbp + 0xb8]
call fcn.0040f9d0
mov rcx, rax
xor rdx, rdx
mov r8d, dword [rbp + 0x94]
mov r9, qword [rbp + 0x98]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x56a0aa
mov rcx, qword [rbp + 0x98]
lea rdx, [0x0056a108]
lea r8, [rbp + 0x80]
lea r9, [rbp + 0x8c]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x56a0aa
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov eax, dword [rax + 8]
mov dword [rbp + 0x74], eax
mov rax, qword [rbp + 0x78]
mov eax, dword [rax + 0xc]
mov dword [rbp + 0x70], eax
mov eax, dword [rbp + 0x74]
shr eax, 0x10
movzx eax, ax
mov dword [rbp + 0x28], eax
mov byte [rbp + 0x30], 0
mov rax, qword [rbp + 0x78]
movzx eax, word [rax + 8]
mov dword [rbp + 0x38], eax
mov byte [rbp + 0x40], 0
mov eax, dword [rbp + 0x70]
shr eax, 0x10
movzx eax, ax
mov dword [rbp + 0x48], eax
mov byte [rbp + 0x50], 0
mov rax, qword [rbp + 0x78]
movzx eax, word [rax + 0xc]
mov dword [rbp + 0x58], eax
mov byte [rbp + 0x60], 0
mov rcx, qword [rbp + 0xb0]
lea rdx, [0x0056a118]
lea r8, [rbp + 0x28]
mov r9d, 3
call fcn.0042e2a0
nop
mov rcx, qword [rbp + 0x98]
mov edx, dword [rbp + 0x94]
call fcn.00408c70
mov rax, qword [rbp + 0xb0]
lea rsp, [rbp + 0xa0]
pop rbp
ret
Function at 0x575dd0
Capabilities:
Modify service

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
nop
xor rcx, rcx
xor rdx, rdx
mov r8d, 0xf003f
call sub.advapi32.dll_OpenSCManagerW
test rax, rax
je 0x575eec
mov rcx, rax
lea rdx, [0x00575f38]
mov r8d, 0xf01ff
call sub.advapi32.dll_OpenServiceW
test rax, rax
je 0x575eec
mov rcx, rax
or edx, 0xffffffff
mov r8d, 4
or r9d, 0xffffffff
mov qword [rsp + 0x20], 0
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
call sub.advapi32.dll_ChangeServiceConfigW
test eax, eax
jne 0x575ec9
mov rax, qword [0x005b6b40]
cmp qword [rax], 0
je 0x575eec
call sub.kernel32.dll_GetLastError_2
lea rcx, [rbp + 0x60]
mov edx, eax
mov r8d, 8
call fcn.0042cbc0
lea rcx, [rbp + 0x68]
lea rdx, [0x00575f58]
mov r8, qword [rbp + 0x60]
call fcn.0040fe00
mov rax, qword [0x005b6b40]
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x68]
call fcn.00553130
jmp 0x575eec
mov rax, qword [0x005b6b40]
cmp qword [rax], 0
je 0x575eec
mov rax, qword [0x005b6b40]
mov rcx, qword [rax]
lea rdx, [0x00575fb4]
call fcn.00553130
nop
lea rcx, [rbp + 0x60]
mov edx, 2
call fcn.0040e490
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x140001040
Capabilities:
Execute syscall

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov rax, qword [0x140004408]
xor rax, rbp
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0x4000
mov rcx, 0xffffffffffffffff
lea rdx, [rbp - 0x10]
xor eax, eax
mov r8d, eax
lea r9, [rbp - 0x18]
call fcn.140001000
xor r10, r10
sub r10, 1
sub rsp, 0x60
syscall
add rsp, 0x60
mov rax, qword ss:[rsp + 0x40]
mov r10, rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp - 8]
xor rcx, rbp
call fcn.1400013f0
mov rax, qword [rbp - 0x28]
add rsp, 0x50
pop rbp
ret
Function at 0x415be0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415d86
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004351c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415c4b
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415c67
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
call fcn.0044f420
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rbx, rcx
test rbx, rbx
jbe 0x415c8b
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415c9f
cmp rbx, 0x1000
jae 0x415c55
jmp 0x415d09
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415cb1
xor edx, edx
jmp 0x415d00
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004351c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x415c95
jmp 0x415c80
call fcn.004641a0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004398e0
lea rax, [0x004a76de]
mov ebx, 0x18
call fcn.0043a1e0
mov rax, qword [rsp + 0x38]
call fcn.00439ee0
lea rax, [0x004a779e]
mov ebx, 0x19
call fcn.0043a1e0
mov rax, qword [rsp + 0x30]
nop
call fcn.00439ee0
call fcn.00439b40
call fcn.00439960
lea rax, [0x004a9641]
mov ebx, 0x21
nop dword [rax + rax]
call fcn.004380a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00460600
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00415be0