joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008a40
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0x10]
mov eax, eax
mov qword [rsp + 0x80], rax
jmp 0x140007e40
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x80], rax
jmp 0x140007e40
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb4]
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.14000a4e6
jmp 0x14000546c
lea rcx, [rsp + 0xb0]
mov rax, qword [rsp + 0x30]
call qword [rax + 0x60]
jmp 0x14000a2cb
mov ecx, 0xc1
call qword [0x140070b7e]
xor eax, eax
jmp 0x14000870a
mov ecx, 0xc1
call qword [0x140070d2b]
xor eax, eax
jmp 0x14000870a
cmp qword [rsp + 0x40], rax
je 0x14000669e
jmp 0x1400050ab
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x48], eax
jae 0x140006912
jmp 0x140007b9a
cmp qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 0
jne 0x1400049a4
jmp 0x140006b0b
lea rcx, [rsp + 0xb0]
call qword [0x140072644]
jmp 0x14000a2cb
mov ecx, 0xc1
call qword [0x140072a67]
xor eax, eax
jmp 0x14000870a
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x48], eax
jae 0x140006912
jmp 0x140007b9a
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x38]
and eax, 1
test eax, eax
je 0x140009931
jmp 0x140006e63
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jne 0x1400043a3
jmp 0x1400044b1
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 4]
cmp eax, 0x8664
je 0x140007b13
jmp 0x14000a152
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x80], rax
ja 0x140009146
jmp 0x1400098e9
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
je 0x140007e07
jmp 0x1400050e4
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
jmp 0x14000629b
jmp 0x14000629b
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x38]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x48], 0
jmp 0x1400077f4
mov ecx, 0xc1
call qword [0x140075d77]
xor eax, eax
jmp 0x14000870a
mov eax, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x50]
mov edx, eax
call fcn.14000a4e6
jmp 0x140004531

Function at 0x140009576
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x14000a302
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x1400096d3
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009870]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009880]
mov dword [rax], 1
mov rax, qword [0x140009890]
mov dword [rax], 1
mov rax, qword [0x140009820]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009860]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140009940]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009920]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400097d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014a4
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call dbg.__main
lea rax, str.Downloading_native_cord_source_code_n
mov rcx, rax
call sym.printf
lea rax, str.git_clone_https:__github.com_n1d3v_naticord.git
mov rcx, rax
call sym.system
lea rax, str.Installing_requirements_n
mov rcx, rax
call sym.printf
lea rax, str.python__m_pip_install_pyqt5_requests_aiohttp
mov rcx, rax
call sym.system
lea rax, str.Running_native_cord
mov rcx, rax
call sym.printf
lea rax, str.cd_naticord__python_naticord.py
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1400017e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001850
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
mov rbx, rcx
test esi, esi
jle 0x140001980
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000189b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001925
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001880
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400019a2
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001987
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000191e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001930
add dword [0x14000c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000c098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000191e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400018a8
mov rax, qword [0x14000c098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140001f8c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140001f83
test eax, eax
jne 0x140001f83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400021d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000221d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002214
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000221f
add rax, 0x28
cmp rax, r9
jne 0x140002200
xor eax, eax
ret

Function at 0x140002220
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022b0
mov rdx, qword [0x140009820]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000229e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000229e
cmp word [rax + 0x18], 0x20b
jne 0x14000229e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400022b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002289
add rbx, 0x28
cmp rbx, rdi
je 0x1400022b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002280
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140009820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000233d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002334
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009820]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000235f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009820]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400023f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023e7
test rcx, rcx
je 0x1400023a0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400023d8
xor eax, eax
ret
Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009820]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000241f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002428
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140009820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002460
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002468
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002460
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002460
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400024b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400024c0
add rdx, 0x28
cmp rdx, r9
jne 0x1400024a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140009820]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002500
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400024f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002555
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002568
add rdx, 0x28
cmp r10, rdx
jne 0x140002540
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002577
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002587
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000255e
test ecx, ecx
jg 0x140002570
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000104c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x140006700], rdi
je 0x14000109a
cmp rax, rdi
jne 0x14000108d
mov edi, 1
mov r12d, edi
jmp 0x14000109f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001071
mov edi, 1
mov eax, dword [0x1400066f8]
cmp eax, edi
jne 0x1400010b5
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140001112
mov eax, dword [0x1400066f8]
test eax, eax
jne 0x14000110c
mov dword [0x1400066f8], edi
lea r13, [0x140004360]
lea rsi, [0x140004348]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x1400010fe
test eax, eax
jne 0x1400010fe
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400010f3
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1400010dc
test eax, eax
je 0x140001112
mov eax, 0xff
jmp 0x1400011e4
mov dword [0x140006504], edi
mov eax, dword [0x1400066f8]
cmp eax, edi
jne 0x140001139
lea rdx, [0x140004340]
lea rcx, [0x140004330]
call sub.msvcrt.dll__initterm
mov dword [0x1400066f8], 2
test r12d, r12d
jne 0x140001147
xor eax, eax
xchg qword [0x140006700], rax
cmp qword [0x140006708], 0
je 0x140001170
lea rcx, [0x140006708]
call fcn.1400013b8
test eax, eax
je 0x140001170
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140006708]
mov r8, qword [0x1400064e8]
mov rdx, qword [0x1400064f0]
mov ecx, dword [0x1400064e0]
call fcn.140001604
mov dword [0x140006500], eax
cmp dword [0x1400064e4], 0
jne 0x1400011a0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140006504], 0
jne 0x1400011b5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140006500]
jmp 0x1400011e4
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.1400014a0
add rsp, 0x28
jmp 0x14000104c

Function at 0x140001400
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14000144d
cmp rcx, 0xffffffffffffffff
je 0x14000144d
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001445
cmp dword [rcx + 0x3c], edx
jl 0x140001445
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001445
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 0x14000144d
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001b80
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x90
mov rdi, r9
mov r15, rcx
mov rsi, r8
mov r14, rdx
mov ebx, 5
lea rcx, [rbp - 9]
lea r9d, [rbx + 0x13]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor r13d, r13d
test eax, eax
je 0x140001cc9
lea r8d, [rbx + 0x27]
lea rcx, [rbp - 1]
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 9]
lea rax, [rbp - 0x11]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 0x27]
lea rdx, [rbp - 1]
movups xmmword [rbp + 0xb], xmm0
movups xmmword [rbp + 0x1b], xmm1
xor r9d, r9d
mov dword [rbp - 1], 0x208
mov dword [rbp + 3], 0x6610
mov dword [rbp + 7], 0x20
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140001cbd
mov rcx, qword [rbp - 0x11]
lea r15d, [rbx - 4]
lea r8, [rbp - 0x19]
lea edx, [rbx - 1]
xor r9d, r9d
mov dword [rbp - 0x19], r15d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140001cb3
mov rcx, qword [rbp - 0x11]
xor r9d, r9d
mov r8, r14
mov edx, r15d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140001cb3
mov rcx, qword [rbp - 0x11]
xor r9d, r9d
xor edx, edx
mov r8d, r15d
cmp dword [rbp + 0x7f], r13d
je 0x140001c9c
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
jmp 0x140001cac
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001cb3
mov ebx, r13d
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 9]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140001cec
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov edi, edx
mov ebx, 5
lea rcx, [rax + 0x18]
lea r9d, [rbx + 0x13]
xor r8d, r8d
xor edx, edx
mov dword [rax - 0x18], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebp, ebp
test eax, eax
je 0x140001d4c
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmovne ebx, ebp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001e60
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x290
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ebx, ebx
mov rdi, rax
test rax, rax
jne 0x140001e9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
jmp 0x140001fd7
lea rdx, [rsp + 0x180]
mov r8d, 0x105
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x70]
mov eax, 0x22
dec rcx
mov word [rsp + 0x70], ax
inc rcx
cmp byte [rcx], bl
jne 0x140001ec7
lea r8, [rsp + 0x180]
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140001ed8
lea rcx, [rsp + 0x70]
dec rcx
inc rcx
cmp byte [rcx], bl
jne 0x140001eee
movzx eax, word [0x140004394]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov word [rcx], ax
lea rax, [rsp + 0x70]
mov esi, 2
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r8, [0x140006920]
lea rdx, [0x140006a60]
mov r9d, 0xf01ff
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x140001f71
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ebx, [rsi - 4]
jmp 0x140001fd7
lea rdx, [0x140006a60]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x140001fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ebx, [rsi - 3]
jmp 0x140001fd7
lea rax, [0x140006720]
lea r8, [rsp + 0x2a8]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x2a8], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x290]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002634
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 8], ecx
push rbp
push r13
push r14
mov rbp, rsp
sub rsp, 0x60
or ebx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov r14d, eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
jne 0x140002681
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400027db
lea rdx, [0x140006a60]
mov r8d, 0x2c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x1400026ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [rdi - 2]
jmp 0x1400027d2
lea rax, [rbp + 0x20]
lea r8, [rbp - 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400026da
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400027c9
cmp dword [rbp - 0x2c], 1
je 0x1400027c7
cmp dword [rbp - 0x2c], 3
jne 0x14000275b
mov r13d, 0x2710
mov eax, 0xcccccccd
mul dword [rbp - 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000270a
mov edx, 0x3e8
jmp 0x140002711
cmp edx, r13d
cmova edx, r13d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0x20]
lea r8, [rbp - 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400026cf
cmp dword [rbp - 0x2c], 1
je 0x1400027c7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x7530
ja 0x1400027c9
cmp dword [rbp - 0x2c], 3
je 0x1400026f0
call fcn.1400027f8
lea r8, [rbp - 0x30]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400026cf
jmp 0x1400027c1
mov ecx, dword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rbp + 0x20]
lea r8, [rbp - 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400026cf
cmp dword [rbp - 0x2c], 1
je 0x1400027c7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x7530
ja 0x1400027c9
cmp dword [rbp - 0x2c], 1
jne 0x14000277c
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret