joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180076ba0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [rsp + 0xb8]
mov qword [r11 - 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [r11 - 0x48], rax
mov rax, qword [rsp + 0xa8]
mov qword [r11 - 0x50], rax
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x58], rax
call fcn.1800734a0
mov rax, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
mov r12, qword [rsp + 0xe8]
mov r14, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xd0]
mov r9, r14
mov rdi, qword [rsp + 0xc8]
mov r8, rsi
mov rbx, qword [rsp + 0xc0]
mov rdx, rdi
mov r15, qword [rsp + 0xe0]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
call fcn.1800735c0
vmovdqu32 zmm3, zmmword [rbx]
mov r9, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0xa0]
vpmaxsd zmm1, zmm3, zmmword [r9]
vmovdqu32 zmmword [rbx], zmm1
vpminsd zmm0, zmm3, zmmword [r9]
vmovdqu32 zmmword [r9], zmm0
vmovdqu32 zmm4, zmmword [rdi]
vpmaxsd zmm0, zmm4, zmmword [r8]
mov r10, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r11, qword [rsp + 0x90]
vmovdqu32 zmmword [rdi], zmm0
vpminsd zmm1, zmm4, zmmword [r8]
vmovdqu32 zmmword [r8], zmm1
vmovdqu32 zmm3, zmmword [rsi]
vpmaxsd zmm1, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rsi], zmm1
vpminsd zmm0, zmm3, zmmword [rdx]
vmovdqu32 zmmword [rdx], zmm0
vmovdqu32 zmm4, zmmword [r14]
vpmaxsd zmm0, zmm4, zmmword [rax]
vmovdqu32 zmmword [r14], zmm0
vpminsd zmm1, zmm4, zmmword [rax]
vmovdqu32 zmmword [rax], zmm1
vmovdqu32 zmm3, zmmword [r15]
vpmaxsd zmm1, zmm3, zmmword [r10]
vmovdqu32 zmmword [r15], zmm1
vpminsd zmm0, zmm3, zmmword [r10]
vmovdqu32 zmmword [r10], zmm0
vmovdqu32 zmm4, zmmword [r12]
vpmaxsd zmm0, zmm4, zmmword [r11]
vmovdqu32 zmmword [r12], zmm0
vpminsd zmm1, zmm4, zmmword [r11]
vmovdqu32 zmmword [r11], zmm1
vmovdqu32 zmm3, zmmword [r13]
vpmaxsd zmm1, zmm3, zmmword [rcx]
vmovdqu32 zmmword [r13], zmm1
vpminsd zmm0, zmm3, zmmword [rcx]
vmovdqu32 zmmword [rcx], zmm0
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x38], r9
mov r9, r10
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rdx
vmovdqu32 zmm4, zmmword [rcx]
vpmaxsd zmm0, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rcx], zmm0
vpminsd zmm1, zmm4, zmmword [rbx]
vmovdqu32 zmmword [rbx], zmm1
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x88]
mov r8, r11
vzeroupper
call fcn.1800736e0
mov rax, qword [rsp + 0xf8]
mov r9, r14
mov rcx, qword [rsp + 0xc0]
mov r8, rsi
mov qword [rsp + 0xb8], rax
mov rdx, rdi
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r12
mov qword [rsp + 0xa0], r15
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
jmp fcn.1800736e0
Function at 0x1800930e0
Capabilities:
Parse pe header

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

Function at 0x18018b210
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x80], rcx
mov edx, dword [rbp + 0x18]
mov dword [rbp - 0x74], edx
mov r8, qword [rbp + 0x20]
mov qword [rbp - 0x88], r8
mov r9d, dword [rbp + 0x28]
mov dword [rbp - 0x78], r9d
lea rcx, [rbp - 0x70]
call fcn.180009310
mov rcx, qword [rbp - 0x80]
mov edx, dword [rbp - 0x74]
mov r8, qword [rbp - 0x88]
mov r9d, dword [rbp - 0x78]
call sub.KERNEL32.dll_GetLocaleInfoEx
mov dword [rbp - 0x78], eax
lea rcx, [rbp - 0x70]
call fcn.180009360
mov eax, dword [rbp - 0x78]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
nop
mov rcx, rsp
call fcn.18018b2c2
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x48], eax
mov eax, dword [rbp - 0x48]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x18018c410
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x7c], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x84], rdx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x74], r8d
mov r9, qword [rbp + 0x28]
mov qword [rbp - 0x8c], r9
lea rcx, [rbp - 0x70]
call fcn.180009310
mov rcx, qword [rbp - 0x7c]
mov rdx, qword [rbp - 0x84]
mov r8d, dword [rbp - 0x74]
mov r9, qword [rbp - 0x8c]
call sub.KERNEL32.dll_WriteFile
mov dword [rbp - 0x74], eax
lea rcx, [rbp - 0x70]
call fcn.180009360
mov eax, dword [rbp - 0x74]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
nop
mov rcx, rsp
call fcn.18018c4db
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x48], eax
mov eax, dword [rbp - 0x48]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x18018c7d0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x7c], rcx
mov rdx, qword [rbp + 0x18]
mov qword [rbp - 0x84], rdx
mov r8d, dword [rbp + 0x20]
mov dword [rbp - 0x74], r8d
lea rcx, [rbp - 0x70]
call fcn.180009310
mov rcx, qword [rbp - 0x7c]
mov rdx, qword [rbp - 0x84]
mov r8d, dword [rbp - 0x74]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov dword [rbp - 0x74], eax
lea rcx, [rbp - 0x70]
call fcn.180009360
mov eax, dword [rbp - 0x74]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
nop
mov rcx, rsp
call fcn.18018c876
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x48], eax
mov eax, dword [rbp - 0x48]
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x18018d5f0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov dword [rbp - 0x3c], eax
mov dword [rbp - 0x40], eax
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov dword [rbp + 0x28], r9d
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov eax, dword [rbp + 0x38]
cwde
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x40]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x18]
movsx rdx, ax
mov dword [rbp - 0x74], edx
mov eax, dword [rbp + 0x20]
movzx r8d, ax
mov dword [rbp - 0x78], r8d
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x84], rcx
mov r9d, dword [rbp + 0x28]
mov dword [rbp - 0x7c], r9d
lea rcx, [rbp - 0x70]
call fcn.180009310
mov edx, dword [rbp - 0x74]
mov r8d, dword [rbp - 0x78]
mov rcx, qword [rbp - 0x84]
mov r9d, dword [rbp - 0x7c]
call sub.ADVAPI32.dll_ReportEventW
mov dword [rbp - 0x7c], eax
lea rcx, [rbp - 0x70]
call fcn.180009360
mov eax, dword [rbp - 0x7c]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp - 0x44]
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x3c], eax
nop
mov rcx, rsp
call fcn.18018d6d9
nop
mov eax, dword [rbp - 0x3c]
mov dword [rbp - 0x48], eax
mov eax, dword [rbp - 0x48]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x180001b80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x180026070]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edx, 7
mov rcx, qword [rsp + 0x70]
call fcn.180001ad0
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x28]
call fcn.1800097a4
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000a0d0
add rsp, 0x68
ret

Function at 0x180001bf0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x68
cmp qword [0x180027bc0], 0
je 0x180001c03
jmp 0x180001d9e
mov edx, 0x11
lea rcx, [0x18001b5c8]
call fcn.1800015c0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.180001b80
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180001c72
mov rcx, qword [rsp + 0x38]
call fcn.1800097a4
mov edx, 0xc
lea rcx, [0x18001b638]
call fcn.1800015c0
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.180001b80
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180001c72
mov rcx, qword [rsp + 0x38]
call fcn.1800097a4
jmp 0x180001d9e
mov eax, dword [rsp + 0x30]
add eax, 8
mov eax, eax
mov ecx, eax
call fcn.1800097e4
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
add eax, 2
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x38]
call fcn.1800097a4
cmp dword [rsp + 0x34], 0
je 0x180001cc3
mov eax, dword [rsp + 0x30]
add eax, 2
cmp dword [rsp + 0x34], eax
jbe 0x180001cd2
mov rcx, qword [rsp + 0x40]
call fcn.1800097a4
jmp 0x180001d9e
mov edx, 0x1f
lea rcx, [0x18001b648]
call fcn.1800015c0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x40]
call fcn.180008f20
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x48]
call fcn.180008f20
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, 8
mov eax, eax
mov ecx, eax
call fcn.1800097e4
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x40]
lea r8, str._s_s
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.180009230
mov rcx, qword [rsp + 0x48]
call fcn.1800097a4
mov rcx, qword [rsp + 0x40]
call fcn.1800097a4
lea rdx, [0x18001b6c4]
mov rcx, qword [rsp + 0x38]
call fcn.180009184
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180001d94
mov rcx, qword [rsp + 0x50]
call fcn.180009044
mov rax, qword [rsp + 0x38]
mov qword [0x180027bc0], rax
jmp 0x180001d9e
mov rcx, qword [rsp + 0x38]
call fcn.1800097a4
add rsp, 0x68
ret
Function at 0x180001fd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800020b6
mov dword [rsp + 0x3c], 0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1800020ab
cmp dword [rsp + 0x34], 0xea
je 0x1800020ab
mov rcx, qword [rsp + 0x70]
call fcn.180008f20
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x18000209a
mov dword [rsp + 0x38], 1
jmp 0x1800020a2
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, byte [rsp + 0x30]
add rsp, 0x58
ret

Function at 0x180003840
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 8], 0x10325476
ret
Function at 0x180004f00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x180004f45
mov dword [rsp + 0x30], 1
jmp 0x180004f4d
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180004fb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x180004fd3
mov dword [rsp + 0x20], 1
jmp 0x180004fdb
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180004ff0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov edx, 3
mov rcx, qword [rsp + 0x70]
call fcn.180001ad0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180005071
mov dword [rsp + 0x54], 1
jmp 0x180005079
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x50], al
mov rcx, qword [rsp + 0x58]
call fcn.1800097a4
movzx eax, byte [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x180007c60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180007cb2
xor eax, eax
jmp 0x180007d6d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180007ce3
jmp 0x180007d5d
mov eax, dword [rsp + 0x30]
add eax, 2
mov eax, eax
mov ecx, eax
call fcn.1800097e4
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180007d04
jmp 0x180007d5d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180007d3f
mov qword [rsp + 0x38], 0
jmp 0x180007d5d
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x30]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x1400025a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServiceswscsvc
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000002
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140002622
mov r8d, eax
lea rdx, str.SYSTEMCurrentControlSetServiceswscsvc
lea rcx, str.Could_not_find_or_create__ls_error__d_n
call fcn.140005290
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008e90
add rsp, 0x78
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea rdx, str.Start
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000260e
lea rcx, str.failed_to_write_to_wscsvc_n
call fcn.140001170
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140008e90
add rsp, 0x78
ret
Function at 0x140005a10
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005aec
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call fcn.14000b4f0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
mov rcx, rdi
test eax, eax
je 0x140005ae6
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140005ae3
nop dword [rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140005aa0
cmp qword [rbx + 0x18], 0x10
mov rcx, rbx
mov r8, qword [rbx + 0x10]
jb 0x140005aba
mov rcx, qword [rbx]
cmp r8, rax
jne 0x140005ad1
lea rdx, [rsp + 0x4c]
call fcn.14000b930
test eax, eax
je 0x140005b63
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140005a90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140005b26
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005b21
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005bb6
mov rcx, r8
call fcn.140008eb0
mov eax, 0xffffffff
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008e90
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov esi, dword [rsp + 0x28]
cmp esi, 0xffffffff
je 0x140005ae3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140005baf
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005baa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005bb6
mov rcx, r8
call fcn.140008eb0
mov eax, esi
jmp 0x140005b2b
call fcn.140013e90
int3
Function at 0x140007b40
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140007b6e
xor eax, eax
jmp 0x140007c54
cmp qword [rcx + 0x68], 0
je 0x140007b7f
call fcn.140007c70
jmp 0x140007c54
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140007b96
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007b98
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007bca
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000ae50
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140007c4e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140007c01
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140007c2a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400159e8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140007c4e
cmp rsi, rbx
ja 0x140007c08
test rsi, rsi
je 0x140007c4e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400159e8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140009b9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009be6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009be6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009be6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009be6
cmp dword [rcx + 0x84], 0xe
jbe 0x140009be6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009be8
xor al, al
add rsp, 0x28
ret
Function at 0x140014220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140009790
sub rsp, rax
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d5e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001426f
mov rax, rbp
jmp 0x140014377
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x463d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e248
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x463d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140014373
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014373
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e248
test rax, rax
js 0x140014373
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140014373
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140014365
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140014365
cmp byte [rcx], 0xd
jne 0x14001434b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001435a
cmp byte [rcx + 1], 0xa
jne 0x14001435a
inc rcx
jmp 0x14001435a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x44420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001432d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140014377
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008e90
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140018488
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018284