joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472be0
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.00424830
xor edx, edx
lea rcx, [rbp + 0x350]
mov r8d, 0x250
call fcn.00424830
xor r9d, r9d
lea rax, [rbp + 0x140]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x472cf4
lea r9, [rbp + 0x140]
mov edx, 0x104
lea r8, str._sMetaQuotesWebInstall.png
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rdx, [rbp + 0x350]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x472cf4
lea rax, [rbp + 0x37c]
mov edx, 0x104
lea r9, [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r8, str._sMetaQuotesWebInstall_s
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x472cd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x472cd7
lea edx, [rax + 0x7b]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x350]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x472c7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x6b0]
add rsp, 0x6a0
pop rbp
ret

Function at 0x472d0c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
add rcx, 0xa584
xor ebx, ebx
cmp word [rcx], bx
je 0x472d50
call fcn.0041ee94
cmp rax, 0x3e8
jae 0x472d50
lea rdx, [rsp + 0x20]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x472d50
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.00476488
add rsp, 0x230
pop rbx
ret
Function at 0x474df0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x40]
call fcn.00424830
or rcx, 0xffffffffffffffff
lea r13, [0x00486230]
xor ebx, ebx
mov qword [rbp - 9], r13
mov qword [rbp - 1], rcx
mov dword [rbp + 0x77], ebx
test rdi, rdi
je 0x474f55
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rbp - 1]
cmp eax, 0xffffffff
jne 0x474e59
mov bl, 1
jmp 0x474f55
cmp rcx, 0xffffffffffffffff
je 0x474e65
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbx
mov r8d, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 1], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x474f55
mov edi, ebx
mov r8d, 0x40
mov eax, edi
lea rdx, [rbp + 7]
mov dword [rbp + 0x6f], ebx
sub r8d, edi
mov qword [rsp + 0x20], rbx
add rdx, rax
lea r9, [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x474f51
cmp dword [rbp + 0x6f], ebx
je 0x474ee0
add edi, dword [rbp + 0x6f]
cmp edi, 0x40
jae 0x474ee3
mov rcx, qword [rbp - 1]
jmp 0x474ea1
cmp edi, 0x40
jne 0x474f51
movzx eax, word [rbp + 0x2b]
mov rcx, qword [rbp - 1]
mov word [rbp + 0x77], ax
movzx eax, word [rbp + 0x2d]
mov word [rbp + 0x79], ax
cmp rcx, 0xffffffffffffffff
je 0x474f55
mov eax, dword [rbp + 0x77]
lea r8, [rbp + 0x73]
mov edx, eax
mov qword [rbp + 0x6f], rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x6f], eax
cmp eax, 0xffffffff
jne 0x474f27
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x474f51
cmp qword [rbp + 0x6f], 0xffffffffffffffff
je 0x474f51
lea rdi, [rsi + 0x18]
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.0041f180
test al, al
je 0x474f4b
lea rdi, [rsi + 0x18]
cmp dword [rdi], 1
jne 0x474f32
cmp dword [rdi], 1
sete bl
mov rcx, qword [rbp - 1]
mov qword [rbp - 9], r13
cmp rcx, 0xffffffffffffffff
je 0x474f65
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x90]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rbp
ret
Function at 0x475598
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rdx, [rcx + 0x44]
mov rcx, qword [rcx + 0x358]
mov r8d, 0x7f
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x5d8]
lea rdx, [rdi + 0x144]
mov esi, 0x3f
mov r8d, esi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x620]
lea rdx, [rdi + 0x1c4]
mov r8d, esi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x668]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rdi + 0x40], eax
cmp word [rdi + 0x44], 0
jne 0x475630
mov rcx, qword [rdi + 0x358]
call qword [sym.imp.USER32.dll_SetFocus]
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
xor al, al
jmp 0x47563b
lea rdx, [rdi + 0x40]
call fcn.004536b0
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x475ac8
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r15
lea rbp, [rax - 0x368]
sub rsp, 0x450
mov rdi, rcx
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x208
call fcn.00424830
cmp qword [rdi + 0x238], 0x400
jb 0x475ca2
xor r9d, r9d
lea rax, [rbp + 0x140]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r15d, r15d
test eax, eax
js 0x475ca2
mov r12d, 0x104
lea r9, [rbp + 0x140]
mov edx, r12d
lea r8, str._sMetaQuotes
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x475b88
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.00476488
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x475b9a
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, [rbp + 0x140]
mov rdx, r12
lea r8, str._sMetaQuotesWebInstall
lea rcx, [rsp + 0x30]
call fcn.0040457c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
and cl, 0x13
cmp cl, 0x10
je 0x475be1
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.00476488
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x475bf3
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
lea r8, str._s_S
mov rdx, r12
lea rcx, [rbp + 0x140]
call fcn.0040457c
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rsi, [rdi + 0x230]
mov rcx, rsi
lea rdx, [rbp + 0x140]
call fcn.00404af4
test al, al
jne 0x475c9e
lea rbx, [rdi + 0x20]
cmp word [rbx], r15w
je 0x475ca2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, rbx
cmp eax, 0xffffffff
jne 0x475c5f
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x475c6a
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r9, rbx
mov qword [rsp + 0x20], rdi
lea r8, str._s_S
mov rdx, r12
lea rcx, [rbp + 0x140]
call fcn.0040457c
lea rdx, [rbp + 0x140]
mov rcx, rsi
call fcn.00404af4
test al, al
setne al
jmp 0x475ca4
mov al, 1
jmp 0x475ca4
xor al, al
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rbp
ret
Function at 0x475cc8
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rbx, rcx
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x208
call fcn.00424830
xor eax, eax
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rsp + 0x50], eax
lea rax, [rbp + 0x170]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x30], xmm0
lea edx, [r9 + 0x1a]
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
test eax, eax
js 0x475deb
lea r9, [rbp + 0x170]
mov qword [rsp + 0x20], rbx
lea r8, str._sMetaQuotesWebInstall_S
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.0040457c
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x475dbb
lea rdi, [rbx + 0x20]
cmp word [rdi], si
je 0x475deb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x475deb
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, str._s_S
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.0040457c
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x475deb
mov eax, dword [rbx + 0x228]
cmp dword [rsp + 0x50], eax
jne 0x475de0
lea rcx, [rbx + 0x230]
lea rdx, [rsp + 0x60]
call fcn.004122a8
test al, al
je 0x475de0
mov al, 1
jmp 0x475ded
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x476488
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
test rcx, rcx
je 0x476620
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
xor r14d, r14d
mov edi, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x476604
cmp edx, 0xf
jg 0x476604
xor edx, edx
lea rcx, [rbp + 0x140]
mov r8d, 0x250
call fcn.00424830
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea rdx, str._s.
lea rax, [0x0048d7e0]
mov dword [rsp + 0x34], 0x104
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov word [rsp + 0x38], r14w
call fcn.004012e8
mov rcx, qword [rsp + 0x28]
lea rdx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x476604
lea r9, [rbp + 0x16c]
mov r8, rbx
lea rdx, [0x00491de8]
lea rcx, [rsp + 0x20]
call fcn.004012e8
mov eax, dword [rbp + 0x140]
test al, 0x10
je 0x4765c4
cmp word [rbp + 0x16c], 0x2e
movzx ecx, word [rbp + 0x16e]
jne 0x476593
test cx, cx
je 0x4765e3
cmp word [rbp + 0x16c], 0x2e
jne 0x476593
cmp cx, 0x2e
jne 0x476593
cmp word [rbp + 0x170], r14w
je 0x4765e3
test al, 1
je 0x4765a7
mov rcx, qword [rsp + 0x28]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
lea edx, [rdi + 1]
xor r8d, r8d
call fcn.00476488
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4765e3
test al, 1
je 0x4765d8
mov rcx, qword [rsp + 0x28]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47653e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x476624
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov bl, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x4766c2
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.00424830
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x4766b9
lea rdx, str.prxdrvpe.dll
lea rcx, [rsp + 0x50]
call fcn.004373a8
test eax, eax
je 0x4766b7
lea rdx, str.prxdrvpe64.dll
lea rcx, [rsp + 0x50]
call fcn.004373a8
test eax, eax
je 0x4766b7
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x476679
mov bl, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x4770d4
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x430
mov rbp, 0xffffffff80000001
mov dword [rsp + 0x28], 0x100
mov rcx, rbp
mov dword [rsp + 0x20], 0x3fe
lea r9, [rsp + 0x30]
lea r8, str.Email
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
call fcn.00404704
xor esi, esi
test al, al
je 0x477132
cmp word [rsp + 0x30], si
jne 0x4771ed
lea rax, [rsp + 0x440]
mov qword [rsp + 0x440], rsi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftIdentityCRLUserExtendedProperties
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rsp + 0x440]
test eax, eax
cmovne rdi, rsi
mov qword [rsp + 0x440], rdi
test rdi, rdi
je 0x4771ed
mov ebx, esi
mov r9d, 0x1ff
mov word [rsp + 0x30], si
lea r8, [rsp + 0x30]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4771e4
mov edx, 0x200
lea rcx, [rsp + 0x30]
call fcn.0043771c
lea rdx, [rsp + 0x30]
call fcn.00477030
cmp rax, 6
ja 0x4771c4
inc ebx
cmp ebx, 0xa
jb 0x47717d
jmp 0x4771e4
lea rax, [rsp + 0x30]
mov rcx, rbp
lea r8, str.Email
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
call fcn.004045c0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x478304
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
xor r9d, r9d
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x478375
lea r8, str.MetaQuotesWebInstall
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.004044ac
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.00476488
mov rcx, qword [rbx + 0x39f8]
test rcx, rcx
je 0x478375
mov rcx, qword [rcx + 0x39e0]
test rcx, rcx
je 0x478375
add rcx, 0x20
xor edx, edx
call fcn.00476488
add rsp, 0x240
pop rbx
ret
Function at 0x4784e4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xf0
mov eax, 0x5a4d
cmp word [r9], ax
jne 0x4786a7
mov rbx, qword [rsp + 0x120]
mov r10d, dword [rbx]
cmp dword [r9 + 0x3c], r10d
jge 0x4786a7
movsxd r11, dword [r9 + 0x3c]
lea rax, [r11 + r9]
cmp dword [rax], 0x4550
jne 0x4786a7
mov ecx, 0x14c
cmp word [rax + 4], cx
je 0x4785e1
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x4786a7
lea rcx, [rax + 0x18]
mov edi, 0x80
movups xmm0, xmmword [rcx]
lea rax, [rsp]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x50], xmm1
movups xmmword [rax + 0x60], xmm0
add rax, rdi
movups xmm0, xmmword [rcx + 0x70]
add rcx, rdi
movups xmmword [rax - 0x10], xmm0
movups xmm1, xmmword [rcx]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rax], xmm1
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm1
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [rcx + 0x50]
movups xmmword [rax + 0x40], xmm1
movups xmm1, xmmword [rcx + 0x60]
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm1
mov rax, qword [rsp + 0x90]
mov qword [rdx], rax
lea eax, [rdi + 0x28]
jmp 0x47866e
movups xmm1, xmmword [rax + 0x28]
add rax, 0x18
lea rcx, [rsp]
mov edi, 0x80
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
add rcx, rdi
movups xmm0, xmmword [rax + 0x70]
add rax, rdi
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmmword [rcx + 0x50], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rdx], rax
lea eax, [rdi + 0x18]
lea rcx, [r11 + rax]
test r8d, r8d
je 0x4786a3
test rcx, rcx
je 0x4786a3
cmp dword [rdx], 0
je 0x4786a3
mov r11d, dword [rdx + 4]
test r11d, r11d
je 0x4786a3
cmp rcx, r10
jge 0x4786a7
lea eax, [r11 + r8]
mov dword [rdx + 4], eax
lea eax, [r10 + r8]
mov dword [rbx], eax
mov rax, qword [rdx]
mov qword [rcx + r9], rax
mov al, 1
jmp 0x4786a9
xor al, al
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret
Function at 0x4786c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
and dword [rbp + 0x170], 0
xor eax, eax
mov rsi, rdx
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
mov rbx, rcx
lea r8d, [rax + 0x40]
movups xmmword [rsp + 0x20], xmm0
call fcn.00401684
cmp eax, 0x40
jne 0x4788bf
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x4788bf
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x478730
or rcx, 0xffffffffffffffff
jmp 0x47876a
movsxd rax, dword [rsp + 0x7c]
lea r8, [rbp + 0x17c]
mov edx, eax
mov qword [rbp + 0x178], rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x178], eax
cmp eax, 0xffffffff
jne 0x478763
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47872a
mov rcx, qword [rbp + 0x178]
movsxd rax, dword [rsp + 0x7c]
cmp rcx, rax
jne 0x4788bf
mov r8d, 4
lea rdx, [rbp + 0x170]
mov rcx, rbx
call fcn.00401684
cmp eax, 4
jne 0x4788bf
cmp dword [rbp + 0x170], 0x4550
jne 0x4788bf
lea r8d, [rax + 0x10]
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.00401684
cmp eax, 0x14
jne 0x4788bf
mov eax, 0x14c
cmp word [rsp + 0x20], ax
je 0x4787dc
mov eax, 0x8664
cmp word [rsp + 0x20], ax
jne 0x4788bf
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xe0
call fcn.00424830
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0xf0
call fcn.00424830
mov rcx, qword [rbx + 8]
mov eax, 0x14c
cmp word [rsp + 0x20], ax
jne 0x478864
cmp rcx, 0xffffffffffffffff
je 0x478842
and qword [rbp + 0x178], 0
lea r8, [rbp + 0x17c]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x178], eax
cmp eax, 0xffffffff
jne 0x478842
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xe0
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.00401684
cmp eax, 0xe0
jne 0x4788bf
mov rax, qword [rbp]
mov qword [rsi], rax
jmp 0x4788bb
cmp rcx, 0xffffffffffffffff
je 0x478898
and qword [rbp + 0x178], 0
lea r8, [rbp + 0x17c]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x178], eax
cmp eax, 0xffffffff
jne 0x478898
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xf0
lea rdx, [rbp + 0x60]
mov rcx, rbx
call fcn.00401684
cmp eax, 0xf0
jne 0x4788bf
mov rcx, qword [rbp + 0xf0]
mov qword [rsi], rcx
mov al, 1
jmp 0x4788c1
xor al, al
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x478e00
Capabilities:
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
test rdx, rdx
je 0x478e59
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x478e59
mov r8d, 0xf01ff
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x478e70
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov edi, ebx
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x478eef
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x478eed
cmp eax, 4
je 0x478eab
cmp eax, 7
je 0x478eab
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3c
jb 0x478e72
jmp 0x478eef
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x478ee6
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x478eef
cmp dword [rsp + 0x24], 1
je 0x478eed
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x3c
jb 0x478ec0
jmp 0x478eef
mov bl, 1
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
jmp 0x478e5b