joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140045a00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movsxd r8, r8d
movsxd rcx, ecx
jmp 0x140045a00
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
cmp qword [rsp + 0x110], 0
jne 0x140045a2f
xor eax, eax
jmp 0x140045c33
lea rax, [rsp + 0x90]
lea rcx, [0x1400a4500]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x50
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140045a82
xor eax, eax
jmp 0x140045c33
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x96], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0xaa], rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0xb5], eax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0xbc], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xd7], rax
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x50
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400a8758]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1400a8760]
test eax, eax
je 0x140045ba7
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140045c33
cmp qword [rsp + 0x68], 0
jne 0x140045bce
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140045c33
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 8
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x78]
add rsp, 0xe8
pop rdi
pop rsi
ret
Function at 0x140045c40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movsxd r8, r8d
movsxd rcx, ecx
jmp 0x140045c40
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
cmp qword [rsp + 0xe8], 0
jne 0x140045c6f
xor eax, eax
jmp 0x140045e1b
lea rax, [rsp + 0x80]
lea rcx, [0x1400a4550]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x3a
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140045cc2
xor eax, eax
jmp 0x140045e1b
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x86], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x9a], rax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0xa5], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x3a
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400a8758]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1400a8760]
test eax, eax
je 0x140045db9
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140045e1b
cmp qword [rsp + 0x68], 0
jne 0x140045de0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140045e1b
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 1
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x140045e30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movsxd r8, r8d
movsxd rcx, ecx
jmp 0x140045e30
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
cmp qword [rsp + 0x118], 0
je 0x140045e63
cmp qword [rsp + 0x120], 0
jne 0x140045e6a
xor eax, eax
jmp 0x1400460a8
lea rax, [rsp + 0x90]
lea rcx, [0x1400a4590]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x53
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8d, 0x200
xor edx, edx
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140045ebd
xor eax, eax
jmp 0x1400460a8
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x96], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0xaa], rax
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0xb5], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xbb], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0xda], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x53
lea r8, [rsp + 0x90]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1400a8758]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rsp + 0x68]
call qword [0x1400a8760]
test eax, eax
je 0x140045fdc
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1400460a8
cmp qword [rsp + 0x68], 0
jne 0x140046006
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x1400460a8
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x60]
add rax, 8
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x70]
mov rdx, rax
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x74]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [0x1400a8758]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [rsp + 0x70], 0
je 0x1400460a6
mov eax, dword [rsp + 0x74]
jmp 0x1400460a8
xor eax, eax
add rsp, 0xf8
pop rdi
pop rsi
ret
Function at 0x1400464d0
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x28
call fcn.1400416c0
mov rcx, rax
add rsp, 0x28
jmp 0x1400464d0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400464fa
xor eax, eax
jmp 0x14004656d
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140046560
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x5c]
call fcn.14004e44c
test eax, eax
jne 0x14004654d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14004656d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140046526
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x270
pop rdi
ret
Function at 0x140046580
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
mov rcx, rdx
xor ebx, ebx
call fcn.1400416c0
cmp word [rax], bx
je 0x140039aae
mov rcx, rdi
call fcn.1400416c0
mov rbx, rax
mov rdx, rbx
mov ecx, esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140046580
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x6b8
cmp dword [rsp + 0x6c0], 0
jne 0x1400465a1
xor eax, eax
jmp 0x1400466e9
cmp qword [rsp + 0x6c8], 0
jne 0x14004662a
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x238
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400465d4
xor eax, eax
jmp 0x1400466e9
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14004660b
mov eax, dword [rsp + 0x6c0]
cmp dword [rsp + 0x38], eax
jne 0x1400465f6
jmp 0x140046609
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400465e7
jmp 0x14004661d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400466e9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004663c
mov rdx, qword [rsp + 0x6c8]
lea rcx, [rsp + 0x5c]
call fcn.140046410
mov ecx, dword [rsp + 0x6c0]
call fcn.140046700
test eax, eax
je 0x140046664
mov edx, dword [rsp + 0x6c0]
mov ecx, 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
jmp 0x14004667a
mov edx, dword [rsp + 0x6c0]
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x270], 0x438
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1400466dc
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x2a0]
call fcn.14004e44c
test eax, eax
jne 0x1400466c6
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x288]
jmp 0x1400466e9
lea rdx, [rsp + 0x270]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x14004669b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x6b8
ret

Function at 0x140046750
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
cmp eax, 9
je 0x140046773
movzx eax, word [rsp + 0x20]
cmp eax, 6
jne 0x140046777
xor eax, eax
jmp 0x14004677c
mov eax, 1
add rsp, 0x58
ret
Function at 0x140046790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x848
mov dword [rsp + 0x10], 0
mov rax, qword [rsp + 0x858]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x18], 0xffffffffffffffff
inc qword [rsp + 0x18]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
cmp byte [rax + rcx], 0
jne 0x1400467c4
mov rax, qword [rsp + 0x18]
mov dword [rsp + 0x10], eax
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x860]
mov dword [rsp + 0x14], eax
mov dword [rsp + 0xc], 0
mov dword [rsp], 0
jmp 0x14004680e
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x14004684e
movsxd rax, dword [rsp]
mov ecx, dword [rsp]
mov dword [rsp + rax*4 + 0x40], ecx
mov eax, dword [rsp]
cdq
idiv dword [rsp + 0x10]
mov eax, edx
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x858]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rsp]
mov dword [rsp + rcx*4 + 0x440], eax
jmp 0x140046806
mov dword [rsp], 0
jmp 0x14004685f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x100
jge 0x1400468c3
movsxd rax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0x40]
mov ecx, dword [rsp + 0xc]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp]
add eax, dword [rsp + rcx*4 + 0x440]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0xc], eax
movsxd rax, dword [rsp + 0xc]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 0xc]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + rcx*4 + 0x40], eax
movsxd rax, dword [rsp]
mov ecx, dword [rsp + 0x24]
mov dword [rsp + rax*4 + 0x40], ecx
jmp 0x140046857
mov dword [rsp], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
jmp 0x1400468e6
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x14]
cmp dword [rsp + 8], eax
jge 0x1400469af
mov eax, dword [rsp]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp], eax
movsxd rax, dword [rsp]
mov eax, dword [rsp + rax*4 + 0x40]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 4]
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + rcx*4 + 0x40], eax
movsxd rax, dword [rsp]
mov ecx, dword [rsp + 0x28]
mov dword [rsp + rax*4 + 0x40], ecx
movsxd rax, dword [rsp]
movsxd rcx, dword [rsp + 4]
mov eax, dword [rsp + rax*4 + 0x40]
add eax, dword [rsp + rcx*4 + 0x40]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov eax, dword [rsp + rax*4 + 0x40]
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x850]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 0x2c]
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x850]
mov byte [rdx + rcx], al
jmp 0x1400468dc
mov rax, qword [rsp + 0x850]
add rsp, 0x848
ret
Function at 0x1400469c0
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140046a00
xor al, al
jmp 0x140046bc0
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140046a57
lea r8, [rsp + 0x88]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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 + 0xd0]
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 + 0xc8]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140046afc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x140046afc
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140046bc0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x140046b34
xor al, al
jmp 0x140046bc0
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140046b6f
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140046bc0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140046b8a
mov byte [rsp + 0x70], 1
jmp 0x140046b8f
mov byte [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x71], al
movzx eax, byte [rsp + 0x71]
test eax, eax
jne 0x140046ba5
xor al, al
jmp 0x140046bc0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
add rsp, 0xb8
ret
Function at 0x140046bd0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140046bfa
xor al, al
jmp 0x140046c64
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140046c2c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x140046c64
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
add rsp, 0x58
ret

Function at 0x1400478f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004793e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004793e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004793e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004793e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004793e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140047940
xor al, al
add rsp, 0x28
ret

Function at 0x14004e32c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004e197
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004e197
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004e197
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004e197
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004e197
cmp dword [rcx + 0x84], 0xe
jbe 0x14004e197
cmp dword [rcx + 0xf8], 0
je 0x14004e197
mov ecx, ebx
call fcn.14004e248
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004e024
nop
cmp dword [rbp + 0x20], 0
je 0x14004e1e5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004e1f0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004e128
Function at 0x140058140
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, [0x1400a91c0]
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 0x140058197
cmp word [rdx], r13w
jne 0x140058197
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005819c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400582c1
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400582e2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400581d5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400581fc
cmp r9, r8
jae 0x14005820c
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 0x1400581b6
jmp 0x1400582c1
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 0x1400582b6
cmp dword [rsp + 0x80], esi
je 0x1400582b6
lea r8, [0x1400a91c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005828e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005825e
mov word [rbx], r13w
jmp 0x1400582be
mov ecx, recv
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 0x14005826b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400582be
cmp word [rsp + 0x70], r13w
jne 0x14005829b
cmp rbx, r14
je 0x140058258
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140058c80
cmp word [rsp + 0x70], r13w
je 0x1400582c1
mov ecx, recv
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, [0x1400a91c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400582bb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400582c1
Function at 0x14005c580
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005c596
mov al, 1
jmp 0x14005c5f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005c5a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005c5f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005fa4c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005c5f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005c5f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005c5f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005c5f6
xor al, al
add rsp, 0x20
pop rbx
ret