joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140020850]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400024d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400024d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400024d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002520
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002517
test rcx, rcx
je 0x1400024d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002508
xor eax, eax
ret

Function at 0x140002530
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140020850]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002590
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002598
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002590
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002590
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 0x1400025e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025f0
add rdx, 0x28
cmp r9, rdx
jne 0x1400025d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140020850]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002622
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002630
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002622
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002622
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002622
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 0x140002685
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002698
add rdx, 0x28
cmp rdx, r10
jne 0x140002670
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000268e
test ecx, ecx
jg 0x1400026a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1407f4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407f41df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407f4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f406f
add dl, dl
jne 0x1407f4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f40f6
xor eax, eax
add dl, dl
jne 0x1407f40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f41ad
add dl, dl
jne 0x1407f40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407f40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407f407e
mov eax, 1
add dl, dl
jne 0x1407f4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f40fb
sub eax, ebx
mov ebx, 1
jne 0x1407f414c
mov ecx, 1
add dl, dl
jne 0x1407f412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407f4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f415d
cmp eax, 0x7d00
jae 0x1407f419b
cmp eax, 0x500
jb 0x1407f4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f407e
cmp eax, 0x7f
ja 0x1407f419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407f41d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407f407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001154
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
and qword [rax + 8], 0
lea rdx, [rax + 8]
mov rbp, rcx
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov esi, eax
test eax, eax
js 0x1400011d8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp + 4]
call fcn.140001c6c
test rax, rax
je 0x1400011c2
mov rbx, qword [rax + 0x30]
mov edi, dword [rax + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rax, qword [rbp + 0x208]
mov qword [rax], rbx
mov rax, qword [rbp + 0x210]
mov dword [rax], edi
jmp 0x1400011cd
mov esi, 0xc0000225
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rbx, qword [rsp + 0x38]
mov eax, esi
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400011f0
Capabilities:
Allocate or change rwx memory
Find process by pid

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx]
mov rbx, rcx
test eax, eax
je 0x1400012a8
cmp qword [rcx + 8], 0
je 0x1400012a8
cmp dword [rcx + 0x10], 0
je 0x1400012a8
cmp qword [rcx + 0x18], 0
je 0x1400012a8
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001245
mov eax, 0xc0000225
jmp 0x1400012ad
mov eax, dword [rbx + 0x10]
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x18]
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 8]
or rcx, 0xffffffffffffffff
call sub.ntoskrnl.exe_ZwProtectVirtualMemory
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
test edi, edi
js 0x140001299
mov rdx, qword [rbx + 0x18]
mov ecx, dword [rsp + 0x40]
mov dword [rdx], ecx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x1400012ad
mov eax, 0xc000000d
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400012b8
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rsi, rcx
mov ecx, dword [rcx + 0x18]
mov rax, qword [rsi + 0x10]
lea r8, [rax + rcx]
cmp r8, rax
jb 0x140001421
mov rax, qword [rsi + 8]
lea rdx, [rax + rcx]
cmp rdx, rax
jb 0x140001421
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rax]
cmp r8, rcx
ja 0x140001421
cmp rdx, rcx
ja 0x140001421
and qword [rbp + 0x30], 0
cmp dword [rsi + 0x1c], 0
mov eax, dword [rsi]
je 0x1400013c8
test eax, eax
je 0x1400013c1
mov ecx, eax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x140001426
mov rcx, qword [rbp + 0x30]
call fcn.140001cd4
mov rcx, qword [rbp + 0x30]
mov r15, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, dword [rsi + 0x18]
xor r14d, r14d
jmp 0x1400013b8
mov rdx, qword [rsi + 0x10]
mov rcx, r15
add rdx, r14
call fcn.140001d80
test rax, rax
je 0x1400013c1
and qword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
mov rcx, rax
mov edx, 0x1000
and ecx, 0xfff
mov r8, rdi
sub rdx, rcx
mov rcx, rax
cmp rdx, rdi
cmovb r8, rdx
mov rdx, qword [rsi + 8]
add rdx, r14
call fcn.140001d5c
mov ebx, eax
mov rax, qword [rbp + 0x38]
sub rdi, rax
add r14, rax
test ebx, ebx
jne 0x1400013bd
test rax, rax
je 0x1400013bd
test rdi, rdi
jne 0x14000135c
mov eax, ebx
jmp 0x140001426
mov eax, 0xc0000001
jmp 0x140001426
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x1400013bd
and qword [rbp + 0x38], 0
mov ebx, dword [rsi + 0x18]
mov rdi, qword [rsi + 8]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x30], rcx
mov r9, rdi
mov rcx, qword [rbp + 0x30]
mov r8, rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400013bd
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000143c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r14, rcx
mov ecx, dword [rcx + 0x18]
mov rax, qword [r14 + 0x10]
lea r8, [rax + rcx]
cmp r8, rax
jb 0x1400015ae
mov rax, qword [r14 + 8]
lea rdx, [rax + rcx]
cmp rdx, rax
jb 0x1400015ae
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov rcx, qword [rax]
cmp r8, rcx
ja 0x1400015ae
cmp rdx, rcx
ja 0x1400015ae
and qword [rbp + 0x30], 0
cmp dword [r14 + 0x1c], 0
mov eax, dword [r14]
je 0x14000154e
test eax, eax
je 0x140001547
mov ecx, eax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x1400015b3
mov rcx, qword [rbp + 0x30]
call fcn.140001cd4
mov rcx, qword [rbp + 0x30]
mov r15, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edi, dword [r14 + 0x18]
xor esi, esi
jmp 0x14000153e
mov rdx, qword [r14 + 0x10]
mov rcx, r15
add rdx, rsi
call fcn.140001d80
test rax, rax
je 0x140001547
and qword [rbp + 0x38], 0
lea r9, [rbp + 0x38]
mov rcx, rax
mov edx, 0x1000
and ecx, 0xfff
mov r8, rdi
sub rdx, rcx
mov rcx, rax
cmp rdx, rdi
cmovb r8, rdx
mov rdx, qword [r14 + 8]
add rdx, rsi
call fcn.140001efc
mov ebx, eax
mov rax, qword [rbp + 0x38]
sub rdi, rax
add rsi, rax
test ebx, ebx
jne 0x140001543
test rax, rax
je 0x140001543
test rdi, rdi
jne 0x1400014e2
mov eax, ebx
jmp 0x1400015b3
mov eax, 0xc0000001
jmp 0x1400015b3
mov rcx, rax
lea rdx, [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001543
mov ebx, dword [r14 + 0x18]
mov rdi, qword [r14 + 8]
mov r14, qword [r14 + 0x10]
and qword [rbp + 0x38], 0
mov rsi, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rbp + 0x38]
mov r9, rdi
mov qword [rsp + 0x30], rcx
mov r8, rsi
mov byte [rsp + 0x28], 0
mov rcx, rax
mov rdx, r14
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140001543
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400015c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
and qword [rbp - 0x28], 0
lea r8, [rbp - 0x30]
mov r14, rdx
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x18], 0x240
lea rcx, [rbp + 0x30]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400016b2
mov rcx, qword [rbp + 0x30]
mov rdx, r14
call fcn.140001c30
mov esi, eax
test eax, eax
jne 0x140001638
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x1400016b2
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8, rsi
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.140002140
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov r8d, 1
mov dword [rsp + 0x20], esi
mov rdx, r14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x14000169d
cmp esi, dword [rbp + 0x20]
jne 0x14000169d
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rdi + 8]
mov rax, qword [rax + rdi]
jmp 0x1400016b4
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140001c30
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
xor r9d, r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8d, [r9 + 1]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140001c62
cmp eax, 0x80000005
je 0x140001c62
xor eax, eax
jmp 0x140001c66
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x140001f70
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x60
mov rsi, r8
mov qword [rax - 0x28], rcx
mov rbp, rdx
mov dword [rax - 0x38], 0x30
xorps xmm0, xmm0
mov dword [rax - 0x20], 0x240
xor ebx, ebx
lea r8, [rax - 0x38]
mov edx, 0xf003f
mov qword [rax - 0x30], rbx
lea rcx, [rax + 8]
mov edi, r9d
movdqu xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140002000
mov eax, dword [rsp + 0x90]
mov r9d, edi
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x70]
mov edx, 1
test eax, eax
movzx ebx, bl
cmovns ebx, edx
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400030d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov qword [rsp + 0x30], r8
mov edi, edx
mov rbx, rcx
movsxd rax, dword [rcx + 0x3c]
lea rsi, [rcx + rax]
mov r12d, dword [rcx + rax + 0x88]
mov eax, dword [rcx + rax + 0x8c]
mov dword [rsp + 0x2c], eax
mov rcx, rsi
mov edx, r12d
mov r8d, edi
call fcn.14000308d
test eax, eax
je 0x14000322e
mov ebp, eax
mov r14d, dword [rbx + rbp + 0x18]
mov edx, dword [rbx + rbp + 0x1c]
mov rcx, rsi
mov r8d, edi
call fcn.14000308d
test eax, eax
je 0x14000322e
mov r13d, eax
mov edx, dword [rbx + rbp + 0x24]
mov rcx, rsi
mov r8d, edi
call fcn.14000308d
test eax, eax
je 0x14000322e
mov r15d, eax
mov dword [rsp + 0x28], 0
mov edx, dword [rbx + rbp + 0x20]
mov rcx, rsi
mov r8d, edi
call fcn.14000308d
test eax, eax
je 0x140003236
test r14d, r14d
je 0x140003236
mov ecx, r15d
mov r15d, eax
add r15, rbx
mov eax, r13d
add rax, rbx
mov qword [rsp + 0x40], rax
mov eax, ecx
add rax, rbx
mov qword [rsp + 0x38], rax
add dword [rsp + 0x2c], r12d
mov dword [rsp + 0x28], 0
mov r13d, 1
mov edx, dword [r15 + r13*4 - 4]
mov rcx, rsi
mov r8d, edi
call fcn.14000308d
test eax, eax
je 0x1400031ff
mov rcx, qword [rsp + 0x38]
movzx ecx, word [rcx + r13*2 - 2]
mov rdx, qword [rsp + 0x40]
mov ebp, dword [rdx + rcx*4]
cmp ebp, r12d
jb 0x1400031ec
cmp ebp, dword [rsp + 0x2c]
jae 0x1400031ec
xor ecx, ecx
mov al, 1
jmp 0x140003203
mov ecx, eax
add rcx, rbx
mov rdx, qword [rsp + 0x30]
call fcn.140007569
test eax, eax
je 0x140003217
mov cl, 1
xor eax, eax
or al, cl
cmp al, 1
jne 0x140003236
lea rax, [r13 + 1]
cmp r13, r14
mov r13, rax
jb 0x1400031b4
jmp 0x140003236
mov rcx, rsi
mov edx, ebp
mov r8d, edi
call fcn.14000308d
mov dword [rsp + 0x28], eax
xor eax, eax
xor ecx, ecx
jmp 0x140003203
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1800197cc
Capabilities:
Encode data using xor

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, 0x50
mov qword [0x18004b750], rcx
mov ebx, 0x800
mov ecx, ebx
call fcn.18001b228
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov qword [0x18004b758], rax
call fcn.18001b4d0
mov rcx, qword [0x18004b758]
xor r14d, r14d
lea r9d, [r14 + 1]
mov edx, ebx
mov qword [rsp + 0x20], r14
mov r8d, r9d
call fcn.18001ac00
mov eax, r14d
lea rbp, str.._._._..._._._.
xor byte [rax + rbp], 0x2e
inc rax
cmp rax, 0x1000
jl 0x180019833
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rbp
call fcn.180014838
jmp 0x18001992a
lea rcx, [rsp + 0x30]
call fcn.1800148e0
lea rcx, [rsp + 0x30]
movsx ebx, ax
call fcn.1800148e0
mov rcx, qword [0x18004b758]
movsx rdi, di
mov edx, ebx
movzx esi, ax
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180019914
dec edx
je 0x1800198fd
dec edx
jne 0x18001992a
movsx rbx, ax
mov rcx, rbx
call fcn.18001b228
mov r8, qword [0x18004b758]
lea rcx, [rsp + 0x30]
movsx edx, si
mov qword [rdi + r8 + 8], rax
call fcn.18001487c
mov rcx, qword [0x18004b758]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001b8c0
mov rcx, qword [0x18004b758]
mov r9d, 1
mov rcx, qword [rdi + rcx + 8]
mov r8d, r9d
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.18001ac00
jmp 0x18001992a
lea rcx, [rsp + 0x30]
call fcn.180014848
mov rcx, qword [0x18004b758]
mov dword [rdi + rcx + 8], eax
jmp 0x18001992a
lea rcx, [rsp + 0x30]
call fcn.1800148e0
mov rdx, qword [0x18004b758]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x30]
call fcn.1800148e0
movzx edi, ax
test ax, ax
jg 0x18001985a
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
jmp fcn.18001b4d0

Function at 0x18001a22c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
or rsi, 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
lea edx, [rsi + 0x19]
lea r9d, [rsi + 5]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [r14 + 0x10], rax
call fcn.18001a3bc
mov r8, qword [0x180047468]
test r8, r8
je 0x18001a2a1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret
Function at 0x2fc5650a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc565aa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc588108]
test eax, eax
je 0x2fc565b3a
lea rax, [0x2fc5880e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc588110]
mov qword [rbp - 8], rax
jmp 0x2fc565b1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc565b12
cmp qword [rbp - 0x10], 0
je 0x2fc565b12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc565ad8
lea rax, [0x2fc5880e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc565b3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc565c40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc565c68
mov eax, 0
jmp 0x2fc565cb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc565c91
mov eax, 0
jmp 0x2fc565cb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc565cb1
mov eax, 0
jmp 0x2fc565cb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc565cbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc565d3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc565d31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc565d31
mov rax, qword [rbp - 8]
jmp 0x2fc565d4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc565d04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001910
Capabilities:
Enumerate processes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x258
mov r14, rdx
mov rdi, rcx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140001977
mov rbx, rax
lea rdx, [rsp + 0x20]
mov dword [rdx], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000196e
lea rsi, [rsp + 0x20]
mov rcx, r14
mov rdx, rsi
call rdi
test al, al
je 0x14000196e
mov rcx, rbx
mov rdx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001953
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140001985
Capabilities:
Query service status

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rbx, rcx
xor edi, edi
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x140001a04
mov rsi, rax
mov rcx, rax
mov rdx, rbx
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400019f9
mov rbx, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor edi, edi
lea r8, [rsp + 0x38]
mov rcx, rbx
xor edx, edx
mov r9d, 0x24
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
jne 0x1400019ee
mov edi, dword [rsp + 0x54]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400019fb
xor edi, edi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret