joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ed00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404303
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409e20
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046cf00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4042e0
cmp byte [0x005f1a2d], 0
je 0x46ed15
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x46bf40
jmp 0x4042e0

Function at 0x46ed20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005f1d28]
mov eax, dword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f1d20]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f1a2d], 0
je 0x46ed55
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005f2060]
aesenc xmm0, xmmword [0x005f2070]
aesenc xmm0, xmmword [0x005f2080]
movq rax, xmm0
ret
jmp 0x40a000

Function at 0x46ed60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005f1d28]
mov rax, qword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005f1d20]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005f1a2d], 0
je 0x46ed96
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005f2060]
aesenc xmm0, xmmword [0x005f2070]
aesenc xmm0, xmmword [0x005f2080]
movq rax, xmm0
ret
jmp 0x40a040

Function at 0x470b40
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x470b74
mov rcx, 0x28
jmp 0x470b7f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005f1c50], rcx
pop rbp
ret
Function at 0x4892a0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4899df
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4892cd
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x489551
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x48957d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x00510180]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004c6880]
lea rbx, [0x0050eb70]
call fcn.004675c0
inc rax
cmp rax, r8
jge 0x4895a2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4895d7
lea rdi, [0x004c6900]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4892c3
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4895bb
jmp 0x489590
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046cf00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.004892a0

Function at 0x489b80
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x489b97
inc rax
cmp rax, 4
jge 0x489baf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x489b94
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x489bc0
inc rax
cmp rax, 4
jge 0x489bce
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x489bf7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x489bdb
jmp 0x489bbd
Function at 0x48f5e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48f6aa
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403820
xorps xmm15, xmm15
mov r14, qword [0x005f1c50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48f68f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004c6980]
xor ebx, ebx
mov rcx, rdx
call fcn.00468960
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.004904a0
inc rbx
cmp rcx, rbx
jae 0x48f67e
mov edi, 1
lea rsi, [0x004c6980]
call fcn.00468a40
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0050ecb8]
lea rsi, [0x0050e3b8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046cf00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0048f5e0

Function at 0x49f9a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49fa4c
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x61], dil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], cl
call fcn.00403820
xorps xmm15, xmm15
mov r14, qword [0x005f1c50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x49fa13
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.0044f780
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x49fa26
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x49fa39
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x49fa23
mov byte [rax + rcx], dl
jmp 0x49fa23
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.004693a0
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], cl
mov byte [rsp + 0x19], dil
nop
call fcn.0046cf00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp fcn.0049f9a0
Function at 0x180003710
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov ebx, r9d
mov dword [rsp + 0x20], 0xf0000000
mov rdi, r8
lea rcx, [rsp + 0x30]
mov ebp, 1
xor r8d, r8d
mov r9d, ebp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180003760
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x18001daf0]
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, 0x94
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x18000374e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x18000374e
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x18000374e
mov r9, qword [rsp + 0x38]
xor bl, bl
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
mov rcx, qword [rsp + 0x50]
test eax, eax
movzx ebx, bl
cmovne ebx, ebp
test rcx, rcx
je 0x180003812
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180003824
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x60]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180003840
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
xor r15d, r15d
lea rcx, [0x18001fef0]
mov rdi, r8
mov qword [rsp + 0x30], r15
mov r14, rdx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea r8d, [r15 + 1]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000389c
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x40], rbp
mov rcx, rsi
mov qword [rsp + 0x88], r15
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebp, dword [rsp + 0x88]
mov ecx, 0x40
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
jne 0x1800038f1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x78], rbx
mov ebx, ebp
mov dword [rdi], r15d
test ebp, ebp
jle 0x18000392e
nop
mov rdx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov dword [rsp + 0x70], r15d
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x18000392e
add dword [rdi], eax
sub ebx, eax
test ebx, ebx
jg 0x180003900
mov rcx, rsi
mov rbx, qword [rsp + 0x78]
cmp dword [rdi], ebp
je 0x18000395b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x40]
xor al, al
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x40]
mov al, 1
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
ret

Function at 0x180003bb0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbx
sub rsp, 0x50
xor ecx, ecx
mov dword [r11 + 0x28], 1
lea rax, [r11 + 0x28]
mov qword [r11 + 0x18], rcx
mov qword [r11 - 0x18], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkPlatformLocation_Awareness
lea rax, [r11 + 0x18]
mov rbx, r9
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x180003c40
mov rcx, qword [rsp + 0x70]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], 0x380
lea rdx, str.LastBackup
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
test eax, eax
je 0x180003c48
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x50
pop rbx
ret
Function at 0x180004620
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x3e0
mov rax, qword [0x18001c008]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
movdqa xmm0, xmmword [str.F147EC_C7F5_F89_]
lea r8, [r11 - 0x38]
mov edx, 1
mov dword [r11 - 0x28], 0x394a2d41
xor ecx, ecx
mov dword [r11 - 0x24], 0x44353941
movdqu xmmword [r11 - 0x38], xmm0
mov word [r11 - 0x20], 0x7d
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
test rbx, rbx
je 0x18000469f
test al, al
je 0x1800046ba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.1800058d0
add rsp, 0x3e0
pop rbx
ret
lea rax, [rsp + 0x30]
mov edx, 7
lea rcx, str.MicrosoftTimeHost
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1800046d0
xor eax, eax
lea rdx, [0x18001fef0]
nop dword [rax]
movzx ecx, byte [rsp + rax + 0xf0]
mov byte [rax + rdx], cl
inc rax
test cl, cl
jne 0x180004730
lea r9, [rsp + 0x30]
call fcn.180003bb0
mov al, 1
jmp 0x1800046a1

Function at 0x180004990
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
test rcx, rcx
je 0x180004a1b
cmp qword [0x18001fee0], 0
mov qword [rsp + 0x48], rbx
jne 0x1800049c8
mov ecx, 8
call fcn.1800058f4
lea rdx, vtable.PluginProvider.0
mov qword [0x18001fee0], rax
mov qword [rax], rdx
mov ecx, 8
call fcn.1800058f4
mov rcx, qword [0x18001fee0]
mov rbx, rax
mov qword [rax], rcx
mov ecx, 0x10
call fcn.1800058f4
xor edx, edx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea r8, [0x180004980]
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov qword [rax + 8], rdi
mov r9, rax
mov qword [rax], rbx
mov dword [rsp + 0x40], edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x180004a30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link function at runtime on windows

Disassembly:
push rbx
push r12
push r14
push r15
sub rsp, 0x28
mov rbx, qword [rcx + 8]
mov r12, rcx
xor ecx, ecx
mov r8d, 0x3000
movsxd r15, dword [rbx + 0x3c]
add r15, rbx
lea r9d, [rcx + 0x40]
mov edx, dword [r15 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x180004c22
xor eax, eax
mov r10d, eax
cmp ax, word [r15 + 6]
jae 0x180004ac4
lea r9, [r15 + 0x11c]
nop
mov ecx, dword [r9 - 8]
mov edx, dword [r9]
add rcx, r14
mov r8d, dword [r9 - 4]
add rdx, rbx
test r8d, r8d
je 0x180004ab3
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8d, 1
jne 0x180004aa0
movzx eax, word [r15 + 6]
inc r10d
add r9, 0x28
cmp r10d, eax
jl 0x180004a80
cmp dword [r15 + 0xb4], 0
je 0x180004b44
mov eax, dword [r15 + 0xb0]
mov r11, r14
sub r11, qword [r15 + 0x30]
add rax, r14
mov ecx, dword [rax]
test ecx, ecx
je 0x180004b44
nop word [rax + rax]
mov r9d, dword [rax + 4]
lea rbx, [rax + 8]
sub r9, 8
mov r10d, ecx
shr r9, 1
add r10, r14
test r9d, r9d
je 0x180004b36
mov rcx, rbx
mov r8d, r9d
movzx eax, word [rcx]
mov edx, eax
shr eax, 0xc
and edx, 0xfff
cmp eax, 3
je 0x180004b28
cmp eax, 0xa
jne 0x180004b2c
add qword [rdx + r10], r11
add rcx, 2
sub r8, 1
jne 0x180004b10
mov eax, r9d
mov ecx, dword [rbx + rax*2]
lea rax, [rbx + rax*2]
test ecx, ecx
jne 0x180004af0
cmp dword [r15 + 0x94], 0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x20], r13
je 0x180004bda
mov esi, dword [r15 + 0x90]
add rsi, r14
cmp dword [rsi], 0
je 0x180004bda
movabs r13, 0x8000000080000000
nop dword [rax + rax]
mov ecx, dword [rsi + 0xc]
add rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
je 0x180004c0e
mov ebx, dword [rsi]
mov edi, dword [rsi + 0x10]
add rbx, r14
add rdi, r14
cmp dword [rbx], 0
je 0x180004bd1
mov rax, qword [rbx]
mov rcx, rbp
test r13, rax
jne 0x180004bb8
lea rdx, [r14 + 2]
add rdx, rax
jmp 0x180004bbb
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi], rax
add rbx, 8
add rdi, 8
cmp dword [rbx], 0
jne 0x180004ba4
add rsi, 0x14
cmp dword [rsi], 0
jne 0x180004b80
mov edx, dword [r15 + 0x50]
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov dword [rsp + 0x50], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [r15 + 0x28]
mov edx, 1
mov r8, qword [r12]
add rax, r14
xor ecx, ecx
call rax
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
pop r15
pop r14
pop r12
pop rbx
ret
Function at 0x1800052e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x268
mov rax, qword [0x18001c008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor eax, eax
lea rdx, str.SYSTEMCurrentControlSetServices_
mov r8d, 0x1f4
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], eax
call fcn.180009cb0
lea rax, [rsp + 0x50]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x180005323
lea r8, [0x180020000]
xor edx, edx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x180005340
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1800053c6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x260], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Type
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800058d0
add rsp, 0x268
ret

Function at 0x1800053f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x18001c008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov r8d, 0x1f4
lea rdx, str.SYSTEMCurrentControlSetServices_
call fcn.180009cb0
lea rax, [rsp + 0x40]
dec rax
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x180005436
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x180005450
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1800054b7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
lea rdx, str.Type
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x120
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800058d0
add rsp, 0x250
pop rbx
ret
Function at 0x1800054f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x18001c008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
lea rcx, [0x180020000]
mov rdx, qword [rdx]
mov r8d, 0x104
call fcn.180009cb0
mov rdx, qword [rbx]
lea rcx, [0x180020000]
mov r8d, 0x104
call fcn.18000a148
lea rdx, [0x180005700]
lea rcx, [0x180020000]
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
mov qword [0x18001fff8], rax
test rax, rax
je 0x18000566d
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rcx, qword [0x18001fff8]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x40], ebx
mov dword [0x18001feec], 2
mov dword [rsp + 0x34], 2
mov qword [rsp + 0x38], 5
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x48], 0x3e8
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, qword [0x18001fff8]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x20
mov dword [0x18001feec], 4
mov dword [rsp + 0x54], 4
mov qword [rsp + 0x58], 5
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], 0x3e8
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call fcn.1800052e0
lea r9, [0x180020000]
mov qword [rsp + 0x28], rbx
lea r8, [0x180005210]
mov dword [0x18001fee8], eax
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
nop dword [rax + rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x18001feec]
cmp ecx, 3
je 0x18000563b
cmp ecx, 1
jne 0x180005620
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x18001fee8], 0x120
jne 0x18000566d
nop dword [rax]
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180005660
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1800058d0
add rsp, 0x80
pop rbx
ret

Function at 0x180005bd8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180005c69
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180005c69
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180005c69
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180005c4d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180005c47
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180005c4f
add rdx, 0x28
jmp 0x180005c2c
xor edx, edx
test rdx, rdx
jne 0x180005c58
xor al, al
jmp 0x180005c6f
test dword [rdx + 0x24], 0x80000000
je 0x180005c65
xor al, al
jmp 0x180005c6f
mov al, 1
jmp 0x180005c6f
xor al, al
jmp 0x180005c6f
add rsp, 0x18
ret
Function at 0x1400243b4
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
push r15
mov rax, 0x8c
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400243c8
sub rsp, 0x28
call fcn.14004a6b0
mov rdx, qword [rsp + 0x4a8]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14004a720
add rsp, 0x10
mov dword [0x140106001], 0x4000096
mov dword [0x140106001], 0x400009a
push qword [rsp + 0x4a0]
push 0x18
pop rcx
pop rdx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x468], rax
mov dword [0x140106001], 0x400009b
cmp qword [rsp + 0x468], 0
je 0x1400245ba
mov dword [0x140106001], 0x400009c
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x438
mov dword [0x140106001], 0x400009d
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x470]
pop rcx
pop rdx
call sub.KERNEL32.dll_Module32FirstW
mov qword [rsp + 0x470], rax
mov dword [0x140106001], 0x400009e
cmp qword [rsp + 0x470], 0
je 0x1400245a3
mov dword [0x140106001], 0x400009f
push rcx
sub rsp, 0x28
call fcn.14004a290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push 1
push 1
push qword [rsp + 0x48]
push rcx
sub rsp, 0x20
call fcn.14004a290
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.14004a290
add rsp, 0x28
pop rcx
push rax
lea rbp, [rsp + 0x68]
lea rax, [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140048da0
add rsp, 0x20
push rax
call fcn.14004a4c0
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140047b50
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140029c04
add rsp, 0x28
pop rax
and rax, rax
je 0x140024561
mov dword [0x140106001], 0x40000a0
lea rbp, [rsp + 0x30]
push qword [rbp + 0x18]
pop rax
mov qword [rsp + 0x478], rax
mov dword [0x140106001], 0x40000a1
jmp 0x1400245a3
mov dword [0x140106001], 0x40000a2
mov dword [0x140106001], 0x40000a3
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x470]
pop rcx
pop rdx
call sub.KERNEL32.dll_Module32NextW
mov qword [rsp + 0x470], rax
mov dword [0x140106001], 0x40000a4
jmp 0x140024483
mov dword [0x140106001], 0x40000a5
push qword [rsp + 0x468]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x140106001], 0x40000a6
mov dword [0x140106001], 0x40000a8
mov rax, qword [rsp + 0x478]
jmp 0x1400245e5
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14004a790
add rsp, 0x28
pop rax
add rsp, 0x488
pop r15
pop rbp
ret