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

Disassembly:
mov rax, qword [0x140013960]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400024d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400024d8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140013960]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002510
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002518
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002510
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002510
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002554
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002568
add rax, 0x28
cmp r9, rax
jne 0x140002540
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002580
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140013960]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025a2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400025a2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400025fd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002610
add rdx, 0x28
cmp r10, rdx
jne 0x1400025e8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000261f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000262f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002606
test ecx, ecx
jg 0x140002618
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003ca0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400139e0]
mov rax, qword [rsi]
test rax, rax
je 0x140003d30
cmp qword [rax + 0x30], 0
jne 0x140003d50
lea rbx, [0x140012078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003d00
cmp qword [rax + 0x30], 0
jne 0x140003d20
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003ce2
test rax, rax
jne 0x140003d20
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003cf0
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003cc0
test rax, rax
jne 0x140003d50
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003ccb
Function at 0x140007920
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400139e0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x1400079f0
cmp qword [rax + 0x60], 0
jne 0x140007a10
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007a20
cmp qword [rax + 0x1d8], r12
jne 0x140007a20
test byte [rax + 0x40], 0xc
jne 0x140007a20
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007a20
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007a20
mov rax, qword [rbx]
test rax, rax
je 0x140007a80
cmp qword [rax + 0x60], 0
jne 0x140007aa0
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007ab0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007ab8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000794b
test rax, rax
jne 0x140007a10
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007956
mov rax, qword [rbx]
test rax, rax
je 0x140007a50
cmp qword [rax + 0x60], 0
jne 0x140007a70
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x140007a2f
test rax, rax
jne 0x140007a70
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007a3a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400079ba
test rax, rax
jne 0x140007aa0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400079c5
xor eax, eax
jmp 0x140007a44
mov eax, 0x16
jmp 0x140007a44
Function at 0x180004300
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x18000436e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x18000436e
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x18000436e
xor eax, eax
jmp 0x1800043b5
mov dword [rsp], 1
jmp 0x18000437f
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x1800043b0
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1800043ae
xor eax, eax
jmp 0x1800043b5
jmp 0x180004377
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x1d65fbe60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1d65fc862
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1d670e108]
test eax, eax
je 0x1d65fc8fa
lea rax, [0x1d670e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1d670e110]
mov qword [rbp - 8], rax
jmp 0x1d65fc8de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1d65fc8d2
cmp qword [rbp - 0x10], 0
je 0x1d65fc8d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1d65fc898
lea rax, [0x1d670e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1d65fc8fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1d65fca00
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1d65fca28
mov eax, 0
jmp 0x1d65fca76
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1d65fca51
mov eax, 0
jmp 0x1d65fca76
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1d65fca71
mov eax, 0
jmp 0x1d65fca76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1d65fca7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1d65fcafa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1d65fcaf1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1d65fcaf1
mov rax, qword [rbp - 8]
jmp 0x1d65fcb0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1d65fcac4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1d6607830
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call rcx
nop
jmp method.__cxxabiv1.__terminate_void________clone_.cold_

Function at 0x1d6608870
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1d66b1f40], 0
jne 0x1d6608973
mov byte [0x1d66b1f40], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1d6608948
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1d6608939
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1d66db331]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1d66adbe7
jmp 0x1d66adbdf
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x1d6608907
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
nop
jmp 0x1d66adbda
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop

Function at 0x1d6667b00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x1d6667b48
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1d6667b1a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x18002f3a0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800cae18], eax
je 0x18002f3bb
mov eax, 0x10dd
jmp 0x18002f4e0
mov rax, qword [0x1800cae30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002f465
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 0x18002f430
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x18002f430
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180031860
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.18002ed54
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x18002f3c7
mov qword [0x1800cae30], 0
call fcn.180031170
mov rax, qword [0x1800cae28]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18002f4c9
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.18002ed54
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x18002f481
mov qword [0x1800cae28], 0
mov dword [0x1800cae18], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800302d0
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 0x180030317
xor al, al
jmp 0x1800303b9
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 0x180030341
xor al, al
jmp 0x1800303b9
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 0x1800303b1
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 0x1800303b1
mov al, 1
jmp 0x1800303b9
jmp 0x1800303b7
xor al, al
add rsp, 0x78
ret

Function at 0x180031110
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800cae00]
mov qword [rsp + 0x28], rax
jmp 0x180031130
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18003115f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18003115d
call sub.KERNEL32.dll_GetLastError
jmp 0x180031161
jmp 0x180031122
xor eax, eax
add rsp, 0x38
ret

Function at 0x180031270
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.180031220
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180031386
mov rax, qword [0x18003fbe8]
cmp qword [rsp + 0x20], rax
jb 0x1800312cb
mov rax, qword [0x18003fbf0]
cmp qword [rsp + 0x20], rax
ja 0x1800312cb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18003128d
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800312fc
jmp 0x180031386
cmp dword [rsp + 0x50], 0x10000
jne 0x180031364
cmp qword [rsp + 0x48], 0x10000
jb 0x180031364
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 0x180031342
mov rax, qword [rsp + 0x28]
jmp 0x180031388
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180031352
xor eax, eax
jmp 0x180031388
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180031381
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180031220
mov qword [rsp + 0x20], rax
jmp 0x18003128d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180031390
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.1800311e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800314aa
mov rax, qword [0x18003fbe8]
cmp qword [rsp + 0x20], rax
jb 0x1800313f4
mov rax, qword [0x18003fbf0]
cmp qword [rsp + 0x20], rax
ja 0x1800313f4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800313b6
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 sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180031425
jmp 0x1800314aa
cmp dword [rsp + 0x50], 0x10000
jne 0x18003148d
cmp qword [rsp + 0x48], 0x10000
jb 0x18003148d
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 0x18003146b
mov rax, qword [rsp + 0x28]
jmp 0x1800314ac
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18003147b
xor eax, eax
jmp 0x1800314ac
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800314a5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800311e0
mov qword [rsp + 0x20], rax
jmp 0x1800313b6
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800315f0
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.180030730
mov qword [rsp + 0x28], 0
cmp qword [0x1800cae08], 0
jne 0x180031638
cmp qword [0x1800cae00], 0
je 0x180031638
mov rax, qword [0x1800cae00]
mov qword [0x1800cae08], rax
cmp qword [0x1800cae08], 0
je 0x1800316de
mov rax, qword [0x1800cae08]
cmp qword [rax + 0x10], 0
je 0x1800316de
mov rax, qword [0x1800cae08]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800316de
mov rax, qword [0x1800cae08]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800316de
mov rax, qword [0x1800cae08]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800316a4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800316ab
xor eax, eax
jmp 0x180031855
mov rax, qword [0x1800cae08]
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 0x180031855
mov rax, qword [0x1800cae00]
mov qword [0x1800cae08], rax
jmp 0x180031700
mov rax, qword [0x1800cae08]
mov rax, qword [rax + 8]
mov qword [0x1800cae08], rax
cmp qword [0x1800cae08], 0
je 0x18003174d
cmp qword [0x1800cae08], 0
je 0x18003174b
mov rax, qword [0x1800cae08]
cmp qword [rax + 0x10], 0
je 0x18003174b
mov rax, qword [0x1800cae08]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18003174b
mov rax, qword [0x1800cae08]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18003174b
jmp 0x18003167c
jmp 0x1800316ee
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.1800314c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180031853
mov rax, qword [rsp + 0x48]
mov qword [0x1800cae08], rax
mov rax, qword [0x1800cae08]
mov dword [rax], 0x52727464
mov rax, qword [0x1800cae08]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800cae08]
mov rcx, qword [0x1800cae00]
mov qword [rax + 8], rcx
mov rax, qword [0x1800cae08]
mov qword [0x1800cae00], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800cae08]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180031804
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18003183e
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 0x1800317fa
mov rax, qword [0x1800cae08]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18003167c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180001000
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1800a42b8], 0
jne 0x18000109a
cmp dword [0x1800a40a0], 0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
lea rdi, [0x1800a40b0]
mov dword [0x1800a42b8], 1
jne 0x18000104f
mov edx, 0x104
mov rcx, rdi
mov dword [0x1800a40a0], 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
lea rbx, [0x1800a42c0]
mov ecx, esi
nop word [rax + rax]
movzx eax, word [rcx + rdi]
add rcx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x180001060
mov edx, 0x5c
mov rcx, rbx
call fcn.1800138a0
mov rdi, qword [rsp + 0x38]
test rax, rax
je 0x18000108c
mov word [rax], si
mov rax, rbx
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rax, [0x1800a42c0]
add rsp, 0x20
pop rbx
ret