joyce8/EMBER2024-capa huggingface dataset:
Function at 0x181794058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1817941df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x181794089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18179406f
add dl, dl
jne 0x181794096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1817940f6
xor eax, eax
add dl, dl
jne 0x1817940a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1817941ad
add dl, dl
jne 0x1817940b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1817940c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1817940d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1817940dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1817940ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18179407e
mov eax, 1
add dl, dl
jne 0x181794106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181794113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1817940fb
sub eax, ebx
mov ebx, 1
jne 0x18179414c
mov ecx, 1
add dl, dl
jne 0x18179412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18179413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181794123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18179407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x181794168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x181794175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18179415d
cmp eax, 0x7d00
jae 0x18179419b
cmp eax, 0x500
jb 0x181794196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18179407e
cmp eax, 0x7f
ja 0x18179419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18179407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1817941d2
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 0x18179407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x142726058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1427261df
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 0x142726089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14272606f
add dl, dl
jne 0x142726096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427260f6
xor eax, eax
add dl, dl
jne 0x1427260a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1427261ad
add dl, dl
jne 0x1427260b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427260c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427260d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1427260dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1427260ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14272607e
mov eax, 1
add dl, dl
jne 0x142726106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142726113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1427260fb
sub eax, ebx
mov ebx, 1
jne 0x14272614c
mov ecx, 1
add dl, dl
jne 0x14272612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14272613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142726123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14272607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142726168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142726175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14272615d
cmp eax, 0x7d00
jae 0x14272619b
cmp eax, 0x500
jb 0x142726196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14272607e
cmp eax, 0x7f
ja 0x14272619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14272607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1427261d2
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 0x14272607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001092
mov rcx, qword [rsp + 0x50]
lea rax, [0x140003338]
mov dword [rsp + 0x28], 4
lea rdx, str.Securen
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400010c0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400012f0
add rsp, 0x68
ret

Function at 0x140001bb8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013f80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x140011ab0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250a0]
call fcn.14001138e
mov rax, qword gs:[0x60]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140011b45
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x48]
test rax, rax
je 0x140011b36
mov rdx, qword [rbp + 0x140]
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x50]
call fcn.1400113d4
test eax, eax
je 0x140011b34
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx + rax + 0x20]
jmp 0x140011b47
jmp 0x140011b38
jmp 0x140011b45
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
jmp 0x140011af4
xor eax, eax
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400166c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400166e0
xor al, al
jmp 0x140016761
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400166f3
xor al, al
jmp 0x140016761
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001671d
xor al, al
jmp 0x140016761
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016731
xor al, al
jmp 0x140016761
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016743
xor al, al
jmp 0x140016761
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001675f
xor al, al
jmp 0x140016761
mov al, 1
add rsp, 0x38
ret
Function at 0x140002ec8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f12
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002f14
xor al, al
add rsp, 0x28
ret

Function at 0x140009340
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000913c
Function at 0x14000e688
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000e6b8
xor eax, eax
jmp 0x14000e77b
mov rbp, rbx
cmp word [rax], si
je 0x14000e6dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e6c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e6c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000e5a8
movsxd r14, eax
test eax, eax
jne 0x14000e71b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e6b1
mov rcx, r14
call fcn.14000ae3c
mov rdi, rax
test rax, rax
jne 0x14000e734
xor ecx, ecx
call fcn.14000a1c4
jmp 0x14000e710
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000e5a8
test eax, eax
jne 0x14000e765
mov rcx, rdi
call fcn.14000a1c4
jmp 0x14000e76f
xor ecx, ecx
call fcn.14000a1c4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140012a9c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012ab2
mov al, 1
jmp 0x140012b12
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012ac3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012b10
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000efa8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012b10
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012b10
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012b10
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012b12
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013b50
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000d678
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013bda
cmp byte [rbp - 0x21], r15b
je 0x140013bd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013c10
call fcn.14000a414
test eax, eax
jne 0x140013bfc
cmp byte [rbp - 0x21], r15b
je 0x140013bf4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013c10
cmp byte [rbp - 0x21], r15b
je 0x140013c0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000cc58
test eax, eax
jne 0x140013cb0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d678
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013c4f
cmp byte [rbp - 0x21], r15b
je 0x140013c84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013c84
call fcn.14000a414
test eax, eax
jne 0x140013c70
cmp byte [rbp - 0x21], r15b
je 0x140013c69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013c84
cmp byte [rbp - 0x21], r15b
je 0x140013c81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000cc58
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013cb0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013cb3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013cc1
mov rcx, rdi
call fcn.14000a1c4
cmp byte [rbp + 0x3f], r15b
je 0x140013cd0
mov rcx, qword [rbp + 0x27]
call fcn.14000a1c4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140016240
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140016268
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140016268
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x141287058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1412871df
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 0x141287089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14128706f
add dl, dl
jne 0x141287096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412870f6
xor eax, eax
add dl, dl
jne 0x1412870a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412871ad
add dl, dl
jne 0x1412870b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412870c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412870d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412870dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412870ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14128707e
mov eax, 1
add dl, dl
jne 0x141287106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141287113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412870fb
sub eax, ebx
mov ebx, 1
jne 0x14128714c
mov ecx, 1
add dl, dl
jne 0x14128712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14128713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141287123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14128707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141287168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141287175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14128715d
cmp eax, 0x7d00
jae 0x14128719b
cmp eax, 0x500
jb 0x141287196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14128707e
cmp eax, 0x7f
ja 0x14128719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14128707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412871d2
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 0x14128707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002a90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002ab8
xor eax, eax
lea r8, [0x180002980]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003e10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180004030
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003f17
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003e74
mov rax, qword [0x18002c008]
cmp qword [rsp + 0x20], rax
ja 0x180003e74
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003e36
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003ea3
jmp 0x180003f17
cmp dword [rsp + 0x50], 0x10000
jne 0x180003efa
cmp qword [rsp + 0x48], 0x10000
jb 0x180003efa
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003ee8
mov rax, qword [rsp + 0x28]
jmp 0x180003f19
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003f12
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004030
mov qword [rsp + 0x20], rax
jmp 0x180003e36
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003f20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180004070
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004023
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003f7b
mov rax, qword [0x18002c008]
cmp qword [rsp + 0x20], rax
ja 0x180003f7b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003f3d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003faa
jmp 0x180004023
cmp dword [rsp + 0x50], 0x10000
jne 0x180004001
cmp qword [rsp + 0x48], 0x10000
jb 0x180004001
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003fef
mov rax, qword [rsp + 0x28]
jmp 0x180004025
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000401e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004070
mov qword [rsp + 0x20], rax
jmp 0x180003f3d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800040c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004650
mov qword [rsp + 0x28], 0
cmp qword [0x18002c508], 0
jne 0x180004108
cmp qword [0x18002c500], 0
je 0x180004108
mov rax, qword [0x18002c500]
mov qword [0x18002c508], rax
cmp qword [0x18002c508], 0
je 0x1800041ae
mov rax, qword [0x18002c508]
cmp qword [rax + 0x10], 0
je 0x1800041ae
mov rax, qword [0x18002c508]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800041ae
mov rax, qword [0x18002c508]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800041ae
mov rax, qword [0x18002c508]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004174
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000417b
xor eax, eax
jmp 0x180004329
mov rax, qword [0x18002c508]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180004329
mov rax, qword [0x18002c500]
mov qword [0x18002c508], rax
jmp 0x1800041d0
mov rax, qword [0x18002c508]
mov rax, qword [rax + 8]
mov qword [0x18002c508], rax
cmp qword [0x18002c508], 0
je 0x18000421d
cmp qword [0x18002c508], 0
je 0x18000421b
mov rax, qword [0x18002c508]
cmp qword [rax + 0x10], 0
je 0x18000421b
mov rax, qword [0x18002c508]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000421b
mov rax, qword [0x18002c508]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000421b
jmp 0x18000414c
jmp 0x1800041be
mov rcx, qword [rsp + 0x60]
call fcn.180006280
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004330
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004327
mov rax, qword [rsp + 0x48]
mov qword [0x18002c508], rax
mov rax, qword [0x18002c508]
mov dword [rax], 0x52727464
mov rax, qword [0x18002c508]
mov qword [rax + 0x10], 0
mov rax, qword [0x18002c508]
mov rcx, qword [0x18002c500]
mov qword [rax + 8], rcx
mov rax, qword [0x18002c508]
mov qword [0x18002c500], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18002c508]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800042d8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004312
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800042ce
mov rax, qword [0x18002c508]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000414c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180007680
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18002cbbc]
mov ebx, edi
test ecx, ecx
je 0x1800077bb
mov rax, qword [0x18002cbb0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800076d8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800076b0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x1800077bb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180007a00
mov r8d, dword [0x18002cbbc]
cmp ebx, r8d
jae 0x180007748
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18002cbb0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180007741
mov edx, esi
mov ecx, ebx
call fcn.1800078f0
mov edi, eax
test eax, eax
jne 0x180007748
mov r8d, dword [0x18002cbbc]
inc ebx
cmp ebx, r8d
jb 0x180007710
cmp qword [rsp + 0x20], 0
je 0x1800077bb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800077a7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180007798
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180007770
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18002c540]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret