joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000dca8
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x10000ddff
lea rdx, [0x1000016a0]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x10000ddcb
lea r8d, [rbx + 0x1c]
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10000dd6c
mov dword [rsp + 0x24], 4
jmp 0x10000dd3f
mov eax, esi
inc esi
cmp eax, 5
jge 0x10000dd5c
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x10000dd60
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10000dd2d
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x10000ddaa
mov ebx, 0x80004005
jmp 0x10000ddc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ebx, eax
sub edx, 0x41c
je 0x10000dda1
sub edx, 8
je 0x10000dd9d
sub edx, 2
je 0x10000dd9d
cmp edx, 0xf
je 0x10000dd9d
lea rcx, [0x1000031c0]
mov edx, eax
call fcn.10000a81c
jmp 0x10000dda6
xor ebx, ebx
jmp 0x10000ddaa
mov ebx, 0x652
test ebx, ebx
jne 0x10000ddc0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, 1
je 0x10000ddc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000ddf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov ebx, eax
sub ecx, 0x424
je 0x10000ddf2
cmp ecx, 0xc
je 0x10000ddf2
lea rcx, [0x1000031f0]
mov edx, eax
call fcn.10000a81c
jmp 0x10000ddf4
xor ebx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000de15
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100003218]
mov edx, eax
mov ebx, eax
call fcn.10000a81c
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x10000de34
Capabilities:
Create service

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0x4a0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rcx, [r11 - 0x236]
xor r12d, r12d
xor edx, edx
mov r8d, 0x20c
mov word [r11 - 0x238], r12w
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x280]
mov r8d, 0x103
xor ecx, ecx
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, r12d
jne 0x10000dea9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000e09d
mov esi, 0x20
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x280]
lea eax, [rsi + 0xf]
mov edx, 0x107
mov word [rsp + 0x486], r12w
mov word [rsp + 0x72], ax
lea eax, [rsi + 0x36]
mov word [rsp + 0x70], si
mov word [rsp + 0x74], ax
mov word [rsp + 0x76], r12w
call fcn.100004e28
cmp eax, r12d
jl 0x10000e09d
lea rcx, [rsp + 0x82]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x80], r12w
call sub.msvcrt.dll_memset
lea ebx, [rsi - 5]
or r15, 0xffffffffffffffff
lea r8, [rsp + 0x80]
mov edx, ebx
mov r9d, 0x100
mov rcx, r15
mov word [rsp + 0x20], r12w
call sub.msi.dll_MsiDecomposeDescriptorW
lea ecx, [rsi - 0x17]
cmp eax, r12d
jne 0x10000df5a
mov word [rsp + 0x20], cx
lea r8, [rsp + 0x80]
mov r9d, 0x100
mov edx, ebx
mov rcx, r15
call sub.msi.dll_MsiDecomposeDescriptorW
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
cmp rax, r12
je 0x10000e093
mov ebx, r12d
cmp edi, r12d
je 0x10000df89
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r12
lea rax, [0x100001640]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x280]
lea r8, [rsp + 0x80]
lea rdx, [0x1000016a0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9d, 0xf01ff
mov rcx, rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rsi, rax
cmp rax, r12
jne 0x10000e016
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x430
jne 0x10000e088
mov ecx, edi
inc edi
cmp ecx, 0xe
jge 0x10000e088
mov esi, 0x20
jmp 0x10000df76
lea r8, [rsp + 0x80]
mov r9d, 0x100
mov edx, 0x20
mov rcx, r15
mov word [rsp + 0x20], r12w
call sub.msi.dll_MsiDecomposeDescriptorW
cmp eax, r12d
jne 0x10000e05f
mov eax, 9
lea r8, [rsp + 0x80]
mov r9d, 0x100
lea edx, [rax + 0x12]
mov rcx, r15
mov word [rsp + 0x20], ax
call sub.msi.dll_MsiDecomposeDescriptorW
lea rax, [rsp + 0x80]
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x70], rax
call qword [0x10001a5c8]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000e09b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1000170f0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x10000e260
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc70
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xc60], rax
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
xor r8d, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, esi
je 0x10000e2b1
cmp eax, 2
sete al
jmp 0x10000e3df
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x3e8
call sub.msvcrt.dll_memset
mov ebp, 0x1f4
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x40], ebp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x50], rax
jmp 0x10000e306
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.10000e260
cmp al, sil
je 0x10000e3a2
mov eax, dword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
je 0x10000e2e1
mov rcx, qword [rsp + 0x48]
cmp eax, 0x103
jne 0x10000e3a7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
cmp eax, esi
je 0x10000e3c7
lea rcx, [rsp + 0x452]
xor edx, edx
mov r8d, 0x800
mov word [rsp + 0x450], si
call sub.msvcrt.dll_memset
lea r8, [0x1000032a0]
lea rcx, [rsp + 0x450]
mov r9, rdi
mov edx, 0x401
call fcn.100004f60
cmp eax, esi
jl 0x10000e3ad
lea rcx, [rsp + 0x450]
mov edx, ebx
call fcn.10000a81c
jmp 0x10000e3ad
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], ebp
jle 0x10000e3c3
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10000e3c3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x10000e3df
cmp dword [rsp + 0x58], ebp
jle 0x10000e3dd
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x10000e3dd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.1000170f0
mov rbx, qword [rsp + 0xca0]
add rsp, 0xc70
pop rdi
pop rsi
pop rbp
ret
Function at 0x100016ac0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], di
call sub.msvcrt.dll_memset
lea ebp, [rdi + 0x5c]
cmp rbx, rdi
je 0x100016b38
cmp word [rbx], di
je 0x100016b38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x100016b38
cmp word [rbx], 0x7f
jae 0x100016b2d
cmp word [rbx + 2], 0x3a
je 0x100016ba2
cmp word [rbx], bp
jne 0x100016b38
cmp word [rbx + 2], bp
je 0x100016ba2
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x100016ba2
lea ecx, [rax + 2]
cmp ecx, esi
ja 0x100016ba2
mov ecx, eax
inc eax
mov r8, rbx
mov word [rsp + rcx*2 + 0x20], bp
lea rcx, [rsp + 0x20]
mov rdx, rsi
mov word [rsp + rax*2 + 0x20], di
call fcn.100004e28
cmp eax, edi
jl 0x100016ba2
lea r8, [0x100004ce0]
lea rcx, [rsp + 0x20]
mov rdx, rsi
call fcn.100004e28
cmp eax, edi
setge al
cmp al, dil
je 0x100016ba2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100016ba4
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1000170f0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x100016cc8
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rdx], 0
lea rcx, [rsp + 0x20]
mov r8d, 0x114
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x100016d2f
cmp dword [rsp + 0x24], 5
ja 0x100016d20
jne 0x100016d2f
cmp dword [rsp + 0x28], 1
jb 0x100016d2f
lea rcx, [0x100003c38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100016d3b
lea rcx, [0x100003c38]
call fcn.100016ac0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1000170f0
add rsp, 0x158
ret
Function at 0x1000170f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10001a100]
jne 0x10001710b
rol rcx, 0x10
test cx, 0xffff
jne 0x100017107
ret 0
ror rcx, 0x10
jmp 0x100017530
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10001d130]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x10001d228]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1000175b5
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, [0x10001d130]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x1000175d7
mov rax, qword [rsp + 0x88]
mov qword [0x10001d228], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x10001d1c8], rax
mov rax, qword [0x10001d228]
mov qword [0x10001d0a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x10001d1b0], rax
mov dword [0x10001d090], 0xc0000409
mov dword [0x10001d094], 1
mov rax, qword [0x10001a100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10001a108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000015d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x1000173cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100017419
cmp rcx, 0xffffffffffffffff
je 0x100017419
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100017411
cmp dword [rcx + 0x3c], edx
jl 0x100017411
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100017411
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100017419
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180003960
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 1
jne 0x1800039aa
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180003750]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0xc
mov dword [rsp], 0
jmp 0x180003bf7
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 8
jge 0x180003c44
mov eax, dword [rsp]
sub eax, 0x24f6f2d7
cdqe
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
jmp 0x180003bef
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x180003c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0x6f
mov dword [rsp], 0
jmp 0x180003c87
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xe
jge 0x180003cd4
mov eax, dword [rsp]
sub eax, 0x32f514f9
cdqe
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
jmp 0x180003c7f
mov eax, 1
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x180007cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0x7a
mov dword [rsp], 0
jmp 0x180007cf7
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xd
jge 0x180007d44
mov eax, dword [rsp]
sub eax, 0x125f06a1
cdqe
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
jmp 0x180007cef
mov eax, 1
imul rax, rax, 0xd
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x180012330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 2
mov dword [rsp], 0
jmp 0x180012357
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xe
jge 0x1800123a4
mov eax, dword [rsp]
sub eax, 0x342c6047
cdqe
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
jmp 0x18001234f
mov eax, 1
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x1800128a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0x45
mov dword [rsp], 0
jmp 0x1800128c7
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0x10
jge 0x180012914
mov eax, dword [rsp]
sub eax, 0x2438e8ea
cdqe
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
jmp 0x1800128bf
mov eax, 1
imul rax, rax, 0x10
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x180012930
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0x31
mov dword [rsp], 0
jmp 0x180012957
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 0xe
jge 0x1800129a4
mov eax, dword [rsp]
sub eax, 0x1d21bb00
cdqe
mov rcx, qword [rsp + 0x28]
movsx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
jmp 0x18001294f
mov eax, 1
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1800129c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x18005b080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x21], 0xf
movzx eax, byte [rsp + 0x88]
movzx ecx, byte [rsp + 0x21]
cmp eax, ecx
jge 0x180012a06
xor eax, eax
jmp 0x180012b61
mov byte [rsp + 0x38], 0xf8
mov byte [rsp + 0x39], 0xff
mov byte [rsp + 0x3a], 0x25
mov byte [rsp + 0x3b], 0
mov byte [rsp + 0x3c], 0
mov byte [rsp + 0x3d], 0
mov byte [rsp + 0x3e], 0
mov byte [rsp + 0x3f], 0
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x41], 0
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x43], 0
mov byte [rsp + 0x44], 0
mov byte [rsp + 0x45], 0
mov byte [rsp + 0x46], 0
movzx eax, byte [rsp + 0x88]
add rax, 0xf
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x88]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x78]
call fcn.1800123c0
movzx eax, byte [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x3f], rax
movzx eax, byte [rsp + 0x88]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x78]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [rsp + 0x88]
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x38]
lea rdi, [rcx + rax]
mov rsi, rdx
mov ecx, 0xf
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x3f], rax
lea rax, [rsp + 0x38]
mov rdi, qword [rsp + 0x78]
mov rsi, rax
mov ecx, 0xf
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x20], al
jmp 0x180012b1d
movzx eax, byte [rsp + 0x20]
inc al
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
movzx ecx, byte [rsp + 0x88]
cmp eax, ecx
jge 0x180012b3e
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
mov byte [rcx + rax], 0x90
jmp 0x180012b12
movzx eax, byte [rsp + 0x88]
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov edx, eax
mov rcx, qword [rsp + 0x78]
call fcn.1800123c0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180017000
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x180012e90
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x401
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x38
ret
Function at 0x1800135e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x18005b080]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x80], 0
jg 0x180013614
xor eax, eax
jmp 0x1800137c1
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x18001363c
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.180010220
jmp 0x1800137c1
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x70]
call fcn.180010b80
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1800136d9
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.180003210
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x70]
call fcn.180010d50
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.180007960
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.180010cb0
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x1800137b1
mov rcx, qword [rsp + 0x70]
call fcn.1800146f0
mov qword [rsp + 0x38], 0xfff
cmp qword [rsp + 0x40], 0xfff
jbe 0x180013779
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1800218cc
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0xfff
je 0x180013777
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1800137c1
jmp 0x1800136ff
cmp qword [rsp + 0x40], 0
jbe 0x1800137b1
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.1800218cc
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180017000
add rsp, 0x68
ret