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

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003974
cmp word [rcx], 0x5a4d
jne 0x140003974
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003974
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003974
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x140003990
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038f0
test rax, rax
je 0x140003985
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000413f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004040
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fe0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14045a998]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14045a994]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044f2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044ea
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045d9
inc ebx
add rax, 0x28
jmp 0x1400044ca
mov rcx, r12
call fcn.140004cd1
mov rbp, rax
test rax, rax
jne 0x140004511
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004440
movsxd rbx, ebx
mov rax, qword [0x14045a998]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d7f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14045a998]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004573
mov rax, qword [0x14045a998]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004440
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045d3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045d3
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 [0x14045a998]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004440
inc dword [0x14045a994]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004a00
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14045aa00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14045a9e0]
test rbx, rbx
je 0x140004a4c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a46
test eax, eax
jne 0x140004a46
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a1e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c00
Capabilities:
Parse pe header

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

Function at 0x140004c24
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c5e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c55
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c60
inc r8d
add rax, 0x28
jmp 0x140004c3c
xor eax, eax
ret

Function at 0x140004cd1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140456bd0]
mov r8, rcx
mov rcx, r9
call fcn.140004c00
test eax, eax
je 0x140004cfd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c24
xor eax, eax
add rsp, 0x28
ret
Function at 0x6d7d6be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d6d68
mov rax, qword [0x6d7f75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d6c2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d6cb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d6c10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d6d9d
mov rax, qword [0x6d7f75e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d6d80
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d6cae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d6d10
add dword [0x6d7f75e4], 1
cmp edi, 8
jae 0x6d7d6ce3
test dil, 4
jne 0x6d7d6d54
test edi, edi
je 0x6d7d6cd8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d6d6f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d6cd8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d6cfc
jmp 0x6d7d6cd8
add rsi, qword [0x6d7f75e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d6cae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d6cd8
xor esi, esi
jmp 0x6d7d6c37
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d6cd8
mov rax, qword [0x6d7f75e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d74f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f78c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f78a0]
test rbx, rbx
je 0x6d7d7544
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d753b
test rsi, rsi
je 0x6d7d753b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d7520
lea rcx, [0x6d7f78c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d7780
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d7790
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d77a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d77e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d77d8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d77e3
add rax, 0x28
cmp rax, r9
jne 0x6d7d77c4
xor eax, eax
ret

Function at 0x6d7d7880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d78ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d78ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d78ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d78e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d78ef
add rax, 0x28
cmp rax, r9
jne 0x6d7d78d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d79f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d7a10
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7a08
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d7a6d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7a64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7a74
add rax, 0x28
cmp rax, r9
jne 0x6d7d7a50
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d7a90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d7afe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7afe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d7afe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d7afe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d7af5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d7b05
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d7ae0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d7b18
jmp 0x6d7d7afe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d7b26
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d7afe
test r9d, r9d
jg 0x6d7d7b10
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d7e60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x402ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x402efd
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x402f8b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x402f21
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x402f68
cmp ecx, 0x20b
je 0x402f40
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
cmp dword [rax + 0x84], 0xe
ja 0x402f54
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
cmp dword [rax + 0x74], 0xe
ja 0x402f79
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x402f8b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00406f18], 0xffffffffffffffff
mov qword [0x00406f20], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00406e1c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00406e18]
mov dword [rcx], eax
call fcn.00403160
cmp dword [0x00406740], 0
jne 0x402fe5
lea rcx, [fcn.00403160]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004042e8]
lea rcx, [0x004042e0]
call fcn.00496000
mov r11d, dword [0x00406e14]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00406e10]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004042d8]
lea rcx, [0x004042c8]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x403086
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x403076
cmp al, 0x22
je 0x403076
jmp 0x403060
cmp byte [r8], 0x22
jne 0x403096
inc r8
mov qword [rsp + 0x30], r8
jmp 0x403096
cmp byte [r8], 0x20
jbe 0x403096
inc r8
mov qword [rsp + 0x30], r8
jmp 0x403086
movzx eax, byte [r8]
test al, al
je 0x4030ac
cmp al, 0x20
ja 0x4030ac
inc r8
mov qword [rsp + 0x30], r8
jmp 0x403096
test byte [rsp + 0x8c], 1
je 0x4030c1
movzx r9d, word [rsp + 0x90]
jmp 0x4030c7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.00401680
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x4030e3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x403107
mov eax, edi
jmp 0x403110
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020504]
cmp r15, 1
jne 0x140004953
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205e4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205e4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205e4]
call fcn.14000dd0c
mov rcx, qword [0x1400205e4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205ec]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020630]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020630]
call fcn.1400123b8
lea rcx, [0x140021200]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and eax, 0x868583ff
invalid
idiv bh
cld
sti
cld
invalid
push rdx
dec dword [rsi + 0x4d]
call qword [r13 + 0x54]
push rsi
call qword [rbx + rdx*2 + 0x55]
call qword [rdx + 0x51]
push rbx
call [rax + 0x57]
pop rcx
call [rbp + 0x5c]
pop rbp
pop rsp
pop rbp
pop rsp
pop rsi
jmp [rdx - 0x3c005557]
cli
invalid
cmc
push rsp
cmc
push rsp
hlt
hlt
hlt
dec qword [rbx + 0x4d]
call qword [rcx + 0x53]
push rsp
call [rbp + 0x5f]
pop rbp
pop rdi
pop rbp
pop rdi
invalid
Function at 0x140049790
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x14009b400], ebx
mov dword [rsp + 0x50], ebx
jne 0x14004980e
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, 0xfffffffc
jne 0x14004980e
cmp eax, 1
je 0x14004980e
mov eax, dword [0x14009a71c]
cmp dword [rsp + 0x50], ebx
mov dword [0x14009b400], 1
cmovne eax, ebx
mov dword [0x14009a71c], eax
jmp 0x140049814
mov eax, dword [0x14009a71c]
add rsp, 0x40
pop rbx
ret

Function at 0x14004ab40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004ab8c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004ab84
cmp dword [rcx + 0x3c], edx
jl 0x14004ab84
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14004ab84
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 0x14004ab8c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x141b420b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b42237
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 0x141b420e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b420c7
add dl, dl
jne 0x141b420ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b4214e
xor eax, eax
add dl, dl
jne 0x141b420fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b42205
add dl, dl
jne 0x141b4210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b42128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b42135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b42142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b420d6
mov eax, 1
add dl, dl
jne 0x141b4215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b4216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b42153
sub eax, ebx
mov ebx, 1
jne 0x141b421a4
mov ecx, 1
add dl, dl
jne 0x141b42186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b42193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b4217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b420d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b421c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b421cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b421b5
cmp eax, 0x7d00
jae 0x141b421f3
cmp eax, 0x500
jb 0x141b421ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b420d6
cmp eax, 0x7f
ja 0x141b421f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b420d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b4222a
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 0x141b420d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
jmp 0x140001664
sub rsp, 0x28
mov rax, qword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
mov edx, dword [rax + 0xc]
mov dword [0x1400198b0], edx
cmp edx, 0x400
jbe 0x140001696
lea rcx, [0x140003870]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000365
jmp 0x140001783
mov rcx, qword [sym.imp.ntoskrnl.exe_PsRegisterPicoProvider]
lea r9, [0x1400038a0]
lea r8, [0x1400038b0]
mov edx, 0x100
call fcn.1400031e0
test rax, rax
jne 0x1400016c8
lea rcx, [0x1400038c0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x14000168c
movsxd rcx, dword [rax + 3]
lea r9, [0x1400038a0]
add rcx, 7
lea r8, [0x1400038f0]
add rcx, rax
mov edx, 0x40
mov qword [0x1400198c0], rcx
mov rcx, rax
call fcn.1400031e0
mov rcx, rax
test rax, rax
jne 0x140001706
lea rcx, [0x140003900]
jmp 0x1400016c1
movsxd rax, dword [rax + 3]
xor edx, edx
add rax, 7
add rcx, rax
mov qword [0x1400198b8], rcx
lea rcx, [0x140003930]
call fcn.140003308
test rax, rax
jne 0x140001734
lea rcx, [0x140003940]
jmp 0x1400016c1
lea r8, [0x140003970]
mov rcx, rax
lea rdx, [0x140003990]
call fcn.140003258
mov rdx, rax
test rax, rax
jne 0x14000175e
lea rcx, [0x1400039b0]
jmp 0x1400016c1
movsxd rcx, dword [rax + 3]
lea rax, [0x140001008]
xchg qword [rdx + rcx + 7], rax
lea rcx, [0x1400039f0]
mov qword [0x1400198c8], rax
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001788
Capabilities:
Find process by pid

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x30
and qword [rbp + 0x38], 0
mov ebx, 4
and qword [rbp + 0x40], 0
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov r8d, ebx
lea r15d, [rbx + 4]
mov edx, r15d
call fcn.1400034e0
test eax, eax
je 0x1400018bb
mov rcx, qword [rsi + 0x18]
mov r8d, ebx
mov edx, r15d
call fcn.1400034e0
test eax, eax
je 0x1400018bb
mov rdx, qword [rsi + 8]
lea rcx, [rbp + 0x38]
mov r8d, r15d
call fcn.140003514
test eax, eax
je 0x1400018bb
mov rdx, qword [rsi + 0x18]
lea rcx, [rbp + 0x40]
mov r8d, r15d
call fcn.140003514
test eax, eax
je 0x1400018bb
mov ecx, dword [rsi]
lea rdx, [rbp + 0x30]
and qword [rbp + 0x30], 0
and ecx, 0x5fffffff
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x1400018b6
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
xor ecx, ecx
call fcn.14000163c
mov ecx, dword [rsi + 0x24]
lea r9, [rbp + 0x40]
mov r8, qword [rsi + 0x10]
lea rdx, [rbp + 0x38]
mov dword [rsp + 0x28], ecx
mov bl, al
mov ecx, dword [rsi + 0x20]
mov dword [rsp + 0x20], ecx
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_NtAllocateVirtualMemory]
mov cl, bl
mov edi, eax
call fcn.14000163c
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsi + 8]
lea rdx, [rbp + 0x38]
mov r8d, r15d
call fcn.140003514
test eax, eax
je 0x1400018af
mov rcx, qword [rsi + 0x18]
lea rdx, [rbp + 0x40]
mov r8d, r15d
call fcn.140003514
test eax, eax
jne 0x1400018b6
mov rdi, 0xffffffffc0000005
movsxd rax, edi
jmp 0x1400018c2
mov rax, 0xffffffffc0000005
add rsp, 0x30
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400018d0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov ecx, dword [rcx]
and ecx, 0x5fffffff
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x14000192c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov r8d, dword [rdi + 0x10]
or rcx, 0xffffffffffffffff
mov rdx, qword [rdi + 8]
call qword [sym.imp.ntoskrnl.exe_ZwFlushInstructionCache]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
movsxd rax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret