joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007714
Capabilities:
Copy file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x690
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov r14, r8
mov rdi, rdx
mov rbp, rcx
call qword [sym.imp.ole32.dll_CoImpersonateClient]
nop dword [rax + rax]
xor r15d, r15d
test eax, eax
js 0x140007943
mov qword [rsp + 0x30], r15
lea r12d, [r15 + 1]
mov r8d, r12d
mov dword [rsp + 0x28], Ordinal_134
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
call qword [sym.imp.ole32.dll_CoRevertToSelf]
nop dword [rax + rax]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007943
mov rcx, rdi
call fcn.1400081fc
mov rsi, rax
cmp rax, rdi
jne 0x1400077c2
mov edi, 0x80004005
jmp 0x1400078fb
or r9d, 0xffffffff
lea rax, [rsp + 0x250]
mov edi, 0x104
mov r8, rbp
mov dword [rsp + 0x28], edi
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x1400078b8
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], rsi
lea r8, str._s_s.dat
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140004454
mov edi, eax
test eax, eax
js 0x1400078fb
lea rcx, [rsp + 0x40]
call fcn.140006e14
mov edi, eax
test eax, eax
js 0x1400078fb
movzx eax, word [rsp + 0x40]
lea rcx, [rsp + 0x40]
jmp 0x140007858
cmp ax, 0x2f
jne 0x140007851
mov eax, 0x5c
mov word [rcx], ax
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140007843
xor r9d, r9d
lea rdx, [rsp + 0x460]
mov r8d, 0x10c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
nop dword [rax + rax]
cmp eax, 3
je 0x1400077b8
cmp eax, 8
je 0x1400077b8
cmp eax, 0x57
je 0x1400077b8
mov r8d, r12d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x460]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000790e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x1400078e0
jg 0x1400078e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
mov edi, eax
cmove edi, r12d
jmp 0x1400078fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r12d
movzx edi, ax
or edi, 0x80070000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
jmp 0x140007948
lea rcx, [rsp + 0x40]
call fcn.140009674
mov edi, eax
test eax, eax
js 0x1400078fb
mov rcx, qword [r14]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [r14], rax
jmp 0x1400078fb
mov eax, 0x80004005
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140001560
add rsp, 0x690
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007974
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, rcx
mov r14d, 1
mov rcx, qword [rdx]
mov ebx, r14d
mov rdi, rdx
call fcn.1400081fc
mov rsi, rax
cmp rax, qword [rdi]
je 0x140007b00
lea rax, [rsp + 0x240]
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbp
lea edx, [r14 + 7]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
jne 0x140007a38
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
je 0x140007a19
jg 0x140007a19
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r14d
jmp 0x140007b05
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
cmove eax, r14d
movzx eax, ax
or eax, 0x80070000
jmp 0x140007b05
cmp ebx, 0x1f4
jg 0x140007b00
mov eax, ebx
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x240]
mov dword [rsp + 0x20], eax
lea r8, str._s__d__s
mov edx, 0x104
lea rcx, [rsp + 0x30]
add ebx, r14d
call fcn.140004454
test eax, eax
js 0x140007a8a
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140007a38
lea rcx, [rsp + 0x30]
call fcn.140010354
mov ebx, eax
test eax, eax
js 0x140007afc
lea rcx, [rsp + 0x30]
call fcn.140006e14
mov ebx, eax
test eax, eax
js 0x140007afc
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
je 0x1400079f0
lea rcx, [rsp + 0x30]
call fcn.140009674
mov ebx, eax
test eax, eax
js 0x140007afc
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rdi], rax
mov eax, ebx
jmp 0x140007b05
mov eax, 0x80004005
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001560
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140007c94
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor edi, edi
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x140007d3a
cmp dword [rbx + 0x10], 0
jne 0x140007d31
cmp qword [rbx], 0
je 0x140007d31
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_memset
mov rdx, qword [rbx]
lea r9, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rsi
call fcn.140006eb4
test eax, eax
je 0x140007d2c
mov edx, 0x80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
test eax, eax
je 0x140007d2c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
test eax, eax
jne 0x140007d31
mov edi, 1
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140007cc5
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001560
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140007d68
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
and qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x2000000
mov edx, 0x20000
mov dword [rax - 0x28], 3
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007e56
and qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
lea rcx, [0x1400144dc]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
test eax, eax
je 0x140007e47
and qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400091cc
test eax, eax
js 0x140007e07
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
sete bl
jmp 0x140007e20
cmp eax, 0x8007053c
jne 0x140007e20
mov rcx, rsi
call fcn.1400101bc
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007e36
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140008954
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
and dword [rax - 0x20], 0
xor r8d, r8d
mov edx, 0x20000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008a3c
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
lea rcx, [0x14001434c]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
test eax, eax
je 0x140008a10
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400091cc
mov ebx, eax
test eax, eax
js 0x1400089fd
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
xor ebx, ebx
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
jmp 0x140008a2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008a2b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140008a57
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008a57
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140008b48
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax + 0x20], 0
mov rbp, rcx
lea rcx, [rax + 0x20]
mov rsi, rdx
mov edi, 0x80004005
call fcn.140007bb8
test eax, eax
js 0x140008c11
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x30]
and qword [rsp + 0x30], 0
call fcn.14000a0d4
test eax, eax
js 0x140008c00
mov rbx, qword [rsp + 0x30]
lea r8, str._s_s
mov r9, rbp
mov qword [rsp + 0x20], rbx
mov edx, 0x104
mov rcx, rsi
call fcn.140009e48
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test edi, edi
js 0x140008c00
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x140008c00
movzx edi, ax
or edi, 0x80070000
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140008c30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rbp + 0xf0], rax
cmp dword [0x1400177b0], 0
mov rdi, rdx
mov r14, rcx
mov esi, 1
mov ebx, 0x80004005
je 0x140008c8a
lea rcx, [0x1400177b8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp esi, 0x1f4
jg 0x140008cdd
mov eax, esi
lea r8, str._s_s_d.tmp
mov dword [rsp + 0x28], eax
mov r9, r14
lea rax, [0x140014364]
mov edx, 0x104
mov rcx, rdi
mov qword [rsp + 0x20], rax
inc esi
call fcn.140009e48
mov ebx, eax
test eax, eax
js 0x140008e16
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140008ce5
jmp 0x140008c8a
test ebx, ebx
js 0x140008e16
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
and qword [rsp + 0x48], 0
lea r9, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0xa0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400097e4
mov ebx, eax
test eax, eax
js 0x140008e16
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
nop dword [rax + rax]
mov esi, 0x80070000
test eax, eax
jne 0x140008d6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008d69
movzx ebx, ax
or ebx, esi
test ebx, ebx
js 0x140008dea
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor r8d, r8d
mov edx, 0x1f0000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008dd3
mov edx, 0x1240
mov r8d, 0x1200a9
mov rcx, rax
call qword [sym.imp.iertutil.dll_Ordinal_134]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140008dea
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140008dea
movzx ebx, ax
or ebx, esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008e00
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008e16
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp dword [0x1400177b0], 0
je 0x140008e32
lea rcx, [0x1400177b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140001560
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000a4e4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x50
and qword [rax - 0x30], 0
lea r9, [rax - 0x28]
and dword [rax + 8], 0
and dword [rax - 0x38], 0
mov qword [rax - 0x28], rcx
xor ecx, ecx
mov qword [rax - 0x20], rdx
xor edx, edx
mov qword [rax - 0x18], r8
lea r8, [0x14000a820]
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000a583
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop dword [rax + rax]
test eax, eax
jne 0x14000a56e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000a56a
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x60], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rsp + 0x60]
jmp 0x14000a59b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000a59b
movzx eax, ax
or eax, 0x80070000
add rsp, 0x50
pop rbx
ret

Function at 0x14000bba8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14000bc83
mov esi, 0x10000
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x14000bbf8
mov ebx, 0x4fff0000
jmp 0x14000bc7a
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x14000bc83
cmp dword [rsp + 0x40], esi
jne 0x14000bc5e
cmp qword [rsp + 0x38], rsi
jb 0x14000bc5e
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
test rax, rax
jne 0x14000bc85
sub rbx, rsi
jmp 0x14000bc7a
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x14000bbdf
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000bc9c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
mov esi, 0x10000
test rax, rax
je 0x14000bcc4
sub rbx, rax
add rbx, rsi
cmp rbx, rdi
jae 0x14000bd6e
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x14000bce3
mov ebx, 0x80010000
jmp 0x14000bcc4
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x14000bd6e
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x40], esi
jne 0x14000bd4c
cmp rcx, rsi
jb 0x14000bd4c
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
test rax, rax
jne 0x14000bd70
jmp 0x14000bcc1
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14000bcc4
mov rax, rsi
sub rax, rcx
add rbx, rax
jmp 0x14000bcc4
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000bd88
Capabilities:
Hook routines via microsoft detours

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 r15
sub rsp, 0x20
mov rbx, rcx
cmp rcx, 0x7ff80000
jbe 0x14000bdc6
lea rsi, [rcx - 0x7ff80000]
cmp rcx, 0xffffffff80000000
jb 0x14000bdcb
mov rbp, 0xfffffffffff80000
jmp 0x14000bdd2
mov esi, 0x10000
lea rbp, [rcx + 0x7ff80000]
mov rdx, qword [0x140017830]
xor edi, edi
mov rax, qword [0x140017820]
test rdx, rdx
jne 0x14000bdf6
test rax, rax
je 0x14000be0c
mov rdx, rax
mov qword [0x140017830], rax
cmp qword [rdx + 0x10], rdi
je 0x14000be0c
cmp qword [rdx + 0x10], rsi
jb 0x14000be0c
cmp qword [rdx + 0x10], rbp
jbe 0x14000bf43
mov qword [0x140017830], rax
mov rdx, rax
test rax, rax
je 0x14000be46
test rax, rax
je 0x14000be36
cmp qword [rdx + 0x10], rdi
je 0x14000be36
cmp qword [rdx + 0x10], rsi
jb 0x14000be36
cmp qword [rdx + 0x10], rbp
jbe 0x14000bf43
mov rdx, qword [rdx + 8]
mov qword [0x140017830], rdx
test rdx, rdx
jne 0x14000be20
movzx eax, bx
movabs r15, 0xffffffff40000000
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x14000be7b
lea rdx, [rbx - 0x40000000]
mov rcx, rsi
call fcn.14000bba8
mov rdx, rax
test rax, rax
jne 0x14000bef4
cmp rbx, r15
jae 0x14000be9b
lea rcx, [rbx + 0x40000000]
mov rdx, rbp
call fcn.14000bc9c
mov rdx, rax
test rax, rax
jne 0x14000bef4
cmp rbx, 0x40000000
jbe 0x14000beb2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.14000bc9c
mov rdx, rax
test rax, rax
jne 0x14000bef4
cmp rbx, r15
jae 0x14000bece
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.14000bba8
mov rdx, rax
test rax, rax
jne 0x14000bef4
mov rdx, rbx
mov rcx, rsi
call fcn.14000bba8
mov rdx, rax
test rax, rax
jne 0x14000bef4
mov rdx, rbp
mov rcx, rbx
call fcn.14000bc9c
mov rdx, rax
test rax, rax
je 0x14000bf6f
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
mov qword [rdx + 0x10], rdi
mov r8d, 0x2a7
mov rax, qword [0x140017820]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x140017820], rdx
mov qword [0x140017830], rdx
mov qword [rcx], rdi
mov rdi, rax
sub rax, 0x60
lea rcx, [rcx - 0x60]
sub r8, 1
jne 0x14000bf2b
mov qword [rdx + 0x10], rdi
mov rbx, qword [rdx + 0x10]
cmp rbx, rsi
jb 0x14000bf6f
cmp rbx, rbp
ja 0x14000bf6f
mov rcx, qword [rbx + 0x48]
mov qword [rdx + 0x10], rcx
mov edx, 0xcc
mov rcx, rbx
lea r8d, [rdx - 0x6c]
call sub.msvcrt.dll_memset
mov rax, rbx
jmp 0x14000bf71
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14000bf94
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14000bfc8
xor al, al
jmp 0x14000c006
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14000bfd9
xor al, al
jmp 0x14000c006
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x14000c000
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x14000c000
mov al, 1
jmp 0x14000c006
xor al, al
jmp 0x14000c006
add rsp, 0x50
pop rbx
ret
Function at 0x14000c43c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
cmp dword [0x140017840], eax
je 0x14000c474
mov eax, 0x10dd
jmp 0x14000c588
mov eax, dword [0x140017844]
test eax, eax
jne 0x14000c588
test rbp, rbp
jne 0x14000c48f
lea eax, [rbp + 0x57]
jmp 0x14000c588
test rsi, rsi
jne 0x14000c49c
lea eax, [rsi + 6]
jmp 0x14000c588
cmp qword [rsi], 0
jne 0x14000c4b2
mov eax, 6
mov dword [0x140017844], eax
jmp 0x14000c581
mov ecx, 0x30
call fcn.140001bcc
mov rbx, rax
test rax, rax
jne 0x14000c4cc
lea edi, [rax + 8]
jmp 0x14000c56c
mov rcx, qword [rsi]
call fcn.14000c398
mov rcx, rbp
mov rdi, rax
call fcn.14000c398
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x14000c55e
mov edx, ecx
cmp rcx, 0x1e
ja 0x14000c55e
cmp qword [rdi + 0x50], rax
jne 0x14000c55e
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
test eax, eax
jne 0x14000c52f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14000c56c
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x28], eax
mov rax, qword [0x140017800]
mov qword [rbx], rax
xor eax, eax
mov qword [0x140017800], rbx
jmp 0x14000c588
cmp dword [0x140017808], 0
mov edi, 9
jne 0x14000c577
mov dword [0x140017844], edi
test rbx, rbx
je 0x14000c57f
mov rcx, rbx
call fcn.140001c04
mov eax, edi
mov qword [0x140017828], rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14000c5a4
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
cmp dword [0x140017840], eax
je 0x14000c5d1
mov eax, 0x10dd
jmp 0x14000c6d3
mov rbx, qword [0x140017838]
jmp 0x14000c5ed
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax + rax]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000c5da
mov rdi, qword [0x140017810]
test rdi, rdi
je 0x14000c635
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax + rax]
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14000c5fe
mov rdi, qword [0x140017810]
test rdi, rdi
je 0x14000c635
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140001c04
mov rdi, rbx
test rbx, rbx
jne 0x14000c622
and qword [0x140017810], 0
and qword [0x140017838], 0
mov rdi, qword [0x140017800]
test rdi, rdi
je 0x14000c6bd
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x30]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x3e]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
cmp dword [rdi + 8], 0
jne 0x14000c6aa
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x14000c6aa
xor edx, edx
mov rbx, rsi
mov rcx, rsi
and rbx, 0xffffffffffff0000
lea r8d, [rdx + 0x60]
call sub.msvcrt.dll_memset
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
and qword [rdi + 0x20], 0
mov rbx, qword [rdi]
mov rcx, rdi
call fcn.140001c04
mov rdi, rbx
test rbx, rbx
jne 0x14000c651
and qword [0x140017800], 0
call fcn.14000c014
and dword [0x140017840], 0
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c6ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140017840], 0
jne 0x14000c771
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x140017840], ecx
jne 0x14000c771
and qword [0x140017800], 0
and qword [0x140017810], 0
and qword [0x140017838], 0
and dword [0x140017844], 0
and qword [0x140017828], 0
mov rbx, qword [0x140017820]
jmp 0x14000c768
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000c745
xor eax, eax
jmp 0x14000c776
mov eax, 0x10dd
add rsp, 0x20
pop rbx
ret