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

Disassembly:
cld
pop r11
jmp 0x1400c053d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400c054d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400c0535
lea eax, [rcx + 1]
jmp 0x1400c055b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400c056e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400c0554
sub eax, 3
jb 0x1400c058e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400c05dd
sar eax, 1
movsxd rbp, eax
jb 0x1400c05c4
jmp 0x1400c059c
add ebx, ebx
jne 0x1400c059a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c05c4
inc ecx
add ebx, ebx
jne 0x1400c05aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c05c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400c05bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400c05ac
add ecx, 2
jmp 0x1400c05c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400c04f2
jmp 0x1400c053d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x9e00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400c0629
cmp rsi, rcx
jae 0x1400c0631
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400c0610
cmp al, 0x8f
ja 0x1400c0610
cmp byte [rsi - 2], 0xf
je 0x1400c0616
sub al, 0xe8
cmp al, 1
ja 0x1400c05fa
cmp rsi, rcx
jae 0x1400c0631
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400c0600
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400c0631
lodsb al, byte [rsi]
jmp 0x1400c0610
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xbd000]
mov eax, dword [rdi]
or eax, eax
je 0x1400c069a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc0720]
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 0x1400c063e
jns 0x1400c0673
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400c067d
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 0x1400c0694
mov qword [rbx], rax
add rbx, 8
jmp 0x1400c065e
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 0x1400c06d4
cmp al, 0xef
ja 0x1400c06c6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400c06a6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400c06b5
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 + 0x22f]
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 0x1400c0728
sub rsp, 0xffffffffffffff80
jmp 0x1400095dc
Function at 0x180003950
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180028080]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 2
jge 0x180003aa0
cmp dword [rsp + 0x38], 0
je 0x1800039c8
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x180028bd0]
shl rcx, 5
add rax, rcx
mov rdx, qword [rax + 8]
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x180028bd0]
shl rcx, 5
add rax, rcx
mov rcx, qword [rax]
mov r8d, 4
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x180003a06
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x180028bd0]
shl rcx, 5
add rax, rcx
mov rdx, qword [rax + 8]
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x180028bd0]
shl rcx, 5
add rax, rcx
mov rcx, qword [rax]
mov r8d, 0x40
lea r9, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
movsxd rdx, dword [rsp + 0x34]
lea rcx, [0x180028bd0]
shl rdx, 5
add rcx, rdx
cmp rax, qword [rcx + 8]
jae 0x180003a8b
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x180028bd0]
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x28]
and rcx, 0xf
movsx r8d, byte [rax + rcx + 0x10]
movsxd rcx, dword [rsp + 0x34]
lea rax, [0x180028bd0]
shl rcx, 5
add rax, rcx
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
movsx edx, byte [rax + rcx]
xor edx, r8d
mov byte [rax + rcx], dl
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
jmp 0x180003a0f
jmp 0x180003a90
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x18000396f
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180007600
nop
add rsp, 0x48
ret

Function at 0x180003f10
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
lea rcx, str.C:UsersPubliczh_cn
lea rdx, [0x1800236b1]
call fcn.18000b734
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov r8d, 2
call fcn.18000bb38
mov rcx, qword [rsp + 0x20]
call fcn.18000be44
cdqe
mov qword [0x180028bc8], rax
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
mov edx, r8d
call fcn.18000bb38
mov rcx, qword [0x180028bc8]
add rcx, 1
call fcn.18000c3fc
mov qword [0x180028bb8], rax
mov rcx, qword [0x180028bc8]
add rcx, 1
call fcn.18000c3fc
mov qword [0x180028bb0], rax
mov r9, qword [rsp + 0x20]
mov r8, qword [0x180028bc8]
mov rcx, qword [0x180028bb8]
mov edx, 1
call fcn.18000b8a4
mov rax, qword [0x180028bb8]
mov rcx, qword [0x180028bc8]
mov rdx, qword [rax + rcx - 0x10]
mov qword [0x180028c30], rdx
mov rax, qword [rax + rcx - 8]
mov qword [0x180028c38], rax
mov rax, qword [0x180028bb8]
mov rcx, qword [0x180028bc8]
mov rdx, qword [rax + rcx - 0x10]
mov qword [0x180028c40], rdx
mov rax, qword [rax + rcx - 8]
mov qword [0x180028c48], rax
mov rax, qword [0x180028bc8]
sub rax, 0x10
mov r8d, eax
mov rdx, qword [0x180028bb0]
mov rcx, qword [0x180028bb8]
call fcn.180003d10
mov rcx, qword [rsp + 0x20]
call fcn.18000b510
mov rcx, qword [0x180028bb8]
mov r8, qword [0x180028bc8]
xor edx, edx
call fcn.180019f00
mov rcx, qword [0x180028bb8]
call fcn.18000bb24
mov qword [0x180028bb8], 0
add rsp, 0x28
ret
Function at 0x180004160
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180028c68], eax
je 0x18000417b
mov eax, 0x10dd
jmp 0x1800042a0
mov rax, qword [0x180028c80]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180004225
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800041f0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800041f0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800069a0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.18000765c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180004187
mov qword [0x180028c80], 0
call fcn.1800062b0
mov rax, qword [0x180028c78]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180004289
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.18000765c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180004241
mov qword [0x180028c78], 0
mov dword [0x180028c68], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004760
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180028c6c], 0
je 0x18000477d
mov eax, dword [0x180028c6c]
jmp 0x180004843
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180004790
xor eax, eax
jmp 0x180004843
mov ecx, 0x10
call fcn.180007620
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800047fe
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1800047e3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18000765c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180028c6c], eax
mov qword [0x180028c70], 0
mov eax, dword [rsp + 0x20]
jmp 0x180004843
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180004818
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800047b9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180028c78]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180028c78], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x180004ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180028c68], eax
je 0x180004efd
mov eax, 0x10dd
jmp 0x180005116
cmp dword [0x180028c6c], 0
je 0x180004f11
mov eax, dword [0x180028c6c]
jmp 0x180005116
cmp qword [rsp + 0x78], 0
jne 0x180004f23
mov eax, 0x57
jmp 0x180005116
cmp qword [rsp + 0x70], 0
jne 0x180004f35
mov eax, 6
jmp 0x180005116
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180004f67
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x180028c6c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x180028c70], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005116
mov ecx, 0x30
call fcn.180007620
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180004fd9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x180028c6c], eax
cmp qword [rsp + 0x30], 0
je 0x180004fc4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.18000765c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x180028c70], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005116
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180005120
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180005120
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x180005036
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180005053
mov dword [rsp + 0x20], 9
cmp dword [0x180028c60], 0
je 0x18000504e
jmp 0x180004f9a
jmp 0x180004f90
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180005080
mov dword [rsp + 0x20], 9
cmp dword [0x180028c60], 0
je 0x18000507b
jmp 0x180004f9a
jmp 0x180004f90
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800050b7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180004f90
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x180028c80]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x180028c80], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005410
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180005457
xor al, al
jmp 0x1800054f9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180005481
xor al, al
jmp 0x1800054f9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1800054f1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1800054f1
mov al, 1
jmp 0x1800054f9
jmp 0x1800054f7
xor al, al
add rsp, 0x78
ret

Function at 0x180006250
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180028c50]
mov qword [rsp + 0x28], rax
jmp 0x180006270
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000629f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000629d
call sub.KERNEL32.dll_GetLastError
jmp 0x1800062a1
jmp 0x180006262
xor eax, eax
add rsp, 0x38
ret

Function at 0x1800063b0
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.180006360
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800064c6
mov rax, qword [0x180028040]
cmp qword [rsp + 0x20], rax
jb 0x18000640b
mov rax, qword [0x180028048]
cmp qword [rsp + 0x20], rax
ja 0x18000640b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800063cd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180019f00
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000643c
jmp 0x1800064c6
cmp dword [rsp + 0x50], 0x10000
jne 0x1800064a4
cmp qword [rsp + 0x48], 0x10000
jb 0x1800064a4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180006482
mov rax, qword [rsp + 0x28]
jmp 0x1800064c8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180006492
xor eax, eax
jmp 0x1800064c8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800064c1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180006360
mov qword [rsp + 0x20], rax
jmp 0x1800063cd
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800064d0
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.180006320
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800065ea
mov rax, qword [0x180028040]
cmp qword [rsp + 0x20], rax
jb 0x180006534
mov rax, qword [0x180028048]
cmp qword [rsp + 0x20], rax
ja 0x180006534
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800064f6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180019f00
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180006565
jmp 0x1800065ea
cmp dword [rsp + 0x50], 0x10000
jne 0x1800065cd
cmp qword [rsp + 0x48], 0x10000
jb 0x1800065cd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800065ab
mov rax, qword [rsp + 0x28]
jmp 0x1800065ec
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800065bb
xor eax, eax
jmp 0x1800065ec
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800065e5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180006320
mov qword [rsp + 0x20], rax
jmp 0x1800064f6
xor eax, eax
add rsp, 0x68
ret
Function at 0x180006730
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.180005870
mov qword [rsp + 0x28], 0
cmp qword [0x180028c58], 0
jne 0x180006778
cmp qword [0x180028c50], 0
je 0x180006778
mov rax, qword [0x180028c50]
mov qword [0x180028c58], rax
cmp qword [0x180028c58], 0
je 0x18000681e
mov rax, qword [0x180028c58]
cmp qword [rax + 0x10], 0
je 0x18000681e
mov rax, qword [0x180028c58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000681e
mov rax, qword [0x180028c58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000681e
mov rax, qword [0x180028c58]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800067e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800067eb
xor eax, eax
jmp 0x180006995
mov rax, qword [0x180028c58]
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 fcn.180019f00
mov rax, qword [rsp + 0x28]
jmp 0x180006995
mov rax, qword [0x180028c50]
mov qword [0x180028c58], rax
jmp 0x180006840
mov rax, qword [0x180028c58]
mov rax, qword [rax + 8]
mov qword [0x180028c58], rax
cmp qword [0x180028c58], 0
je 0x18000688d
cmp qword [0x180028c58], 0
je 0x18000688b
mov rax, qword [0x180028c58]
cmp qword [rax + 0x10], 0
je 0x18000688b
mov rax, qword [0x180028c58]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000688b
mov rax, qword [0x180028c58]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000688b
jmp 0x1800067bc
jmp 0x18000682e
mov rax, qword [rsp + 0x60]
and rax, 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.180006600
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180006993
mov rax, qword [rsp + 0x48]
mov qword [0x180028c58], rax
mov rax, qword [0x180028c58]
mov dword [rax], 0x52727464
mov rax, qword [0x180028c58]
mov qword [rax + 0x10], 0
mov rax, qword [0x180028c58]
mov rcx, qword [0x180028c50]
mov qword [rax + 8], rcx
mov rax, qword [0x180028c58]
mov qword [0x180028c50], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180028c58]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180006944
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18000697e
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 0x18000693a
mov rax, qword [0x180028c58]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800067bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180006ce0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.180019f00
nop
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180006d2a
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006df2
cmp dword [rsp + 0x60], 0x1000
jne 0x180006d4f
mov eax, dword [rsp + 0x64]
and eax, 0xff
cmp eax, 1
je 0x180006d4f
mov eax, dword [rsp + 0x64]
and eax, 0x100
test eax, eax
je 0x180006d60
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006df2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180006d87
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006df2
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180006dbb
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006df2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x180006dd6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x180006df2
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
jmp 0x180006df2
add rsp, 0x78
ret

Function at 0x180006e00
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180019f00
jmp 0x180006e48
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
ja 0x180006e67
jmp 0x180006f0b
cmp dword [rsp + 0x68], 0x1000
jne 0x180006e8c
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x180006e8c
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x180006e8e
jmp 0x180006e33
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180006ec4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180006ec4
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180006ec9
jmp 0x180006e33
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180006e33
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x20]
jmp 0x180006f0d
xor eax, eax
add rsp, 0x88
ret