Function at 0x10767b0
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x368
mov dword [rsp + 0x48], 0
mov eax, dword [section..ex_cod]
lea rcx, section..ex_cod
add rcx, rax
mov rax, rcx
mov qword [0x01076034], rax
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x107685a
cmp dword [rsp + 0x378], 1
jne 0x107683d
mov rax, qword [rsp + 0x370]
mov qword [0x01076050], rax
cmp qword [0x01076064], 0
jne 0x107683d
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x320
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x01076064], rax
cmp dword [0x01076044], 0
je 0x1076850
jmp 0x1077501
mov dword [0x01076044], 1
mov rax, qword [0x01076034]
cmp dword [rax + 0x70], 0
jne 0x107689c
xor ecx, ecx
call fcn.01078bcc
mov qword [rsp + 0x308], rax
mov ecx, 1
call fcn.01078bcc
mov r9d, pe_nt_image_headers64
mov rcx, qword [rsp + 0x308]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01076790
mov qword [0x0107603c], rax
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x270], rax
mov r8d, 0x104
lea rdx, [rsp + 0x160]
mov rcx, qword [0x01076050]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, eax
lea rax, [rsp + rax + 0x15f]
mov qword [rsp + 0x2d8], rax
mov rax, qword [rsp + 0x2d8]
movsx eax, byte [rax]
cmp eax, 0x5c
je 0x107691c
mov rax, qword [rsp + 0x2d8]
sub rax, 1
mov qword [rsp + 0x2d8], rax
jmp 0x10768f6
mov rax, qword [rsp + 0x2d8]
add rax, 1
mov qword [rsp + 0x2d8], rax
lea rax, [rsp + 0x160]
mov rcx, qword [rsp + 0x2d8]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x280], eax
mov r8d, dword [rsp + 0x280]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x50]
call fcn.01076710
mov eax, dword [rsp + 0x280]
add eax, 1
cdqe
mov byte [rsp + rax + 0x50], 0
mov dword [rsp + 0x2a8], 0
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x4000000
test eax, eax
jne 0x10769a9
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x10769ff
call fcn.01077a70
mov dword [rsp + 0x2a8], eax
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x4000000
test eax, eax
je 0x10769ff
cmp dword [rsp + 0x2a8], 0
je 0x10769ff
mov ecx, 0x18
call fcn.01078bcc
mov r9d, pe_nt_image_headers64
mov r8, qword [rsp + 0x2d8]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10775de
mov rax, qword [0x0107603c]
mov qword [rsp + 0x288], rax
mov rax, qword [rsp + 0x288]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [0x01076034]
cmp dword [rax + 0x9c], 0
je 0x1076b2c
mov rax, qword [0x01076034]
mov eax, dword [rax + 0xb4]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x30], rax
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x290], eax
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2a0], rax
mov r8, qword [rsp + 0x278]
mov rax, qword [0x01076034]
mov edx, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x2a0]
call fcn.010764d0
mov rax, qword [0x01076034]
mov edx, dword [rax + 0xa0]
mov ecx, dword [rsp + 0x30]
call fcn.01078528
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x1076b1d
mov ecx, 2
call fcn.01078bcc
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x30
mov r8, qword [rsp + 0x2d8]
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10775de
mov rax, qword [0x01076034]
cmp dword [rax + 0x98], 0
je 0x1076d50
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x5c]
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x278], rax
cmp qword [rsp + 0x278], 0
jne 0x1076bab
mov ecx, 3
call fcn.01078bcc
mov r9d, 0x30
mov r8, qword [rsp + 0x2d8]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10775de
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x290], eax
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x310], rax
xor edx, edx
mov rcx, qword [0x01076034]
mov eax, dword [rcx + 0xac]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x3c]
mov eax, edx
mov eax, eax
mov rcx, qword [rsp + 0x310]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2a0], rax
mov r8, qword [rsp + 0x278]
mov rax, qword [0x01076034]
mov edx, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x2a0]
call fcn.010764d0
jmp 0x1076c38
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [0x01076034]
movzx eax, word [rax + 0xa4]
cmp dword [rsp + 0x48], eax
jge 0x1076d38
cmp dword [rsp + 0x2a8], 0
je 0x1076c9a
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x1076c9a
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
mov eax, dword [rcx + rax + 0xbc]
and eax, 0x10000000
test eax, eax
je 0x1076c9a
mov dword [rsp + 0x318], 1
jmp 0x1076ca5
mov dword [rsp + 0x318], 0
mov eax, dword [rsp + 0x318]
mov dword [rsp + 0x2e8], eax
cmp dword [rsp + 0x2e8], 0
jne 0x1076d06
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
movsxd rcx, dword [rsp + 0x48]
imul rcx, rcx, 0x18
mov rdx, qword [0x01076034]
mov ecx, dword [rdx + rcx + 0xb4]
mov rdx, qword [0x0107603c]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [0x01076034]
mov r8d, dword [rdx + rax + 0xb0]
mov rdx, qword [rsp + 0x278]
call fcn.01076710
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
mov eax, dword [rcx + rax + 0xb0]
mov rcx, qword [rsp + 0x278]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
jmp 0x1076c2d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1076f25
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov rcx, qword [0x01076034]
mov ecx, dword [rcx + 0x64]
sub rax, rcx
mov qword [rsp + 0x320], rax
xor edx, edx
mov rcx, qword [0x01076034]
mov eax, dword [rcx + 0xac]
mov rcx, qword [rsp + 0x40]
div dword [rcx + 0x3c]
mov eax, edx
mov eax, eax
mov rcx, qword [rsp + 0x320]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x48], 0
jmp 0x1076dbf
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [0x01076034]
movzx eax, word [rax + 0xa4]
cmp dword [rsp + 0x48], eax
jge 0x1076f25
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
cmp dword [rcx + rax + 0xa8], 0
je 0x1076f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
cmp dword [rcx + rax + 0xb0], 0
jbe 0x1076f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
mov eax, dword [rcx + rax + 0xb4]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
mov eax, dword [rcx + rax + 0xb0]
mov dword [rsp + 0x290], eax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
mov eax, dword [rcx + rax + 0xac]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2a0], rax
cmp dword [rsp + 0x2a8], 0
je 0x1076ed1
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x1076ed1
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x01076034]
mov eax, dword [rcx + rax + 0xbc]
and eax, 0x10000000
test eax, eax
je 0x1076ed1
mov dword [rsp + 0x328], 1
jmp 0x1076edc
mov dword [rsp + 0x328], 0
mov eax, dword [rsp + 0x328]
mov dword [rsp + 0x2ec], eax
cmp dword [rsp + 0x2ec], 0
jne 0x1076f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov r8, qword [rsp + 0x278]
mov rcx, qword [0x01076034]
mov edx, dword [rcx + rax + 0xb0]
mov rcx, qword [rsp + 0x2a0]
call fcn.010764d0
jmp 0x1076db4
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x84]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2d0], rax
mov dword [rsp + 0x2b8], 0
mov rax, qword [rsp + 0x2d0]
cmp dword [rax + 0xc], 0
je 0x10773e8
mov rax, qword [0x01076034]
cmp dword [rax + 0x84], 0
je 0x10773e8
mov dword [rsp + 0x2f0], 0
lea r9, [rsp + 0x2ac]
mov r8d, 0x40
mov edx, 0x14
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x2d0]
mov eax, dword [rax + 0xc]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x298], rax
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x2e0], rax
cmp qword [rsp + 0x2e0], 0
jne 0x1077019
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x2e0], rax
cmp qword [rsp + 0x2e0], 0
je 0x1077019
mov dword [rsp + 0x2f0], 1
cmp qword [rsp + 0x2e0], 0
jne 0x10770e2
mov rax, qword [rsp + 0x298]
mov qword [rsp + 0x330], rax
movsxd rax, dword [rsp + 0x280]
lea rax, [rsp + rax + 0x50]
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x340], rax
mov rax, qword [rsp + 0x330]
mov al, byte [rax]
mov byte [rsp + 0x348], al
mov rax, qword [rsp + 0x338]
mov cl, byte [rsp + 0x348]
mov byte [rax], cl
mov rax, qword [rsp + 0x330]
add rax, 1
mov qword [rsp + 0x330], rax
mov rax, qword [rsp + 0x338]
add rax, 1
mov qword [rsp + 0x338], rax
cmp byte [rsp + 0x348], 0
jne 0x107705d
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x2e0], rax
cmp qword [rsp + 0x2e0], 0
je 0x10770e2
mov dword [rsp + 0x2f0], 1
cmp qword [rsp + 0x2e0], 0
jne 0x1077138
mov ecx, 4
call fcn.01078bcc
mov r8, qword [rsp + 0x298]
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x30
mov r8, qword [rsp + 0x2d8]
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10775de
cmp dword [rsp + 0x2f0], 0
je 0x1077177
cmp qword [0x01076064], 0
je 0x1077177
mov eax, dword [rsp + 0x2e0]
movsxd rcx, dword [rsp + 0x2b8]
mov rdx, qword [0x01076064]
mov qword [rdx + rcx*8], rax
mov eax, dword [rsp + 0x2b8]
add eax, 1
mov dword [rsp + 0x2b8], eax
mov rax, qword [rsp + 0x2d0]
mov eax, dword [rax + 0x10]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2d0]
cmp dword [rax], 0
jne 0x10771b6
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x2b0], rax
jmp 0x10771d5
mov rax, qword [rsp + 0x2d0]
mov eax, dword [rax]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2b0], rax
mov rax, qword [rsp + 0x2b0]
cmp qword [rax], 0
je 0x10773cf
mov qword [rsp + 0x2f8], 0
mov rax, qword [rsp + 0x2b0]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x107723f
mov rax, qword [rsp + 0x2b0]
mov rax, qword [rax]
and rax, 0xffff
movzx eax, ax
mov rdx, rax
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x2f8], rax
jmp 0x1077277
mov rax, qword [rsp + 0x2b0]
mov eax, dword [rax]
add rax, qword [0x0107603c]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x2f8], rax
cmp qword [rsp + 0x2f8], 0
jne 0x1077366
mov rax, qword [rsp + 0x2b0]
mov eax, dword [rax]
movabs rcx, 0x8000000000000000
and rax, rcx
test rax, rax
je 0x10772f5
mov rax, qword [rsp + 0x2b0]
mov rax, qword [rax]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x34c], eax
mov ecx, 5
call fcn.01078bcc
mov ecx, dword [rsp + 0x34c]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x298]
mov r8, qword [rsp + 0x2d8]
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x107733e
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x350], rax
mov ecx, 6
call fcn.01078bcc
mov rcx, qword [rsp + 0x350]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x298]
mov r8, qword [rsp + 0x2d8]
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x30
mov r8, qword [rsp + 0x2d8]
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10775de
lea r9, [rsp + 0x2ac]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x2c8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 8
lea rdx, [rsp + 0x2f8]
mov rcx, qword [rsp + 0x2c8]
call fcn.01076710
mov rax, qword [rsp + 0x2b0]
add rax, 8
mov qword [rsp + 0x2b0], rax
mov rax, qword [rsp + 0x2c8]
add rax, 8
mov qword [rsp + 0x2c8], rax
jmp 0x10771d5
mov rax, qword [rsp + 0x2d0]
add rax, 0x14
mov qword [rsp + 0x2d0], rax
jmp 0x1076f52
call fcn.010776b0
test eax, eax
jne 0x1077434
mov ecx, 7
call fcn.01078bcc
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, pe_nt_image_headers64
mov r8, qword [rsp + 0x2d8]
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10775de
mov rax, qword [0x01076034]
cmp dword [rax + 0x94], 0
je 0x1077449
call fcn.01077980
mov rax, qword [0x01076034]
mov eax, dword [rax + 0x6c]
mov rcx, qword [0x0107603c]
add rcx, rax
mov rax, rcx
mov qword [0x0107605c], rax
lea r9, [rsp + 0x2ac]
mov r8d, 0x40
mov edx, 0x1000
mov rcx, qword [0x0107603c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x2c0]
mov eax, dword [rax + 0x24]
and eax, 0x80000000
test eax, eax
je 0x10774e4
mov rax, qword [rsp + 0x2c0]
add rax, 0x24
mov qword [rsp + 0x300], rax
mov rax, qword [rsp + 0x2c0]
mov eax, dword [rax + 0x24]
sub eax, 0x80000000
mov rcx, qword [rsp + 0x300]
mov dword [rcx], eax
xor r9d, r9d
mov r8d, dword [rsp + 0x2ac]
mov edx, 0x1000
mov rcx, qword [0x0107603c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x10775d2
cmp dword [rsp + 0x378], 0
jne 0x10775a0
cmp qword [rsp + 0x270], 0
je 0x1077543
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [0x01076048], 0
je 0x1077562
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [0x01076048]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [0x01076034]
cmp dword [rax + 0x6c], 0
je 0x1077594
cmp dword [0x01076058], 0
jne 0x1077594
mov r8, qword [rsp + 0x380]
mov edx, dword [rsp + 0x378]
mov rcx, qword [0x01076050]
call qword [0x0107605c]
call fcn.01077620
mov eax, 1
jmp 0x1077611
mov rax, qword [0x01076034]
cmp dword [rax + 0x6c], 0
jne 0x10775b4
mov eax, 1
jmp 0x1077611
mov r8, qword [rsp + 0x380]
mov edx, dword [rsp + 0x378]
mov rcx, qword [0x01076050]
call qword [0x0107605c]
jmp 0x1077611
mov rcx, qword [0x0107605c]
call fcn.01078c54
mov rax, qword [0x01076034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x1077609
cmp dword [rsp + 0x378], 1
jne 0x1077609
mov dword [0x01076058], 1
xor eax, eax
jmp 0x1077611
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x368
ret