joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004840
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x14000491e
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140004963
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400048f1
xor esi, esi
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea r15, [rsp + 0x20]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [rsp + 0x38]
call r12
cmp dword [rsp + 0x24], 1
je 0x1400048f1
mov eax, dword [rsp + 0x38]
add esi, eax
add esi, 0xa
cmp esi, 0xea60
ja 0x1400048f1
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x1400048c6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x140004910
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400049a6
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400049cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_open_service_manager.____lu_
mov r8d, eax
call fcn.140008ef0
xor ebx, ebx
jmp 0x1400049af
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004a0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140034f88]
lea rdx, str.Could_not_open_service.____lu_
mov r8d, eax
call fcn.140008ef0
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016030
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140035198]
call fcn.14000b2a0
cmp dword [0x140035198], 0xffffffff
jne 0x140004943
mov qword [0x140034f88], 0
lea rcx, [0x1400026f0]
call fcn.14000b458
lea rcx, [0x140035198]
call fcn.14000b308
jmp 0x140004943
lea rcx, [0x140035198]
call fcn.14000b2a0
cmp dword [0x140035198], 0xffffffff
jne 0x140004988
mov qword [0x140034f88], 0
lea rcx, [0x1400026f0]
call fcn.14000b458
lea rcx, [0x140035198]
call fcn.14000b308
jmp 0x140004988
Function at 0x140005d40
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp word [rcx], 0
je 0x140005e4c
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005dc3
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005e67
lea rcx, [0x140034f88]
lea rdx, str.Could_not_delete_service_updater_path:__ls.
mov r8, rsi
call fcn.140008ef0
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14000cd10
lea r8, str.updater.ini
mov rcx, rdi
mov rdx, rsi
call fcn.140009610
test eax, eax
je 0x140005e4c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140005e4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x140005e4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140005e4c
mov eax, dword [0x140035198]
mov ecx, dword [0x140033cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005ea8
lea rcx, [0x140034f88]
lea rdx, str.Could_not_delete_service_updater_INI_path:__ls.
lea r8, [rsp + 0x20]
call fcn.140008ef0
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140016030
nop
add rsp, 0x238
pop rdi
pop rsi
ret
lea rcx, [0x140035198]
call fcn.14000b2a0
cmp dword [0x140035198], 0xffffffff
jne 0x140005dad
mov qword [0x140034f88], 0
lea rcx, [0x1400026f0]
call fcn.14000b458
lea rcx, [0x140035198]
call fcn.14000b308
jmp 0x140005dad
lea rcx, [0x140035198]
call fcn.14000b2a0
cmp dword [0x140035198], 0xffffffff
jne 0x140005e34
mov qword [0x140034f88], 0
lea rcx, [0x1400026f0]
call fcn.14000b458
lea rcx, [0x140035198]
call fcn.14000b308
jmp 0x140005e34
Function at 0x140008ef0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
je 0x140008f7f
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.140013cc4
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsi]
call fcn.1400013c0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov r8, r14
xor r9d, r9d
call fcn.14000afe4
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140013cc4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140016030
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140009670
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140025028]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400096c6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000aeb8
cmp rax, 0x105
jb 0x1400096dd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016030
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000b080
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.1400246c0
test eax, eax
je 0x1400096c6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000972a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400096c6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.1400246c0
test eax, eax
je 0x1400096c6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000975f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400096c6
mov esi, 1
jmp 0x1400096c6
Function at 0x140009e60
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rdi, rcx
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140009f5c
mov r14, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140009f82
mov rdi, rax
mov dword [rsp + 0x3c], 0xcf
imul ebp, ebx, 0x3e8
test ebp, ebp
je 0x140009fac
xor esi, esi
lea r15, [rsp + 0x34]
lea r12, [rsp + 0x38]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, r12
mov r9d, 0x24
call rbx
test eax, eax
je 0x140009f13
cmp dword [rsp + 0x3c], 1
jne 0x140009f44
jmp 0x140009fcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x140009f30
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x140009f44
jmp 0x14000a01e
cmp eax, 0x79
jle 0x140009fd4
cmp eax, 0x41c
jne 0x140009fff
mov ecx, 0x32
call r13
add esi, 0x32
cmp esi, ebp
jb 0x140009eee
mov ebx, dword [rsp + 0x3c]
jmp 0x14000a03c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov ebx, 0xfd
cmovne ebx, ecx
jmp 0x14000a04d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x140009fb6
cmp edi, 5
je 0x140009fea
cmp edi, 6
jne 0x140009ff8
mov ebx, 0xec
jmp 0x14000a04d
mov ebx, 0xcf
jmp 0x14000a03c
cmp edi, 0x7b
je 0x140009ff1
cmp edi, 0x424
jne 0x140009ff8
mov ebx, 0xee
jmp 0x14000a04d
mov ebx, 1
jmp 0x14000a03c
cmp eax, 5
je 0x14000a010
cmp eax, 6
je 0x14000a017
cmp eax, 0x57
jne 0x14000a02c
mov ebx, 0xdc
jmp 0x14000a038
mov ebx, 0xeb
jmp 0x14000a04d
mov ebx, 0xed
jmp 0x14000a04d
mov ebx, 0xef
jmp 0x14000a04d
cmp eax, 0x7a
je 0x14000a033
cmp eax, 0x7c
jne 0x14000a02c
mov ebx, 0xdd
jmp 0x14000a038
mov ebx, 0xda
jmp 0x14000a038
mov ebx, 0xd9
jmp 0x14000a038
cmp eax, 0x45b
jne 0x14000a02c
mov ebx, 0xde
jmp 0x14000a038
mov ebx, 0xdf
jmp 0x14000a038
mov ebx, 0xdb
mov dword [rsp + 0x3c], ebx
mov rsi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call rsi
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140016030
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a070
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov ebp, edx
mov rbx, rcx
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
lea rsi, [rsp + 0x40]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000cd10
mov rcx, rsi
call fcn.140009670
test eax, eax
je 0x14000a0e5
xor edi, edi
lea rsi, [rsp + 0x250]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000cd10
lea rdx, str..status
mov rcx, rbx
mov r8, rsi
call fcn.140009770
test eax, eax
jne 0x14000a103
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140016030
mov eax, edi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call fcn.1400246c0
test eax, eax
je 0x14000a0e5
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor edi, edi
lea rcx, [rsp + 0x40]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14000a0e5
mov rbx, rax
lea rsi, [rsp + 0x250]
mov rcx, rsi
mov r8d, ebp
call fcn.140024650
mov rcx, rsi
call fcn.1400141f0
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rbp, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rsi
mov r8d, edi
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
setne al
cmp dword [rbp], edi
sete cl
and cl, al
movzx edi, cl
jmp 0x14000a0e5

Function at 0x14000a1c0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, 0x102
test edx, edx
je 0x14000a29f
mov r15d, edx
mov rbx, rcx
xor ebp, ebp
lea r12, [rsp + 0x54]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
lea r13, [rsp + 0x28]
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x14000a25c
mov rdi, rax
mov dword [rsp + 0x28], 0x238
mov rcx, rax
mov rdx, r13
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000a266
mov rcx, rbx
mov rdx, r12
call fcn.140012614
test eax, eax
je 0x14000a270
mov rcx, rdi
mov rdx, r13
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000a237
mov esi, 0x490
jmp 0x14000a272
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000a27b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000a272
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x490
je 0x14000a29d
mov ecx, 0x3e8
call r14
inc ebp
cmp ebp, r15d
jne 0x14000a20b
mov esi, 0x102
jmp 0x14000a29f
xor esi, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140016030
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a340
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14000cd10
mov rcx, rdi
call fcn.14000aeb8
cmp rax, 0x104
ja 0x14000a3bd
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.14000b080
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140016030
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret

Function at 0x140010958
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010a90
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140010af7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010af7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010af7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010af7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010af7
cmp dword [rcx + 0x84], 0xe
jbe 0x140010af7
cmp dword [rcx + 0xf8], 0
je 0x140010af7
mov ecx, ebx
call fcn.1400109dc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140010c24
cmp dword [rbp + 0x20], 0
je 0x140010b44
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010a38
int3

Function at 0x140012c98
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012cb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011604
or eax, 0xffffffff
jmp 0x140012cba
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001650
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.1400018a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x14000176b
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1400016b4
mov rax, qword [0x140027008]
cmp qword [rsp + 0x20], rax
ja 0x1400016b4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140001676
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140019680
nop
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1400016e6
jmp 0x14000176b
cmp dword [rsp + 0x50], 0x10000
jne 0x14000174e
cmp qword [rsp + 0x48], 0x10000
jb 0x14000174e
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 0x14000172c
mov rax, qword [rsp + 0x28]
jmp 0x14000176d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x14000173c
xor eax, eax
jmp 0x14000176d
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140001766
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1400018a0
mov qword [rsp + 0x20], rax
jmp 0x140001676
xor eax, eax
add rsp, 0x68
ret

Function at 0x140001780
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.1400018e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140001897
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1400017db
mov rax, qword [0x140027008]
cmp qword [rsp + 0x20], rax
ja 0x1400017db
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14000179d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140019680
nop
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14000180d
jmp 0x140001897
cmp dword [rsp + 0x50], 0x10000
jne 0x140001875
cmp qword [rsp + 0x48], 0x10000
jb 0x140001875
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 0x140001853
mov rax, qword [rsp + 0x28]
jmp 0x140001899
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140001863
xor eax, eax
jmp 0x140001899
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140001892
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400018e0
mov qword [rsp + 0x20], rax
jmp 0x14000179d
xor eax, eax
add rsp, 0x68
ret
Function at 0x140001930
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.140001ec0
mov qword [rsp + 0x28], 0
cmp qword [0x140027bc0], 0
jne 0x140001978
cmp qword [0x140027bb8], 0
je 0x140001978
mov rax, qword [0x140027bb8]
mov qword [0x140027bc0], rax
cmp qword [0x140027bc0], 0
je 0x140001a1e
mov rax, qword [0x140027bc0]
cmp qword [rax + 0x10], 0
je 0x140001a1e
mov rax, qword [0x140027bc0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x140001a1e
mov rax, qword [0x140027bc0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x140001a1e
mov rax, qword [0x140027bc0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1400019e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1400019eb
xor eax, eax
jmp 0x140001b95
mov rax, qword [0x140027bc0]
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.140019680
mov rax, qword [rsp + 0x28]
jmp 0x140001b95
mov rax, qword [0x140027bb8]
mov qword [0x140027bc0], rax
jmp 0x140001a40
mov rax, qword [0x140027bc0]
mov rax, qword [rax + 8]
mov qword [0x140027bc0], rax
cmp qword [0x140027bc0], 0
je 0x140001a8d
cmp qword [0x140027bc0], 0
je 0x140001a8b
mov rax, qword [0x140027bc0]
cmp qword [rax + 0x10], 0
je 0x140001a8b
mov rax, qword [0x140027bc0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x140001a8b
mov rax, qword [0x140027bc0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x140001a8b
jmp 0x1400019bc
jmp 0x140001a2e
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.140001ba0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001b93
mov rax, qword [rsp + 0x48]
mov qword [0x140027bc0], rax
mov rax, qword [0x140027bc0]
mov dword [rax], 0x52727464
mov rax, qword [0x140027bc0]
mov qword [rax + 0x10], 0
mov rax, qword [0x140027bc0]
mov rcx, qword [0x140027bb8]
mov qword [rax + 8], rcx
mov rax, qword [0x140027bc0]
mov qword [0x140027bb8], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140027bc0]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140001b44
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x140001b7e
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 0x140001b3a
mov rax, qword [0x140027bc0]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1400019bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400028b0
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 0x1400028f7
xor al, al
jmp 0x140002999
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 0x140002921
xor al, al
jmp 0x140002999
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 0x140002991
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 0x140002991
mov al, 1
jmp 0x140002999
jmp 0x140002997
xor al, al
add rsp, 0x78
ret

Function at 0x140002ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140027bb8]
mov qword [rsp + 0x28], rax
jmp 0x140002cc0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002cef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140002ced
call sub.KERNEL32.dll_GetLastError
jmp 0x140002cf1
jmp 0x140002cb2
xor eax, eax
add rsp, 0x38
ret