joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7c0b30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x7c0b3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x7c0b4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x7c0b35
lea eax, [rcx + 1]
jmp 0x7c0b5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x7c0b6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x7c0b54
sub eax, 3
jb 0x7c0b8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x7c0bdd
sar eax, 1
movsxd rbp, eax
jb 0x7c0bc4
jmp 0x7c0b9c
add ebx, ebx
jne 0x7c0b9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x7c0bc4
inc ecx
add ebx, ebx
jne 0x7c0baa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x7c0bc4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x7c0bbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x7c0bac
add ecx, 2
jmp 0x7c0bc9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.007c0af2
jmp 0x7c0b3d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa5800
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x7c0c29
cmp rsi, rcx
jae 0x7c0c31
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x7c0c10
cmp al, 0x8f
ja 0x7c0c10
cmp byte [rsi - 2], 0xf
je 0x7c0c16
sub al, 0xe8
cmp al, 1
ja 0x7c0bfa
cmp rsi, rcx
jae 0x7c0c31
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x7c0c00
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x7c0c31
lodsb al, byte [rsi]
jmp 0x7c0c10
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3bd000]
mov eax, dword [rdi]
or eax, eax
je 0x7c0c8e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3cc848]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x7c0c3e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x7c0c88
mov qword [rbx], rax
add rbx, 8
jmp 0x7c0c5e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x7c0cd2
cmp al, 0xef
ja 0x7c0cba
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x7c0c9a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x7c0ca9
mov eax, dword [rdi]
add rdi, 4
jmp 0x7c0ca9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x7c0d26
sub rsp, 0xffffffffffffff80
jmp 0x45d9e0
Function at 0x14000a720
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000a72d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000a73d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000a725
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000a755
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000a742
sub eax, 3
jb 0x14000a76f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000a7a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000a796
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000a794
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000a783
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000a6e2
jmp 0x14000a72d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1a00
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000a7f2
cmp rsi, rcx
jae 0x14000a7fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000a7d9
cmp al, 0x8f
ja 0x14000a7d9
cmp byte [rsi - 2], 0xf
je 0x14000a7df
sub al, 0xe8
cmp al, 1
ja 0x14000a7c3
cmp rsi, rcx
jae 0x14000a7fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000a7c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000a7fa
lodsb al, byte [rsi]
jmp 0x14000a7d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000a857
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa1e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000a807
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000a851
mov qword [rbx], rax
add rbx, 8
jmp 0x14000a827
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000a891
cmp al, 0xef
ja 0x14000a883
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000a863
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000a872
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000a8e5
sub rsp, 0xffffffffffffff80
jmp 0x140001df0
Function at 0x1400022cc
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14000a460]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, rdx
mov qword [0x14000a530], rcx
mov rbx, rcx
mov r14d, 0x80
mov r8d, r14d
lea rcx, [rsp + 0x70]
xor edx, edx
mov edi, 0xc0000001
call fcn.140006f00
mov r8d, r14d
lea rcx, [rbp - 0x10]
xor edx, edx
call fcn.140006f00
mov r8d, r14d
lea rdx, [rsp + 0x70]
lea rcx, [0x1400077e0]
call fcn.140001000
test al, al
je 0x140002435
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8d, r14d
lea rdx, [rbp - 0x10]
lea rcx, [0x1400077e0]
call fcn.140001054
test al, al
je 0x140002435
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r9d, [r14 - 0x5e]
mov byte [rsp + 0x28], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
js 0x140002435
mov rax, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov qword [0x14000a528], rax
lea rcx, [rsp + 0x58]
or dword [rax + 0x30], 4
mov rax, qword [rsp + 0x40]
btr dword [rax + 0x30], 7
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov edi, eax
test eax, eax
jns 0x1400023f3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
jmp 0x140002435
lea rax, [0x1400022ac]
mov ecx, 0x1c
lea rdi, [rbx + 0x70]
rep stosq qword [rdi], rax
lea rax, [0x14000245c]
mov qword [rbx + 0xe0], rax
call fcn.140001298
call fcn.1400037dc
mov rcx, rbx
call fcn.140004e6c
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140004a30
xor edi, edi
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140006930
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140002924
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
test rcx, rcx
je 0x140002978
test rdx, rdx
je 0x140002978
lea rdx, [rax + 0x18]
mov qword [rax + 0x18], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140002978
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rbx
call sub.ntoskrnl.exe_PsReferenceProcessFilePointer
test eax, eax
jns 0x14000298a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], bx
jne 0x14000298e
mov rcx, qword [rsp + 0x30]
add edi, edi
movzx eax, word [rcx + 0x58]
cmp eax, edi
jb 0x1400029d5
movzx r8d, word [rcx + 0x5a]
xor edx, edx
mov rcx, qword [rcx + 0x60]
call fcn.140006f00
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
mov r8d, edi
mov rcx, qword [rcx + 0x60]
call fcn.140007000
mov rax, qword [rsp + 0x30]
mov bl, 1
mov word [rax + 0x58], di
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, bl
jmp 0x14000297a

Function at 0x1400029f0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov qword [0x14000a538], rcx
lea rax, [0x140002898]
xor ecx, ecx
mov dword [rsp + 0x40], 0x30
mov qword [r11 - 0x30], rcx
lea r8, [r11 - 0x38]
mov qword [r11 - 0x48], rcx
xorps xmm0, xmm0
mov dword [rsp + 0x58], 0x200
xor r9d, r9d
mov qword [r11 - 0x28], rcx
mov edx, 0x1fffff
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x58], rcx
mov qword [r11 + 8], rcx
lea rcx, [r11 + 8]
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x78
ret
Function at 0x140002c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov r10, rcx
xor r9d, r9d
test rcx, rcx
jne 0x140002c4a
xor eax, eax
jmp 0x140002d09
mov qword [rsp + 8], r9
mov qword [rsp + 0x10], r9
movsxd rax, dword [rcx + 0x3c]
test r8b, r8b
je 0x140002c66
add rcx, 0x88
jmp 0x140002c6a
add rcx, 0x78
add rcx, rax
mov ecx, dword [rcx]
add rcx, r10
mov esi, dword [rcx + 0x1c]
add rsi, r10
mov r8d, dword [rcx + 0x20]
add r8, r10
mov qword [rsp + 8], r8
mov edx, dword [rcx + 0x24]
add rdx, r10
mov qword [rsp + 0x10], rdx
test r14d, 0xffff0000
jne 0x140002ca1
movzx eax, r14w
sub eax, dword [rcx + 0x10]
jmp 0x140002cda
mov ecx, dword [rcx + 0x18]
mov dword [rsp], ecx
mov eax, ecx
dec ecx
mov dword [rsp], ecx
test eax, eax
je 0x140002cfc
mov eax, dword [r8]
add rax, r10
mov rdi, r14
sub rdi, rax
movzx r11d, byte [rax]
movzx ebx, byte [rax + rdi]
sub r11d, ebx
jne 0x140002cd2
inc rax
test ebx, ebx
jne 0x140002cbe
test r11d, r11d
jne 0x140002ce8
movzx eax, word [rdx]
mov r9d, dword [rsi + rax*4]
add r9, r10
mov qword [rsp + 0x18], r9
jmp 0x140002cfc
add r8, 4
mov qword [rsp + 8], r8
add rdx, 2
mov qword [rsp + 0x10], rdx
jmp 0x140002ca7
jmp 0x140002d06
mov rax, r9
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1400036cc
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14000a460]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140003765
mov rcx, qword [rsp + 0x20]
mov ebx, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, qword [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140006f00
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdi + rcx], sil
jne 0x14000373c
lea r8d, [rcx + 1]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.140005c5c
lea rcx, [rsp + 0x30]
call fcn.1400014c0
test al, al
cmovne ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140006930
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003ad4
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x14000a460]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x140007930]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
mov rax, cr8
test al, al
je 0x140003b3a
mov eax, 0xc0000001
jmp 0x140003c39
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140003c37
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
and dword [rbp + 0x37], 0
lea rdx, [rbp - 0x19]
xor eax, eax
mov dword [rsp + 0x20], 5
mov qword [rbp + 0x3b], rax
mov qword [rbp + 0x43], rax
mov dword [rbp + 0x4b], eax
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140003c2d
mov eax, dword [rbp + 0x3f]
mov cl, 1
mov edx, eax
mov dword [0x14000a728], eax
call fcn.14000429c
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x21]
and dword [rbp - 0x1d], 0
xor r9d, r9d
and dword [rbp - 0x21], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x14000a728]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [0x14000a720], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140003c2d
mov rcx, qword [0x14000a720]
call fcn.1400042ec
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140006930
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
Function at 0x140003c58
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r8d, edx
mov rbp, rcx
cmp word [rcx], ax
je 0x140003c89
or eax, 0xffffffff
jmp 0x140003da0
movsxd rsi, dword [rcx + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
jne 0x140003c81
mov eax, 0x78
mov ecx, 0x20b
cmp word [rsi + 0x18], cx
mov rcx, rsi
lea edx, [rax + 0x10]
cmove eax, edx
mov r12d, dword [rax + rsi]
mov edx, r12d
mov eax, dword [rax + rsi + 4]
mov dword [rsp + 0x78], eax
call fcn.140003db8
or edi, 0xffffffff
cmp eax, edi
je 0x140003d9e
mov ebx, eax
mov rcx, rsi
add rbx, rbp
mov eax, dword [rbx + 0x18]
mov edx, dword [rbx + 0x1c]
mov dword [rsp + 0x60], eax
call fcn.140003db8
mov edx, dword [rbx + 0x24]
mov rcx, rsi
mov r15d, eax
call fcn.140003db8
mov edx, dword [rbx + 0x20]
mov rcx, rsi
mov r14d, eax
call fcn.140003db8
cmp r15d, edi
je 0x140003d9e
cmp r14d, edi
je 0x140003d9e
cmp eax, edi
je 0x140003d9e
lea rbx, [r14 + rbp]
mov r14d, eax
lea r13, [r15 + rbp]
add r14, rbp
xor r15d, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x140003d9e
mov edx, dword [r14]
mov rcx, rsi
call fcn.140003db8
cmp eax, edi
je 0x140003d80
mov ecx, eax
movzx eax, word [rbx]
add rcx, rbp
mov edx, dword [r13 + rax*4]
cmp edx, r12d
jb 0x140003d5f
mov eax, dword [rsp + 0x78]
add eax, r12d
cmp edx, eax
jb 0x140003d80
mov r10, qword [rsp + 0x70]
sub r10, rcx
movzx eax, byte [rcx]
movzx r9d, byte [rcx + r10]
sub eax, r9d
jne 0x140003d7c
inc rcx
test r9d, r9d
jne 0x140003d67
test eax, eax
je 0x140003d94
inc r15d
add r14, 4
add rbx, 2
cmp r15d, dword [rsp + 0x60]
jae 0x140003d9e
jmp 0x140003d33
mov rcx, rsi
call fcn.140003db8
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140003db8
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rcx + 0x14]
lea r9, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r9, rax
xor r10d, r10d
test r11d, r11d
je 0x140003dec
mov ecx, dword [r9 + 0xc]
cmp ecx, edx
ja 0x140003de0
add ecx, dword [r9 + 8]
cmp ecx, edx
ja 0x140003df0
add r9, 0x28
inc r10d
cmp r10d, r11d
jl 0x140003dd0
or eax, 0xffffffff
ret
mov ecx, dword [r9 + 0x14]
or eax, 0xffffffff
sub ecx, dword [r9 + 0xc]
add edx, ecx
cmp edx, r8d
cmovb eax, edx
ret
Function at 0x140004bb0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
cmp dword [0x14000a7d0], 0
movzx ebx, r8w
movzx edi, dx
movzx esi, cx
jne 0x140004c4a
and qword [r11 - 0x68], 0
lea rax, [0x14000493c]
and qword [rbp + 7], 0
lea r8, [rbp + 0x27]
and qword [rbp + 0x2f], 0
lea rcx, [rbp + 7]
and qword [rbp + 0x37], 0
xorps xmm0, xmm0
mov dword [0x14000a7d0], r9d
mov edx, 0x1fffff
mov qword [r11 - 0x70], rax
xor r9d, r9d
and qword [r11 - 0x78], 0
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x200
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jns 0x140004c40
xor al, al
jmp 0x140004d01
mov rcx, qword [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, dword [0x14000a450]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000a7d8], rax
test rax, rax
je 0x140004cc8
mov r8d, dword [0x14000a450]
lea rdx, [0x1400042f8]
mov rcx, rax
call fcn.140007000
and qword [rsp + 0x30], 0
lea rax, [0x1400049c0]
and qword [rbp + 0x2f], 0
lea r8, [rbp + 0x27]
and qword [rbp + 0x37], 0
lea rcx, [rbp + 7]
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x1fffff
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x200
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
lea rdx, [rbp + 0xf]
lea rcx, [0x14000b160]
call qword [sym.imp.ntoskrnl.exe_KeAcquireInStackQueuedSpinLock]
lea rcx, [rbp + 0xf]
mov word [0x14000a7c4], si
mov word [0x14000a7c8], di
mov word [0x14000a7cc], bx
mov byte [0x14000a7c0], 1
call qword [sym.imp.ntoskrnl.exe_KeReleaseInStackQueuedSpinLock]
mov al, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400052a4
Capabilities:
Create thread

Disassembly:
sub rsp, 0x78
cmp qword [0x14000a810], 0
je 0x1400052b6
mov al, 1
jmp 0x140005326
cmp byte [0x14000a808], 0
jne 0x1400052c3
xor al, al
jmp 0x140005326
and qword [rsp + 0x30], 0
lea rax, [0x14000532c]
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x50], 0
lea rcx, [0x14000a810]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x1fffff
mov byte [0x14000a809], 1
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
setns al
add rsp, 0x78
ret

Function at 0x140005a6c
Capabilities:
Create thread

Disassembly:
sub rsp, 0x78
cmp qword [0x14000a830], 0
je 0x140005a7e
mov al, 1
jmp 0x140005ada
and qword [rsp + 0x30], 0
lea rax, [0x140005468]
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x40]
and qword [rsp + 0x50], 0
lea rcx, [0x14000a830]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x1fffff
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
setns al
add rsp, 0x78
ret
Function at 0x140006114
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
lea rdx, [0x14000a840]
mov eax, ecx
mov r8d, 8
test al, 1
je 0x140006132
shr eax, 1
xor eax, 0xedb88320
jmp 0x140006134
shr eax, 1
sub r8, 1
jne 0x140006125
mov dword [rdx], eax
inc ecx
add rdx, 4
cmp ecx, 0x100
jb 0x14000611d
ret

Function at 0x1400063ec
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rsi, rdx
mov dword [rbp + 0x17], 0x30
xor edx, edx
mov r14, rcx
lea rcx, [rbp + 0x1f]
mov edi, 0xc0000001
lea r8d, [rdx + 0x28]
call fcn.140006f00
and qword [rbp + 0x67], 0
xor eax, eax
and dword [rbp + 7], 0
mov dword [rbp + 0xb], eax
mov qword [rbp + 0xf], rax
test r14, r14
je 0x140006549
test rsi, rsi
je 0x140006549
mov edx, 0x1018
xor ecx, ecx
mov r8d, 0x52454e4d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140006470
mov edi, 0xc0000017
jmp 0x14000653a
xor eax, eax
mov rdi, rbx
mov ecx, 0x1018
mov edx, 0x800
rep stosb byte [rdi], al
and qword [rbx + 8], rax
lea rcx, [rbx + 0x14]
mov byte [rbx], al
movzx eax, word [rsi]
mov dword [rbx + 0x10], eax
movzx r9d, word [rsi]
mov r8, qword [rsi + 8]
shr r9, 1
call fcn.140005bd8
and dword [rsp + 0x50], 0
lea r9, [rbp + 7]
and qword [rsp + 0x48], 0
lea r8, [rbp + 0x17]
and qword [rbp + 0x1f], 0
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x40], 0x28
mov eax, 1
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
mov edx, 0x110000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x17], 0x30
mov dword [rbp + 0x2f], 0x240
mov qword [rbp + 0x27], r14
movdqu xmmword [rbp + 0x37], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov edi, eax
test eax, eax
js 0x14000652c
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp + 7]
mov r9d, 0x1018
mov dword [rsp + 0x20], 0xa
mov r8, rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov edi, eax
mov edx, 0x52454e4d
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140006549
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xa0]
not edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
shr edi, 0x1f
mov al, dil
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000667c
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
and dword [rbp + 0x17], 0
lea r9, [rbp + 0x17]
xor eax, eax
mov qword [rbp + 0x37], rcx
and dword [rsp + 0x50], eax
lea rcx, [rbp + 0x67]
and qword [r11 - 0x60], rax
mov edi, r8d
and qword [rbp + 0x2f], rax
lea r8, [rbp + 0x27]
mov dword [rsp + 0x40], 0x860
mov rsi, rdx
mov dword [rsp + 0x38], 3
xorps xmm0, xmm0
mov dword [rsp + 0x30], 1
mov edx, 0x40100000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rax
mov dword [rbp + 0x1b], eax
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x240
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140006744
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x17]
and qword [rsp + 0x38], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x67]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140006753
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xa0]
not ebx
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
shr ebx, 0x1f
mov al, bl
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret