joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005ed0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x180031070], 0
mov rdi, rdx
mov rbx, rcx
jne 0x180005f2b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180005f1b
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x180031070], 1
mov qword [0x180031068], rax
jmp 0x180005f32
mov rax, qword [0x180031068]
mov byte [0x180031070], 1
jmp 0x180005f32
mov rax, qword [0x180031068]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180005f51
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]

Function at 0x180005f70
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180005fb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x180005fe3
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rbx, [rbx + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x180005ff2
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x180006710
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x18002fa78]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x18000685c
test rcx, rcx
je 0x180006785
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x18000685c
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180006831
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180006710
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x18000685c
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800067e0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180006846
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.180005ed0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x180006867
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800134f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x18002fa78]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180008e48
call fcn.180005ea0
mov ebx, eax
jmp 0x180008f8a
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180008e6b
call fcn.180005ea0
mov ebx, eax
jmp 0x180008f80
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x180008e90
call fcn.180005ea0
mov ebx, eax
jmp 0x180008f80
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180008ec9
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180008ebf
lea rcx, [rsp + 0x70]
call fcn.1800066a0
nop
mov eax, 0x8007000e
jmp 0x180008fa3
mov ecx, eax
test eax, eax
je 0x180008f06
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180008efc
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180008f06
lea rcx, [rsp + 0x70]
call fcn.1800066b0
mov rax, qword [rsp + 0x70]
jmp 0x180008f10
mov ecx, 0x80070057
call fcn.180001000
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180008f28
test rax, rax
jne 0x180008f34
mov ebx, 0x8007000e
jmp 0x180008f80
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180008f5b
call fcn.180005ea0
mov ebx, eax
jmp 0x180008f80
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180008bd0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180008fa1
lea rcx, [rsp + 0x70]
call fcn.1800066a0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800134f0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x18000dc50
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18002fa78]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call fcn.180012c40
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x18000dcc1
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x18000dcc1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x18000ddb7
cmp eax, 1
jne 0x18000ddf2
mov eax, dword [rsp + 0x24]
cmp eax, 4
ja 0x18000dcfd
mov eax, 0x401
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
cmp eax, 5
jne 0x18000dd6b
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x18000dd27
mov eax, 0x500
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
cmp eax, 1
jne 0x18000dd49
mov eax, 0x501
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
cmp eax, 2
jne 0x18000dd78
mov eax, 0x502
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
cmp eax, 6
jne 0x18000dd78
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x18000dd95
mov eax, 0x600
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
cmp eax, 1
jne 0x18000dd78
mov eax, 0x601
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 4
jne 0x18000ddf2
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x18000ddf2
cmp eax, 0xa
jne 0x18000dde8
mov eax, 0x40a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
cmp eax, 0x5a
mov eax, 0x45a
je 0x18000ddf7
mov eax, 0x400
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800134f0
add rsp, 0x158
ret
Function at 0x18000e7d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, rdx
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov edi, r9d
mov rsi, r8
mov dword [rsp + 0x78], r9d
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000e865
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000e851
cmp dword [rsp + 0x70], 4
je 0x18000e855
mov dword [rsp + 0x78], edi
test rbx, rbx
je 0x18000e865
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov edi, dword [rsp + 0x78]
test rbx, rbx
je 0x18000e877
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000e898
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18000e8b4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000fc20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbp, rdx
mov r12, rcx
xor ebx, ebx
mov dword [rsp + 0x80], ebx
lea rdx, [0x18002545c]
call fcn.180003980
mov r8d, 1
mov dword [rsp + 0x80], r8d
mov qword [rsp + 0x88], rbx
mov rax, qword [rbp]
sub r8d, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, r8d
jge 0x18000fc8a
xor edx, edx
mov rcx, rbp
call fcn.180001770
lea r8, [0x1800260a8]
mov rdx, qword [rbp]
lea rcx, [rsp + 0x88]
call fcn.180014d20
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x18000fd7a
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18000fd7a
xor edx, edx
lea r8d, [rsi + 3]
call fcn.180014b34
mov rcx, qword [rsp + 0x88]
call fcn.180014a18
movsxd rdi, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call fcn.180014b34
lea r11d, [rdi + 1]
movsxd rbx, r11d
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
call fcn.1800126c0
mov r13, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call fcn.180012c40
mov r8, rdi
mov r9, qword [rsp + 0x88]
lea edx, [rsi + 3]
mov rcx, r13
call fcn.180014834
mov rcx, qword [rsp + 0x88]
call fcn.1800144a0
test r13, r13
je 0x18000fd7a
mov rdx, r13
lea rcx, [rsp + 0x20]
call fcn.180003980
nop
mov rdx, rax
mov rcx, r12
call fcn.1800028e0
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000fd7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x18000fd9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r12
jmp 0x18000fd9e
mov rax, r12
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180017117
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18002fa78]
jne 0x18001350a
rol rcx, 0x10
test cx, 0xffff
jne 0x180013506
repz ret
ror rcx, 0x10
jmp 0x180017070
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800312c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800313b8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800170f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800312c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180017117
mov rax, qword [rsp + 0x88]
mov qword [0x1800313b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180031358], rax
mov rax, qword [0x1800313b8]
mov qword [0x180031230], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180031340], rax
mov dword [0x180031220], 0xc0000409
mov dword [0x180031224], 1
mov rax, qword [0x18002fa78]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18002fa80]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800312b8], eax
mov ecx, 1
call fcn.180015630
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180026830]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800312b8], 0
jne 0x18001719e
mov ecx, 1
call fcn.180015630
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x18001780c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180017680
Function at 0x18001cc44
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180015640
xor ebx, ebx
mov rdi, rax
cmp qword [0x180031f68], rbx
jne 0x18001cd4a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18001ce1f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001ce1f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180031f68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180031f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x180031f78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x180031f88], rax
test rax, rax
je 0x18001cd41
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x180031f80], rax
jmp 0x18001cd51
mov rax, qword [0x180031f80]
jmp 0x18001cd58
mov rax, qword [0x180031f80]
mov r11, qword [0x180031f88]
cmp rax, rdi
je 0x18001cdc0
cmp r11, rdi
je 0x18001cdc0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x180031f88]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18001cdc0
test rax, rax
je 0x18001cdc0
call rsi
test rax, rax
je 0x18001cdba
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18001cdba
test byte [rsp + 0x38], 1
jne 0x18001cdc0
bts ebp, 0x15
jmp 0x18001cdfe
mov rcx, qword [0x180031f70]
cmp rcx, rdi
je 0x18001cdfe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001cdfe
call rax
mov rbx, rax
test rax, rax
je 0x18001cdfe
mov rcx, qword [0x180031f78]
cmp rcx, rdi
je 0x18001cdfe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001cdfe
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180031f68]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001ce1f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18001ce21
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140004280
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov rdi, r8
xor edx, edx
mov rbp, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x14000430a
xor eax, eax
mov r9d, 0x10030
mov qword [rsp + 0x60], rax
mov r8, rsi
mov qword [rsp + 0x58], rax
mov rdx, rbp
mov qword [rsp + 0x50], rax
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x14000430e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140004325
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140004340
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x14000436e
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, 0x10030
mov qword [rsp + 0x30], rsi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x1400043a8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004e384
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14004e180
Function at 0x140057548
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003a1d0
sub rsp, rax
mov rax, qword [0x140080020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005309c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140057597
mov rax, rbp
jmp 0x14005769f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x83110]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140058668
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x83110]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005769b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005769b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140058668
test rax, rax
js 0x14005769b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005769b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005768d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005768d
cmp byte [rcx], 0xd
jne 0x140057673
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140057682
cmp byte [rcx + 1], 0xa
jne 0x140057682
inc rcx
jmp 0x140057682
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x80410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140057655
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005769f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400398d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400578c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400578d6
mov al, 1
jmp 0x140057936
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400578e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140057934
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005bb14
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140057934
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140057934
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140057934
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140057936
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140057a08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140083110]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140057a5f
cmp word [rdx], r13w
jne 0x140057a5f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140057a64
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140057b89
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140057baa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140057a9d
mov rdx, r9
mov word [rbx], cx
jmp 0x140057ac4
cmp r9, r8
jae 0x140057ad4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140057a7e
jmp 0x140057b89
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140057b7e
cmp dword [rsp + 0x80], esi
je 0x140057b7e
lea r8, [0x140083110]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140057b56
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140057b26
mov word [rbx], r13w
jmp 0x140057b86
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140057b33
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140057b86
cmp word [rsp + 0x70], r13w
jne 0x140057b63
cmp rbx, r14
je 0x140057b20
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140058670
cmp word [rsp + 0x70], r13w
je 0x140057b89
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140083110]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140057b83
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140057b89