Function at 0x4927b0
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 [0x00492034], rax
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x49285a
cmp dword [rsp + 0x378], 1
jne 0x49283d
mov rax, qword [rsp + 0x370]
mov qword [0x00492050], rax
cmp qword [0x00492064], 0
jne 0x49283d
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x320
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x00492064], rax
cmp dword [0x00492044], 0
je 0x492850
jmp 0x493501
mov dword [0x00492044], 1
mov rax, qword [0x00492034]
cmp dword [rax + 0x70], 0
jne 0x49289c
xor ecx, ecx
call fcn.00494bcc
mov qword [rsp + 0x308], rax
mov ecx, 1
call fcn.00494bcc
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.00492790
mov qword [0x0049203c], 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 [0x00492050]
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 0x49291c
mov rax, qword [rsp + 0x2d8]
sub rax, 1
mov qword [rsp + 0x2d8], rax
jmp 0x4928f6
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.00492710
mov eax, dword [rsp + 0x280]
add eax, 1
cdqe
mov byte [rsp + rax + 0x50], 0
mov dword [rsp + 0x2a8], 0
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x4000000
test eax, eax
jne 0x4929a9
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x4929ff
call fcn.00493a70
mov dword [rsp + 0x2a8], eax
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x4000000
test eax, eax
je 0x4929ff
cmp dword [rsp + 0x2a8], 0
je 0x4929ff
mov ecx, 0x18
call fcn.00494bcc
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 0x4935de
mov rax, qword [0x0049203c]
mov qword [rsp + 0x288], rax
mov rax, qword [rsp + 0x288]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [0x00492034]
cmp dword [rax + 0x9c], 0
je 0x492b2c
mov rax, qword [0x00492034]
mov eax, dword [rax + 0xb4]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x30], rax
mov rax, qword [0x00492034]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x290], eax
mov rax, qword [0x00492034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2a0], rax
mov r8, qword [rsp + 0x278]
mov rax, qword [0x00492034]
mov edx, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x2a0]
call fcn.004924d0
mov rax, qword [0x00492034]
mov edx, dword [rax + 0xa0]
mov ecx, dword [rsp + 0x30]
call fcn.00494528
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x492b1d
mov ecx, 2
call fcn.00494bcc
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 0x4935de
mov rax, qword [0x00492034]
cmp dword [rax + 0x98], 0
je 0x492d50
mov rax, qword [0x00492034]
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 0x492bab
mov ecx, 3
call fcn.00494bcc
mov r9d, 0x30
mov r8, qword [rsp + 0x2d8]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4935de
mov rax, qword [0x00492034]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x290], eax
mov rax, qword [0x00492034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x310], rax
xor edx, edx
mov rcx, qword [0x00492034]
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 [0x00492034]
mov edx, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x2a0]
call fcn.004924d0
jmp 0x492c38
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [0x00492034]
movzx eax, word [rax + 0xa4]
cmp dword [rsp + 0x48], eax
jge 0x492d38
cmp dword [rsp + 0x2a8], 0
je 0x492c9a
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x492c9a
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
mov eax, dword [rcx + rax + 0xbc]
and eax, 0x10000000
test eax, eax
je 0x492c9a
mov dword [rsp + 0x318], 1
jmp 0x492ca5
mov dword [rsp + 0x318], 0
mov eax, dword [rsp + 0x318]
mov dword [rsp + 0x2e8], eax
cmp dword [rsp + 0x2e8], 0
jne 0x492d06
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
movsxd rcx, dword [rsp + 0x48]
imul rcx, rcx, 0x18
mov rdx, qword [0x00492034]
mov ecx, dword [rdx + rcx + 0xb4]
mov rdx, qword [0x0049203c]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [0x00492034]
mov r8d, dword [rdx + rax + 0xb0]
mov rdx, qword [rsp + 0x278]
call fcn.00492710
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
mov eax, dword [rcx + rax + 0xb0]
mov rcx, qword [rsp + 0x278]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
jmp 0x492c2d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x492f25
mov rax, qword [0x00492034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov rcx, qword [0x00492034]
mov ecx, dword [rcx + 0x64]
sub rax, rcx
mov qword [rsp + 0x320], rax
xor edx, edx
mov rcx, qword [0x00492034]
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 0x492dbf
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [0x00492034]
movzx eax, word [rax + 0xa4]
cmp dword [rsp + 0x48], eax
jge 0x492f25
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
cmp dword [rcx + rax + 0xa8], 0
je 0x492f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
cmp dword [rcx + rax + 0xb0], 0
jbe 0x492f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
mov eax, dword [rcx + rax + 0xb4]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
mov eax, dword [rcx + rax + 0xb0]
mov dword [rsp + 0x290], eax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
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 0x492ed1
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x492ed1
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x00492034]
mov eax, dword [rcx + rax + 0xbc]
and eax, 0x10000000
test eax, eax
je 0x492ed1
mov dword [rsp + 0x328], 1
jmp 0x492edc
mov dword [rsp + 0x328], 0
mov eax, dword [rsp + 0x328]
mov dword [rsp + 0x2ec], eax
cmp dword [rsp + 0x2ec], 0
jne 0x492f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov r8, qword [rsp + 0x278]
mov rcx, qword [0x00492034]
mov edx, dword [rcx + rax + 0xb0]
mov rcx, qword [rsp + 0x2a0]
call fcn.004924d0
jmp 0x492db4
mov rax, qword [0x00492034]
mov eax, dword [rax + 0x84]
mov rcx, qword [0x0049203c]
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 0x4933e8
mov rax, qword [0x00492034]
cmp dword [rax + 0x84], 0
je 0x4933e8
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 [0x0049203c]
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 0x493019
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 0x493019
mov dword [rsp + 0x2f0], 1
cmp qword [rsp + 0x2e0], 0
jne 0x4930e2
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 0x49305d
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 0x4930e2
mov dword [rsp + 0x2f0], 1
cmp qword [rsp + 0x2e0], 0
jne 0x493138
mov ecx, 4
call fcn.00494bcc
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 0x4935de
cmp dword [rsp + 0x2f0], 0
je 0x493177
cmp qword [0x00492064], 0
je 0x493177
mov eax, dword [rsp + 0x2e0]
movsxd rcx, dword [rsp + 0x2b8]
mov rdx, qword [0x00492064]
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 [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2d0]
cmp dword [rax], 0
jne 0x4931b6
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x2b0], rax
jmp 0x4931d5
mov rax, qword [rsp + 0x2d0]
mov eax, dword [rax]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2b0], rax
mov rax, qword [rsp + 0x2b0]
cmp qword [rax], 0
je 0x4933cf
mov qword [rsp + 0x2f8], 0
mov rax, qword [rsp + 0x2b0]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x49323f
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 0x493277
mov rax, qword [rsp + 0x2b0]
mov eax, dword [rax]
add rax, qword [0x0049203c]
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 0x493366
mov rax, qword [rsp + 0x2b0]
mov eax, dword [rax]
movabs rcx, 0x8000000000000000
and rax, rcx
test rax, rax
je 0x4932f5
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.00494bcc
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 0x49333e
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x350], rax
mov ecx, 6
call fcn.00494bcc
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 0x4935de
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.00492710
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 0x4931d5
mov rax, qword [rsp + 0x2d0]
add rax, 0x14
mov qword [rsp + 0x2d0], rax
jmp 0x492f52
call fcn.004936b0
test eax, eax
jne 0x493434
mov ecx, 7
call fcn.00494bcc
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 0x4935de
mov rax, qword [0x00492034]
cmp dword [rax + 0x94], 0
je 0x493449
call fcn.00493980
mov rax, qword [0x00492034]
mov eax, dword [rax + 0x6c]
mov rcx, qword [0x0049203c]
add rcx, rax
mov rax, rcx
mov qword [0x0049205c], rax
lea r9, [rsp + 0x2ac]
mov r8d, 0x40
mov edx, 0x1000
mov rcx, qword [0x0049203c]
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 0x4934e4
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 [0x0049203c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x4935d2
cmp dword [rsp + 0x378], 0
jne 0x4935a0
cmp qword [rsp + 0x270], 0
je 0x493543
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [0x00492048], 0
je 0x493562
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [0x00492048]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [0x00492034]
cmp dword [rax + 0x6c], 0
je 0x493594
cmp dword [0x00492058], 0
jne 0x493594
mov r8, qword [rsp + 0x380]
mov edx, dword [rsp + 0x378]
mov rcx, qword [0x00492050]
call qword [0x0049205c]
call fcn.00493620
mov eax, 1
jmp 0x493611
mov rax, qword [0x00492034]
cmp dword [rax + 0x6c], 0
jne 0x4935b4
mov eax, 1
jmp 0x493611
mov r8, qword [rsp + 0x380]
mov edx, dword [rsp + 0x378]
mov rcx, qword [0x00492050]
call qword [0x0049205c]
jmp 0x493611
mov rcx, qword [0x0049205c]
call fcn.00494c54
mov rax, qword [0x00492034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x493609
cmp dword [rsp + 0x378], 1
jne 0x493609
mov dword [0x00492058], 1
xor eax, eax
jmp 0x493611
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x368
ret