joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2230b1370
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0x48630
call fcn.2230b2180
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x485c0], rcx
mov dword [rbp + 0x485c8], edx
mov qword [rbp + 0x485d0], r8
cmp dword [rbp + 0x485c8], 1
jne 0x2230b1412
lea rax, [rbp - 0x60]
lea rdx, str.MZARUH
mov ecx, 0x48601
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x48601
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x485a8], rax
mov rax, qword [rbp + 0x485a8]
mov rcx, rax
lea rax, [rbp - 0x60]
mov edx, 0x48601
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x485a8]
call rax
mov eax, 0
jmp 0x2230b1417
mov eax, 1
add rsp, 0x48630
pop rbp
ret

Function at 0x2230b15c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x2230b1630
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2230ff064]
test esi, esi
mov rbx, rcx
jle 0x2230b1760
mov rax, qword [0x2230ff068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2230b167b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2230b1705
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2230b1660
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x2230b1782
mov rax, qword [0x2230ff068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2230ff068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2230b1767
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2230b16fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2230b1710
add dword [0x2230ff064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2230ff068]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2230b16fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x2230b1688
mov rax, qword [0x2230ff068]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2230b1b00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2230ff0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2230ff080]
test rbx, rbx
je 0x2230b1b5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2230b1b53
test rsi, rsi
je 0x2230b1b53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2230b1b38
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2230b1d70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2230b1d88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2230b1d90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x2230b1da0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x2230b1ded
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x2230b1de4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2230b1def
add rax, 0x28
cmp rax, r9
jne 0x2230b1dd0
xor eax, eax
ret

Function at 0x2230b1df0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2230b1e80
mov rdx, qword [0x2230fc830]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2230b1e6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2230b1e6e
cmp word [rax + 0x18], 0x20b
jne 0x2230b1e6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2230b1e80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2230b1e59
add rbx, 0x28
cmp rbx, rdi
je 0x2230b1e80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2230b1e50
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x2230fc830]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2230b1eb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2230b1eb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2230b1eb0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2230b1f0d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x2230b1f04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2230b1eb0
add rax, 0x28
cmp rax, r9
jne 0x2230b1ef0
xor eax, eax
ret

Function at 0x2230b1f10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2230fc830]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2230b1f2f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2230b1f38
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2230b1f2f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2230b1f50
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2230fc830]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2230b1f70
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2230b1f78
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2230b1f70
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x2230b1fc0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2230b1fb7
test rcx, rcx
je 0x2230b1f70
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x2230b1fa8
xor eax, eax
ret
Function at 0x2230b1fd0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2230fc830]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2230b1fef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2230b1ff8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x2230fc830]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2230b2030
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2230b2038
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2230b2030
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x2230b2030
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x2230b2084
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2230b2090
add rdx, 0x28
cmp r9, rdx
jne 0x2230b2070
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x2230fc830]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2230b20c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2230b20d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2230b20c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2230b20c2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x2230b20c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x2230b2125
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2230b2138
add rdx, 0x28
cmp rdx, r10
jne 0x2230b2110
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2230b2147
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2230b2157
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2230b212e
test ecx, ecx
jg 0x2230b2140
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1800ae830
Capabilities:
Get session user name

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x470], 0xfffffffffffffffe
mov dword [rbp + 0x464], 0x400
mov rax, qword [0x18033e780]
movabs rsi, 0xadc132f4b90eba02
movabs rdx, 0xa3c5e906b83c4937
mov rax, qword [rax + rsi]
add rax, rdx
mov qword [rbp + 0x468], rcx
call rax
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x464]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor ecx, ecx
test eax, eax
setne cl
shl rcx, 4
add rcx, qword [0x18033e788]
movabs rax, 0xadc132f4b90eba0a
movabs r14, 0xcd4811a4ad7e0b6a
mov rcx, qword [rax + rcx]
add rcx, r14
jmp rcx

Function at 0x1800b1d00
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [0x18033e880]
movabs rdx, 0xd9987ab0456be059
movabs r8, 0xf06a4d0b09abfabb
mov rax, qword [rax + rdx]
add rax, r8
mov qword [rbp - 8], rcx
call rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov rsi, rax
xor ecx, ecx
cmp byte [rax], 0
setne cl
shl rcx, 4
mov rax, qword [0x18033e888]
add rcx, rax
movabs r14, 0x89a5ef885a458a7d
movabs rbx, 0xd9987ab0456be059
mov rcx, qword [rbx + rcx]
add rcx, r14
jmp rcx

Function at 0x1800b1f60
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov rdi, rcx
mov rax, qword [0x18033e8a0]
movabs rbx, 0x6adb05a74fb8ba76
movabs rsi, 0xb3e4b91757aeac18
mov rax, qword [rax + rbx]
add rax, rsi
call rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov qword [rbp + 0x3f8], rax
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
mov rax, qword [0x18033e8a0]
movabs rcx, 0x6adb05a74fb8ba7e
mov rax, qword [rax + rcx]
add rax, rsi
movabs rdx, 0x6adb05a74fb8c0d2
add rdx, qword [0x18033e8a8]
lea rcx, [0x18037e05e]
call rax
mov rsi, qword [0x18033e8b0]
add rsi, rbx
mov rax, qword [0x18033e710]
movabs r15, 0xaf5845b17742b9cf
movabs r13, 0x2bb1d09e4f09a4c8
mov rax, qword [rax + r15]
add rax, r13
mov rcx, rsi
call rax
mov rcx, qword [0x18033e710]
movabs rdx, 0xaf5845b17742b9d7
mov rdx, qword [rcx + rdx]
add rdx, r13
mov rcx, rax
call rdx
mov rcx, qword [0x18033e710]
movabs rdx, 0xaf5845b17742b9df
mov r9, qword [rcx + rdx]
add r9, r13
mov qword [rbp + 0x408], rdi
mov rcx, rdi
mov rdx, rsi
mov r8, rax
call r9
mov rax, qword [rbp + 0x3f8]
mov rax, qword [rax + 0x18]
add rax, 0x20
xor edx, edx
cmp r12, rax
setne dl
mov rax, qword [0x18033e8b8]
lea rcx, [rax + rbx]
movabs r8, 0x531cc07651d0723e
mov rdx, qword [rcx + rdx*8]
add rdx, r8
jmp rdx
Function at 0x1800b2550
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1188
call fcn.180131170
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1100], 0xfffffffffffffffe
mov qword [rbp + 0x10f8], rcx
mov rax, qword [0x18033e8f0]
movabs rsi, 0xbb69d18a12438cb9
movabs rcx, 0x8187b75130024715
mov rax, qword [rax + rsi]
add rax, rcx
lea rcx, [rbp + 0x10c8]
call rax
lea rdi, [rbp - 0x60]
lea r8, [rbp + 0x10f4]
mov rcx, rdi
mov edx, 0x1000
call sub.KERNEL32.dll_K32EnumProcesses
xor ecx, ecx
test eax, eax
setne cl
shl rcx, 4
mov rax, qword [0x18033e8f8]
add rcx, rax
movabs rdx, 0xbb69d18a12438cd1
movabs r12, 0x67fe7648cc265d1f
mov rcx, qword [rdx + rcx]
add rcx, r12
jmp rcx

Function at 0x180129fd0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, gethostbyname
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18012a012
xor al, al
jmp 0x18012a090
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x18012a03c
xor al, al
jmp 0x18012a090
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x78], rax
jb 0x18012a088
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0xe8]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0xec]
add rax, rcx
cmp qword [rsp + 0x78], rax
jae 0x18012a088
mov al, 1
jmp 0x18012a090
xor al, al
jmp 0x18012a090
add rsp, 0x68
ret

Function at 0x18012a120
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180380dd0]
mov qword [rsp + 0x20], rax
jmp 0x18012a140
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18012a165
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x18012a132
add rsp, 0x38
ret
Function at 0x18012a170
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180380de8], eax
je 0x18012a18c
mov eax, 0x10dd
jmp 0x18012a2a9
mov rax, qword [0x180380e00]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18012a232
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
cmp dword [rax + 8], 0
jne 0x18012a202
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x20], 0
je 0x18012a202
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x20]
call fcn.18012a320
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180130e7c
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
jmp 0x18012a198
mov qword [0x180380e00], 0
call fcn.18012a2b0
mov rax, qword [0x180380df8]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18012a292
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.180130e7c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
jmp 0x18012a24e
mov qword [0x180380df8], 0
mov dword [0x180380de8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x18012aa20
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x52727464
je 0x18012aa3d
xor eax, eax
jmp 0x18012aad5
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
add rax, 0x10000
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x10], rax
mov dword [rsp + 0x18], 0
jmp 0x18012aa77
mov eax, dword [rsp + 0x18]
inc eax
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 0x2a9
jae 0x18012aad0
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
cmp qword [rcx + rax + 0x48], 0
je 0x18012aace
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp]
cmp qword [rcx + rax + 0x48], rdx
jb 0x18012aaca
movsxd rax, dword [rsp + 0x18]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 8]
cmp qword [rcx + rax + 0x48], rdx
jb 0x18012aace
xor eax, eax
jmp 0x18012aad5
jmp 0x18012aa6d
mov eax, 1
add rsp, 0x28
ret
Function at 0x18012b7d0
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.18012b8d0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18012b8c8
cmp qword [rsp + 0x20], 0x50000000
jb 0x18012b820
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x18012b820
mov eax, 0x80010000
mov qword [rsp + 0x20], rax
jmp 0x18012b7ed
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1801ad930
mov r8d, gethostbyname
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18012b84f
jmp 0x18012b8c8
cmp dword [rsp + 0x48], 0x10000
jne 0x18012b8a6
cmp qword [rsp + 0x40], 0x10000
jb 0x18012b8a6
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x18012b894
mov rax, qword [rsp + 0x58]
jmp 0x18012b8ca
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18012b8c3
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18012b8d0
mov qword [rsp + 0x20], rax
jmp 0x18012b7ed
xor eax, eax
add rsp, 0x68
ret

Function at 0x18012b920
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.18012ba30
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18012ba1b
cmp qword [rsp + 0x20], 0x50000000
jb 0x18012b978
mov eax, 0x80000000
cmp qword [rsp + 0x20], rax
ja 0x18012b978
mov qword [rsp + 0x20], 0x4fff0000
jmp 0x18012b946
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1801ad930
mov r8d, gethostbyname
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18012b9a7
jmp 0x18012ba1b
cmp dword [rsp + 0x48], 0x10000
jne 0x18012b9fe
cmp qword [rsp + 0x40], 0x10000
jb 0x18012b9fe
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x18012b9ec
mov rax, qword [rsp + 0x58]
jmp 0x18012ba1d
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18012ba16
mov rax, qword [rsp + 0x30]
sub rax, 0x10000
mov rcx, rax
call fcn.18012ba30
mov qword [rsp + 0x20], rax
jmp 0x18012b946
xor eax, eax
add rsp, 0x68
ret
Function at 0x18012bcb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
jne 0x18012bccf
mov qword [rsp + 0x20], 0x10000
jmp 0x18012bce2
mov rax, qword [rsp + 0x80]
add rax, 0x10000
mov qword [rsp + 0x20], rax
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.1801ad930
jmp 0x18012bd0b
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov r8d, gethostbyname
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18012bd2b
jmp 0x18012bdc8
cmp dword [rsp + 0x48], 0x1000
jne 0x18012bd50
mov eax, dword [rsp + 0x4c]
and eax, 0xff
cmp eax, 1
je 0x18012bd50
mov eax, dword [rsp + 0x4c]
and eax, 0x100
test eax, eax
je 0x18012bd52
jmp 0x18012bcf6
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18012bd88
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x40]
ja 0x18012bd88
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18012bd8d
jmp 0x18012bcf6
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x4550
jne 0x18012bcf6
mov rax, qword [rsp + 0x58]
jmp 0x18012bdca
xor eax, eax
add rsp, 0x78
ret
Function at 0x18012bdd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x60], 0
jne 0x18012bdf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18012be19
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18012bf97
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18012be51
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18012bf97
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18012be70
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18012bf97
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
jmp 0x18012be9c
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x38], eax
jae 0x18012bf79
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
lea rdx, str..detour
mov rcx, rax
call fcn.1801c1840
test eax, eax
jne 0x18012bf74
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], 0
je 0x18012bf01
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x10], 0
jne 0x18012bf03
jmp 0x18012bf79
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x18012bf49
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0x727444
je 0x18012bf4b
jmp 0x18012bf79
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
jne 0x18012bf65
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
mov dword [rax + 8], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x40]
jmp 0x18012bf97
jmp 0x18012be92
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18012bf97
add rsp, 0x58
ret