Function at 0x4c27b0
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 [0x004c2034], rax
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x4c285a
cmp dword [rsp + 0x378], 1
jne 0x4c283d
mov rax, qword [rsp + 0x370]
mov qword [0x004c2050], rax
cmp qword [0x004c2064], 0
jne 0x4c283d
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x320
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x004c2064], rax
cmp dword [0x004c2044], 0
je 0x4c2850
jmp 0x4c3501
mov dword [0x004c2044], 1
mov rax, qword [0x004c2034]
cmp dword [rax + 0x70], 0
jne 0x4c289c
xor ecx, ecx
call fcn.004c4bcc
mov qword [rsp + 0x308], rax
mov ecx, 1
call fcn.004c4bcc
mov r9d, 0x10
mov rcx, qword [rsp + 0x308]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call fcn.004c2790
mov qword [0x004c203c], rax
mov r9d, 4
mov r8d, 0x1000
mov edx, pe_nt_image_headers64
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 [0x004c2050]
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 0x4c291c
mov rax, qword [rsp + 0x2d8]
sub rax, 1
mov qword [rsp + 0x2d8], rax
jmp 0x4c28f6
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.004c2710
mov eax, dword [rsp + 0x280]
add eax, 1
cdqe
mov byte [rsp + rax + 0x50], 0
mov dword [rsp + 0x2a8], 0
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x4000000
test eax, eax
jne 0x4c29a9
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x4c29ff
call fcn.004c3a70
mov dword [rsp + 0x2a8], eax
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x4000000
test eax, eax
je 0x4c29ff
cmp dword [rsp + 0x2a8], 0
je 0x4c29ff
mov ecx, 0x18
call fcn.004c4bcc
mov r9d, 0x10
mov r8, qword [rsp + 0x2d8]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4c35de
mov rax, qword [0x004c203c]
mov qword [rsp + 0x288], rax
mov rax, qword [rsp + 0x288]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [0x004c2034]
cmp dword [rax + 0x9c], 0
je 0x4c2b2c
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0xb4]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x30], rax
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x290], eax
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2a0], rax
mov r8, qword [rsp + 0x278]
mov rax, qword [0x004c2034]
mov edx, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x2a0]
call fcn.004c24d0
mov rax, qword [0x004c2034]
mov edx, dword [rax + 0xa0]
mov ecx, dword [rsp + 0x30]
call fcn.004c4528
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jge 0x4c2b1d
mov ecx, 2
call fcn.004c4bcc
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 0x4c35de
mov rax, qword [0x004c2034]
cmp dword [rax + 0x98], 0
je 0x4c2d50
mov rax, qword [0x004c2034]
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 0x4c2bab
mov ecx, 3
call fcn.004c4bcc
mov r9d, 0x30
mov r8, qword [rsp + 0x2d8]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4c35de
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x60]
mov dword [rsp + 0x290], eax
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x310], rax
xor edx, edx
mov rcx, qword [0x004c2034]
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 [0x004c2034]
mov edx, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x2a0]
call fcn.004c24d0
jmp 0x4c2c38
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [0x004c2034]
movzx eax, word [rax + 0xa4]
cmp dword [rsp + 0x48], eax
jge 0x4c2d38
cmp dword [rsp + 0x2a8], 0
je 0x4c2c9a
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x4c2c9a
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
mov eax, dword [rcx + rax + 0xbc]
and eax, 0x10000000
test eax, eax
je 0x4c2c9a
mov dword [rsp + 0x318], 1
jmp 0x4c2ca5
mov dword [rsp + 0x318], 0
mov eax, dword [rsp + 0x318]
mov dword [rsp + 0x2e8], eax
cmp dword [rsp + 0x2e8], 0
jne 0x4c2d06
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
movsxd rcx, dword [rsp + 0x48]
imul rcx, rcx, 0x18
mov rdx, qword [0x004c2034]
mov ecx, dword [rdx + rcx + 0xb4]
mov rdx, qword [0x004c203c]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [0x004c2034]
mov r8d, dword [rdx + rax + 0xb0]
mov rdx, qword [rsp + 0x278]
call fcn.004c2710
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
mov eax, dword [rcx + rax + 0xb0]
mov rcx, qword [rsp + 0x278]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
jmp 0x4c2c2d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4c2f25
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x68]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov rcx, qword [0x004c2034]
mov ecx, dword [rcx + 0x64]
sub rax, rcx
mov qword [rsp + 0x320], rax
xor edx, edx
mov rcx, qword [0x004c2034]
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 0x4c2dbf
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [0x004c2034]
movzx eax, word [rax + 0xa4]
cmp dword [rsp + 0x48], eax
jge 0x4c2f25
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
cmp dword [rcx + rax + 0xa8], 0
je 0x4c2f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
cmp dword [rcx + rax + 0xb0], 0
jbe 0x4c2f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
mov eax, dword [rcx + rax + 0xb4]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x278], rax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
mov eax, dword [rcx + rax + 0xb0]
mov dword [rsp + 0x290], eax
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
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 0x4c2ed1
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x2000000
test eax, eax
je 0x4c2ed1
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov rcx, qword [0x004c2034]
mov eax, dword [rcx + rax + 0xbc]
and eax, 0x10000000
test eax, eax
je 0x4c2ed1
mov dword [rsp + 0x328], 1
jmp 0x4c2edc
mov dword [rsp + 0x328], 0
mov eax, dword [rsp + 0x328]
mov dword [rsp + 0x2ec], eax
cmp dword [rsp + 0x2ec], 0
jne 0x4c2f20
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x18
mov r8, qword [rsp + 0x278]
mov rcx, qword [0x004c2034]
mov edx, dword [rcx + rax + 0xb0]
mov rcx, qword [rsp + 0x2a0]
call fcn.004c24d0
jmp 0x4c2db4
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x84]
mov rcx, qword [0x004c203c]
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 0x4c33e8
mov rax, qword [0x004c2034]
cmp dword [rax + 0x84], 0
je 0x4c33e8
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 [0x004c203c]
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 0x4c3019
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 0x4c3019
mov dword [rsp + 0x2f0], 1
cmp qword [rsp + 0x2e0], 0
jne 0x4c30e2
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 0x4c305d
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 0x4c30e2
mov dword [rsp + 0x2f0], 1
cmp qword [rsp + 0x2e0], 0
jne 0x4c3138
mov ecx, 4
call fcn.004c4bcc
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 0x4c35de
cmp dword [rsp + 0x2f0], 0
je 0x4c3177
cmp qword [0x004c2064], 0
je 0x4c3177
mov eax, dword [rsp + 0x2e0]
movsxd rcx, dword [rsp + 0x2b8]
mov rdx, qword [0x004c2064]
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 [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2d0]
cmp dword [rax], 0
jne 0x4c31b6
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x2b0], rax
jmp 0x4c31d5
mov rax, qword [rsp + 0x2d0]
mov eax, dword [rax]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x2b0], rax
mov rax, qword [rsp + 0x2b0]
cmp qword [rax], 0
je 0x4c33cf
mov qword [rsp + 0x2f8], 0
mov rax, qword [rsp + 0x2b0]
movabs rcx, 0x8000000000000000
mov rax, qword [rax]
and rax, rcx
test rax, rax
je 0x4c323f
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 0x4c3277
mov rax, qword [rsp + 0x2b0]
mov eax, dword [rax]
add rax, qword [0x004c203c]
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 0x4c3366
mov rax, qword [rsp + 0x2b0]
mov eax, dword [rax]
movabs rcx, 0x8000000000000000
and rax, rcx
test rax, rax
je 0x4c32f5
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.004c4bcc
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 0x4c333e
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x350], rax
mov ecx, 6
call fcn.004c4bcc
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 0x4c35de
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.004c2710
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 0x4c31d5
mov rax, qword [rsp + 0x2d0]
add rax, 0x14
mov qword [rsp + 0x2d0], rax
jmp 0x4c2f52
call fcn.004c36b0
test eax, eax
jne 0x4c3434
mov ecx, 7
call fcn.004c4bcc
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x10
mov r8, qword [rsp + 0x2d8]
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4c35de
mov rax, qword [0x004c2034]
cmp dword [rax + 0x94], 0
je 0x4c3449
call fcn.004c3980
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x6c]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [0x004c205c], rax
lea r9, [rsp + 0x2ac]
mov r8d, 0x40
mov edx, 0x1000
mov rcx, qword [0x004c203c]
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 0x4c34e4
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 [0x004c203c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x4c35d2
cmp dword [rsp + 0x378], 0
jne 0x4c35a0
cmp qword [rsp + 0x270], 0
je 0x4c3543
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [0x004c2048], 0
je 0x4c3562
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [0x004c2048]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [0x004c2034]
cmp dword [rax + 0x6c], 0
je 0x4c3594
cmp dword [0x004c2058], 0
jne 0x4c3594
mov r8, qword [rsp + 0x380]
mov edx, dword [rsp + 0x378]
mov rcx, qword [0x004c2050]
call qword [0x004c205c]
call fcn.004c3620
mov eax, 1
jmp 0x4c3611
mov rax, qword [0x004c2034]
cmp dword [rax + 0x6c], 0
jne 0x4c35b4
mov eax, 1
jmp 0x4c3611
mov r8, qword [rsp + 0x380]
mov edx, dword [rsp + 0x378]
mov rcx, qword [0x004c2050]
call qword [0x004c205c]
jmp 0x4c3611
mov rcx, qword [0x004c205c]
call fcn.004c4c54
mov rax, qword [0x004c2034]
mov eax, dword [rax + 4]
and eax, 0x80000000
test eax, eax
je 0x4c3609
cmp dword [rsp + 0x378], 1
jne 0x4c3609
mov dword [0x004c2058], 1
xor eax, eax
jmp 0x4c3611
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x368
ret