joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c5290
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov dword [rsp + 0x58], 0
lea rdx, [0x1801a6e60]
lea rcx, [rsp + 0x50]
call fcn.1800e9640
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1800c53af
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x400000
ja 0x1800c53a4
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x5c]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.1800e5fb0
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x5c]
add rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1800f8b90
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x58], eax
mov edx, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.1800e6020
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0
jne 0x1800c53d1
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x50]
call fcn.1800e5c00
mov eax, dword [rsp + 0x6c]
jmp 0x1800c547e
lea rdx, [0x1801c8ed8]
lea rcx, [rsp + 0x50]
call fcn.1800e9a40
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1800c5405
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x50]
call fcn.1800e5c00
mov eax, dword [rsp + 0x70]
jmp 0x1800c547e
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.1800eb560
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x88]
call fcn.1800c5490
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x78]
call fcn.1800e5c00
nop
lea rcx, [rsp + 0x50]
call fcn.1800e5c00
mov eax, dword [rsp + 0x74]
add rsp, 0xa8
ret
Function at 0x1800c8180
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov r9d, dword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov edx, dword [rsp + 0xa8]
lea rcx, [rsp + 0x40]
call fcn.1800c8300
nop
mov rax, qword [rsp + 0x40]
cmp dword [rax - 8], 0
jne 0x1800c81dd
mov dword [rsp + 0x80], 1
jmp 0x1800c81e8
mov dword [rsp + 0x80], 0
cmp dword [rsp + 0x80], 0
je 0x1800c820d
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x40]
call fcn.1800e5c00
mov eax, dword [rsp + 0x60]
jmp 0x1800c82f8
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1800c82e2
mov eax, 0xfeff
mov word [rsp + 0x54], ax
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, 2
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax - 8]
mov dword [rsp + 0x68], eax
movsxd rax, dword [rsp + 0x68]
shl rax, 1
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x40]
call fcn.1800e5c00
mov eax, dword [rsp + 0x64]
add rsp, 0x98
ret

Function at 0x1800c9940
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x6760]
cmp dword [rax - 8], 0
jne 0x1800c9965
mov dword [rsp + 0x50], 1
jmp 0x1800c996d
mov dword [rsp + 0x50], 0
cmp dword [rsp + 0x50], 0
je 0x1800c997b
xor eax, eax
jmp 0x1800c9a1b
mov edx, 0x3e8
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800c9a0a
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x6760]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0x6720
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
lea rcx, [0x1802385e0]
call fcn.1800c36a0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1800c99ec
jmp 0x1800c997b
cmp dword [rsp + 0x40], 0
jbe 0x1800c9a05
mov rdx, qword [rsp + 0x70]
lea rcx, [0x1800c9a20]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x1800c997b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800ca830
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x1800ca874
mov eax, 1
jmp 0x1800ca965
xor eax, eax
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x7e
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x1800ca8b6
lea r8, str.TSandboxDrvCDOSL
lea rdx, str..Global_s
lea rcx, [rsp + 0x50]
call fcn.1800f9c14
jmp 0x1800ca8ce
lea r8, str.TSandboxDrvCDOSL
lea rdx, str.._s
lea rcx, [rsp + 0x50]
call fcn.1800f9c14
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.1800e50f0
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x100]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax + 8], 0xffffffffffffffff
jne 0x1800ca949
mov dword [rsp + 0xd0], 0
lea rcx, [rsp + 0x40]
call fcn.1800e5130
mov eax, dword [rsp + 0xd0]
jmp 0x1800ca965
mov dword [rsp + 0xd4], 1
lea rcx, [rsp + 0x40]
call fcn.1800e5130
mov eax, dword [rsp + 0xd4]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0xf0
pop rdi
ret

Function at 0x1800d3b40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d3b97
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d3bff
cmp qword [rsp + 0x78], 0
je 0x1800d3bb8
mov rcx, qword [rsp + 0x78]
call fcn.1800f9644
inc rax
mov eax, eax
shl rax, 1
mov qword [rsp + 0x40], rax
jmp 0x1800d3bc1
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret
Function at 0x1800d3c10
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d3c67
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d3c9d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x48
ret

Function at 0x1800d3cb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d3d0f
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d3df3
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x44]
cmp rax, 2
jb 0x1800d3de8
mov eax, dword [rsp + 0x44]
add rax, 2
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov eax, 2
mov rcx, qword [rsp + 0x58]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800f8d24
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800d3de8
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x1800d3e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d3e5f
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d3f16
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x44]
cmp rax, 1
jb 0x1800d3f0b
mov eax, dword [rsp + 0x44]
inc rax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, eax
call fcn.1800f8d24
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800d3f0b
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x1800d3f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1800d3f7a
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d3fc1
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x1800d5480
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1800d551d
xor eax, eax
jmp 0x1800d552d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x88
ret

Function at 0x1800d5540
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800d5586
xor eax, eax
jmp 0x1800d55dd
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1800d55be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1800d55be
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x1800d55be
mov dword [rsp + 0x2c], 0
jmp 0x1800d55c6
mov dword [rsp + 0x2c], 1
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x1800d55f0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor eax, eax
mov word [rsp + 0x50], ax
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0x7e
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jae 0x1800d5661
mov r8, qword [rsp + 0xf0]
lea rdx, str..Global_s
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1800d567b
mov r8, qword [rsp + 0xf0]
lea rdx, str.._s
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1800d56bb
xor eax, eax
jmp 0x1800d56e8
cmp qword [rsp + 0xf8], 0
je 0x1800d56d8
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
jmp 0x1800d56e3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0xe0
pop rdi
ret
Function at 0x1800d5710
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18021dd90]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800d5785
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800f98f0
add rsp, 0x68
ret

Function at 0x1800d57a0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800d57fc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x1800d9e80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x40], 0xffffffffffffffff
jne 0x1800d9f64
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x48]
cmp dword [rax - 8], 0
jne 0x1800d9eb2
mov dword [rsp + 0x50], 1
jmp 0x1800d9eba
mov dword [rsp + 0x50], 0
cmp dword [rsp + 0x50], 0
jne 0x1800d9f54
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 7
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x40], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x40], 0xffffffffffffffff
je 0x1800d9f54
mov eax, 0xfeff
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x40], 0xffffffffffffffff
jne 0x1800d9f64
xor eax, eax
jmp 0x1800d9f69
mov eax, 1
add rsp, 0x68
ret

Function at 0x1800d9f70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [rsp + 0x70]
add rax, 8
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800f0bb0
nop
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x18]
test eax, eax
je 0x1800da017
cmp qword [rsp + 0x78], 0
je 0x1800da017
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x78]
call fcn.1800f9644
mov eax, eax
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, eax
mov rdx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x30]
call fcn.1800f0c30
add rsp, 0x68
ret

Function at 0x1800da0d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1800e5890
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1800e58f3
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800e58f3
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x1800e5905
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x1800e58e0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rbx, dword [rsp + 0x50]
lea rdx, [rax + 2]
mov rcx, rsi
mov r8, rbx
call fcn.1800e55b0
test eax, eax
jne 0x1800e5923
mov byte [rbx + rsi - 1], al
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
dec eax
add rsp, 0x20
pop rdi
ret

Function at 0x1800e7060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x1800e70cb
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x1800e70cb
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x1800e70e2
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x1800e70b5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edi, dword [rsp + 0x50]
dec edi
cmp ecx, edi
cmovle edi, ecx
movsxd rcx, edi
lea rbx, [rcx + rcx]
mov rcx, rsi
mov r8, rbx
call fcn.1800fa600
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x1800e70cd