joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800bfb60
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 0
lea rcx, [rsp + 0x40]
call fcn.180134700
nop
mov r8d, 1
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x100]
call fcn.1800be9e0
test eax, eax
je 0x1800bfc83
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.180134680
mov edx, 0x23d
lea rcx, str.CTSandboxInstance::GetInstancePolicyLib2
call fcn.1800be550
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1801346d0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800bfc3b
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x94], eax
lea rcx, [rsp + 0x40]
call fcn.1801346b0
mov dword [rsp + 0x9c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov r9d, 0x24f
lea r8, str.CTSandboxInstance::GetInstancePolicyLib2
mov edx, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x9c]
call fcn.1800be610
lea rcx, [rsp + 0x40]
call fcn.180134670
cmp dword [rsp + 0x90], 0
jbe 0x1800bfdd2
mov eax, dword [rsp + 0x94]
and eax, 2
mov dword [rsp + 0xb8], eax
mov r8d, dword [rsp + 0xb8]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x100]
call fcn.1800bf350
nop
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xd8], rax
mov r8, qword [rsp + 0xd8]
xor edx, edx
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x1800bfdc5
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1800bfdab
mov eax, dword [rsp + 0x90]
mov ecx, eax
call fcn.1800f87f4
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800bfd91
mov eax, dword [rsp + 0x90]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1800f8660
mov eax, dword [rsp + 0x90]
mov r8d, eax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
call fcn.1800fa0d0
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0xc0], 0
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0xb0]
call fcn.1800e56d0
cmp qword [rsp + 0x108], 0
je 0x1800bfdee
mov rax, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x90]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x40]
call fcn.180134810
mov rax, qword [rsp + 0xd0]
add rsp, 0xf8
ret
Function at 0x1800c4d60
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.1800e9110
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 0x1800c4e7f
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 0x1800c4e74
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.1800e5a80
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.1800f8660
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.1800e5af0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0
jne 0x1800c4ea1
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0x50]
call fcn.1800e56d0
mov eax, dword [rsp + 0x6c]
jmp 0x1800c4f4e
lea rdx, [0x1801c8d78]
lea rcx, [rsp + 0x50]
call fcn.1800e9510
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1800c4ed5
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x50]
call fcn.1800e56d0
mov eax, dword [rsp + 0x70]
jmp 0x1800c4f4e
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.1800eb030
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.1800c4f60
mov dword [rsp + 0x74], eax
lea rcx, [rsp + 0x78]
call fcn.1800e56d0
nop
lea rcx, [rsp + 0x50]
call fcn.1800e56d0
mov eax, dword [rsp + 0x74]
add rsp, 0xa8
ret
Function at 0x1800c7c50
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.1800c7dd0
nop
mov rax, qword [rsp + 0x40]
cmp dword [rax - 8], 0
jne 0x1800c7cad
mov dword [rsp + 0x80], 1
jmp 0x1800c7cb8
mov dword [rsp + 0x80], 0
cmp dword [rsp + 0x80], 0
je 0x1800c7cdd
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x40]
call fcn.1800e56d0
mov eax, dword [rsp + 0x60]
jmp 0x1800c7dc8
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 0x1800c7db2
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.1800e56d0
mov eax, dword [rsp + 0x64]
add rsp, 0x98
ret

Function at 0x1800c9410
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x6760]
cmp dword [rax - 8], 0
jne 0x1800c9435
mov dword [rsp + 0x40], 1
jmp 0x1800c943d
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
je 0x1800c944b
xor eax, eax
jmp 0x1800c94e3
mov edx, 0x3e8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1800c94d2
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x6760]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 0x40
mov dword [rsp + 0x28], 0x6720
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
lea rcx, [0x1802385e0]
call fcn.1800c3180
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1800c94b4
jmp 0x1800c944b
cmp dword [rsp + 0x30], 0
jbe 0x1800c94cd
mov rdx, qword [rsp + 0x60]
lea rcx, [0x1800c94f0]
call qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x1800c944b
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800ca300
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 0x1800ca344
mov eax, 1
jmp 0x1800ca435
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 0x1800ca386
lea r8, str.TSandboxDrvCDOSL
lea rdx, str..Global_s
lea rcx, [rsp + 0x50]
call fcn.1800f96e4
jmp 0x1800ca39e
lea r8, str.TSandboxDrvCDOSL
lea rdx, str.._s
lea rcx, [rsp + 0x50]
call fcn.1800f96e4
mov edx, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.1800e4bc0
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 0x1800ca419
mov dword [rsp + 0xd0], 0
lea rcx, [rsp + 0x40]
call fcn.1800e4c00
mov eax, dword [rsp + 0xd0]
jmp 0x1800ca435
mov dword [rsp + 0xd4], 1
lea rcx, [rsp + 0x40]
call fcn.1800e4c00
mov eax, dword [rsp + 0xd4]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800f93c0
add rsp, 0xf0
pop rdi
ret

Function at 0x1800d3610
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 0x1800d3667
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d36cf
cmp qword [rsp + 0x78], 0
je 0x1800d3688
mov rcx, qword [rsp + 0x78]
call fcn.1800f9114
inc rax
mov eax, eax
shl rax, 1
mov qword [rsp + 0x40], rax
jmp 0x1800d3691
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 0x1800d36e0
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 0x1800d3737
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d376d
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 0x1800d3780
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 0x1800d37df
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d38c3
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 0x1800d38b8
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.1800f87f4
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800d38b8
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 0x1800d38d0
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 0x1800d392f
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d39e6
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 0x1800d39db
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.1800f87f4
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800d39db
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 0x1800d39f0
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 0x1800d3a4a
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1800d3a91
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 0x1800d4f50
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 0x1800d4fed
xor eax, eax
jmp 0x1800d4ffd
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
add rsp, 0x88
ret

Function at 0x1800d5010
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 0x1800d5056
xor eax, eax
jmp 0x1800d50ad
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1800d508e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1800d508e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x1800d508e
mov dword [rsp + 0x2c], 0
jmp 0x1800d5096
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 0x1800d50c0
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 0x1800d5131
mov r8, qword [rsp + 0xf0]
lea rdx, str..Global_s
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
jmp 0x1800d514b
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 0x1800d518b
xor eax, eax
jmp 0x1800d51b8
cmp qword [rsp + 0xf8], 0
je 0x1800d51a8
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
jmp 0x1800d51b3
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.1800f93c0
add rsp, 0xe0
pop rdi
ret
Function at 0x1800d51e0
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 0x1800d5255
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.1800f93c0
add rsp, 0x68
ret

Function at 0x1800d5270
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 0x1800d52cc
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 0x1800d9950
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 0x1800d9a34
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x48]
cmp dword [rax - 8], 0
jne 0x1800d9982
mov dword [rsp + 0x50], 1
jmp 0x1800d998a
mov dword [rsp + 0x50], 0
cmp dword [rsp + 0x50], 0
jne 0x1800d9a24
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 0x1800d9a24
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 0x1800d9a34
xor eax, eax
jmp 0x1800d9a39
mov eax, 1
add rsp, 0x68
ret

Function at 0x1800d9a40
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.1800f0680
nop
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x70]
call qword [rax + 0x18]
test eax, eax
je 0x1800d9ae7
cmp qword [rsp + 0x78], 0
je 0x1800d9ae7
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.1800f9114
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.1800f0700
add rsp, 0x68
ret

Function at 0x1800d9ba0
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 0x1800e5360
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 0x1800e53c3
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800e53c3
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x1800e53d5
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x1800e53b0
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.1800e5080
test eax, eax
jne 0x1800e53f3
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 0x1800e6b30
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 0x1800e6b9b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x1800e6b9b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x1800e6bb2
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x1800e6b85
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.1800fa0d0
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x1800e6b9d