Function at 0x401890
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xd0c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xd04], eax
mov eax, dword [esp + 0xd14]
push ebx
push ebp
mov ebp, dword [esp + 0xd18]
cmp byte [ebp], 0x25
push esi
lea ecx, [eax + ebp]
push edi
mov dword [esp + 0x34], ecx
je 0x4018d0
xor al, al
jmp 0x40208d
cmp ebp, ecx
jae 0x4018c3
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x25
je 0x4018d0
cmp al, 0x20
je 0x4018d0
xor ebx, ebx
xor ecx, ecx
mov al, byte [ecx + ebp]
cmp al, 0xd
je 0x4018f3
cmp al, 0xa
je 0x4018f3
cmp al, 0x20
jne 0x4018f6
inc ecx
jmp 0x4018e4
add ebp, ecx
mov edi, dword [sym.imp.MSVCR90.dll__strupr]
push 0xbc
lea ecx, [esp + 0x64]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov al, byte [ebp]
cmp al, 0xd
je 0x401920
cmp al, 0xa
je 0x401920
cmp al, 0x20
jne 0x401923
inc ebp
jmp 0x401911
push 0x100
lea edx, [esp + 0x224]
push ebx
push edx
mov dword [esp + 0x28], ebx
call sub.MSVCR90.dll_memset
push 0x100
lea eax, [esp + 0x530]
push ebx
push eax
call sub.MSVCR90.dll_memset
push 0x100
lea ecx, [esp + 0x13c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
push 0x100
lea edx, [esp + 0x848]
push ebx
push edx
call sub.MSVCR90.dll_memset
push 0x100
lea eax, [esp + 0x454]
push ebx
push eax
call sub.MSVCR90.dll_memset
push 0x100
lea ecx, [esp + 0x660]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0x48
push 0x100
lea edx, [esp + 0x324]
push ebx
push edx
call sub.MSVCR90.dll_memset
push 0x100
lea eax, [esp + 0x730]
push ebx
push eax
call sub.MSVCR90.dll_memset
push 0x3ec
lea ecx, [esp + 0x93c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
movzx edx, byte [ebp]
mov byte [esp + 0x244], dl
movzx eax, byte [ebp + 1]
mov byte [esp + 0x245], al
movzx ecx, byte [ebp + 2]
mov byte [esp + 0x246], cl
movzx edx, byte [ebp + 3]
mov byte [esp + 0x247], dl
movzx eax, byte [ebp + 4]
mov byte [esp + 0x248], al
movzx ecx, byte [ebp + 5]
mov byte [esp + 0x249], cl
movzx edx, byte [ebp + 6]
lea eax, [esp + 0x244]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x24e], dl
add ebp, 7
mov esi, str.SYSTEM:
call edi
add esp, 0x28
nop
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401a60
cmp cl, bl
je 0x401a5c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401a60
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401a40
xor eax, eax
jmp 0x401a65
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4018c3
cmp byte [ebp], 0x20
jne 0x401a7a
inc ebp
cmp byte [ebp], 0x20
je 0x401a73
movzx ecx, byte [ebp]
mov byte [esp + 0x520], cl
mov dl, byte [ebp + 1]
mov byte [esp + 0x521], dl
mov al, byte [ebp + 2]
mov byte [esp + 0x522], al
movzx ecx, byte [ebp + 3]
lea edx, [esp + 0x520]
push edx
mov byte [esp + 0x527], cl
add ebp, 4
mov esi, str.CPS1
call edi
add esp, 4
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401ae0
cmp cl, bl
je 0x401adc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401ae0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401ac0
xor eax, eax
jmp 0x401ae5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4018c3
xor ecx, ecx
nop
mov al, byte [ecx + ebp]
cmp al, 0xd
je 0x401aff
cmp al, 0xa
je 0x401aff
cmp al, 0x20
jne 0x401b02
inc ecx
jmp 0x401af0
movzx eax, byte [ebp + ecx]
add ebp, ecx
mov byte [esp + 0x120], al
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x121], cl
movzx edx, byte [ebp + 2]
mov byte [esp + 0x122], dl
movzx eax, byte [ebp + 3]
mov byte [esp + 0x123], al
movzx ecx, byte [ebp + 4]
mov byte [esp + 0x124], cl
movzx edx, byte [ebp + 5]
mov byte [esp + 0x125], dl
movzx eax, byte [ebp + 6]
mov byte [esp + 0x126], al
movzx ecx, byte [ebp + 7]
lea edx, [esp + 0x120]
push edx
mov byte [esp + 0x12b], cl
add ebp, 8
mov esi, str.ROMNAME:
call edi
add esp, 4
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401b92
cmp cl, bl
je 0x401b8e
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401b92
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401b72
xor eax, eax
jmp 0x401b97
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4018c3
cmp byte [ebp], 0x20
jne 0x401bac
inc ebp
cmp byte [ebp], 0x20
je 0x401ba5
mov al, byte [ebp]
cmp al, 0xd
je 0x401bcf
lea ecx, [esp + 0x820]
lea ebx, [ebx]
cmp al, 0xa
je 0x401bcf
inc ebp
mov byte [ecx], al
mov al, byte [ebp]
inc ecx
cmp al, 0xd
jne 0x401bc0
lea eax, [esp + 0x820]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401be0
push 0x40
sub eax, edx
push 0x1000
lea edi, [eax + 1]
mov eax, dword [0x438028]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
je 0x401c44
mov eax, dword [0x438028]
lea ecx, [esp + 0x28]
push ecx
push edi
lea edx, [esp + 0x828]
push edx
push esi
push eax
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401c46
cmp dword [esp + 0x28], edi
je 0x401c46
mov ecx, dword [0x438028]
push 0x4000
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor esi, esi
mov dword [esp + 0x1c], esi
lea eax, [esp + 0x1c]
mov eax, dword [eax]
lea ecx, [esp + 0x920]
mov dword [ecx], eax
xor ecx, ecx
jmp 0x401c60
mov al, byte [ecx + ebp]
cmp al, 0xd
je 0x401c6f
cmp al, 0xa
je 0x401c6f
cmp al, 0x20
jne 0x401c72
inc ecx
jmp 0x401c60
movzx edx, byte [ebp + ecx]
add ebp, ecx
mov byte [esp + 0x420], dl
movzx eax, byte [ebp + 1]
mov byte [esp + 0x421], al
mov cl, byte [ebp + 2]
mov byte [esp + 0x422], cl
movzx edx, byte [ebp + 3]
mov byte [esp + 0x423], dl
movzx eax, byte [ebp + 4]
lea ecx, [esp + 0x420]
push ecx
mov byte [esp + 0x428], al
add ebp, 5
mov esi, str.GAME:
call dword [sym.imp.MSVCR90.dll__strupr]
add esp, 4
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401ce4
cmp cl, bl
je 0x401ce0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401ce4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401cc4
xor eax, eax
jmp 0x401ce9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4018c3
cmp byte [ebp], 0x20
jne 0x401cfe
inc ebp
cmp byte [ebp], 0x20
je 0x401cf7
mov al, byte [ebp]
cmp al, 0xd
je 0x401d1f
lea ecx, [esp + 0x620]
lea esp, [esp]
cmp al, 0xa
je 0x401d1f
inc ebp
mov byte [ecx], al
mov al, byte [ebp]
inc ecx
cmp al, 0xd
jne 0x401d10
lea eax, [esp + 0x620]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d30
push 0x40
sub eax, edx
mov edx, dword [0x438028]
push 0x1000
lea edi, [eax + 1]
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
jne 0x401d5e
mov dword [esp + 0x20], ebx
jmp 0x401da5
mov edx, dword [0x438028]
lea eax, [esp + 0x2c]
push eax
push edi
lea ecx, [esp + 0x628]
push ecx
push esi
push edx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401da1
cmp dword [esp + 0x2c], edi
je 0x401da1
mov eax, dword [0x438028]
push 0x4000
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [esp + 0x20], ebx
jmp 0x401da5
mov dword [esp + 0x20], esi
xor ecx, ecx
mov al, byte [ecx + ebp]
cmp al, 0xd
je 0x401db6
cmp al, 0xa
je 0x401db6
cmp al, 0x20
jne 0x401db9
inc ecx
jmp 0x401da7
add ebp, ecx
cmp byte [ebp], 0x50
jne 0x401f1d
mov byte [esp + 0x320], 0x50
movzx ecx, byte [ebp + 1]
mov byte [esp + 0x321], cl
movzx edx, byte [ebp + 2]
mov byte [esp + 0x322], dl
movzx eax, byte [ebp + 3]
mov byte [esp + 0x323], al
movzx ecx, byte [ebp + 4]
mov byte [esp + 0x324], cl
movzx edx, byte [ebp + 5]
mov byte [esp + 0x325], dl
movzx eax, byte [ebp + 6]
lea ecx, [esp + 0x320]
push ecx
mov byte [esp + 0x32a], al
add ebp, 7
mov esi, str.PARENT:
call dword [sym.imp.MSVCR90.dll__strupr]
add esp, 4
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401e48
cmp cl, bl
je 0x401e44
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401e48
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401e28
xor eax, eax
jmp 0x401e4d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4018c3
cmp byte [ebp], 0x20
jne 0x401e67
jmp 0x401e60
inc ebp
cmp byte [ebp], 0x20
je 0x401e60
mov al, byte [ebp]
cmp al, 0xd
je 0x401e84
lea ecx, [esp + 0x720]
cmp al, 0xa
je 0x401e84
inc ebp
mov byte [ecx], al
mov al, byte [ebp]
inc ecx
cmp al, 0xd
jne 0x401e75
lea eax, [esp + 0x720]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401e90
push 0x40
sub eax, edx
mov edx, dword [0x438028]
push 0x1000
lea edi, [eax + 1]
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
cmp esi, ebx
jne 0x401ebe
mov dword [esp + 0x18], ebx
jmp 0x401f05
mov edx, dword [0x438028]
lea eax, [esp + 0x30]
push eax
push edi
lea ecx, [esp + 0x728]
push ecx
push esi
push edx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401f01
cmp dword [esp + 0x30], edi
je 0x401f01
mov eax, dword [0x438028]
push 0x4000
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [esp + 0x18], ebx
jmp 0x401f05
mov dword [esp + 0x18], esi
xor ecx, ecx
mov al, byte [ecx + ebp]
cmp al, 0xd
je 0x401f16
cmp al, 0xa
je 0x401f16
cmp al, 0x20
jne 0x401f19
inc ecx
jmp 0x401f07
add ebp, ecx
jmp 0x401f21
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x4c]
push ecx
push ebp
lea esi, [esp + 0x18]
lea ebx, [esp + 0x40]
lea ecx, [esp + 0x92c]
call fcn.00402490
mov ebx, dword [esp + 0x1c]
add ebp, dword [esp + 0x18]
lea edx, [esp + 0x54]
push edx
lea ebx, [esp + ebx + 0x930]
push ebx
lea edi, [esp + 0x48]
mov ecx, ebp
call fcn.00401310
add ebp, dword [esp + 0x20]
add ebx, dword [esp + 0x24]
lea eax, [esp + 0x5c]
push eax
push ebx
mov ecx, ebp
call fcn.00401470
add ebp, dword [esp + 0x28]
add ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x64]
push ecx
push ebx
mov ecx, ebp
call fcn.00402740
add ebp, dword [esp + 0x30]
lea edx, [esp + 0x80]
push edx
mov ecx, ebp
call fcn.004015d0
add esp, 0x24
test eax, eax
je 0x4018c3
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
add ebp, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], edx
xor ecx, ecx
mov dword [eax + ebx], ecx
xor edx, edx
xor esi, esi
mov dword [eax + ebx + 4], esi
mov dword [eax + ebx + 8], ecx
mov dword [eax + ebx + 0xc], edx
mov dword [esp + 0x44], edx
lea edx, [esp + 0x24]
push edx
mov edi, 0xb
mov dword [eax + ebx + 0x10], edi
mov edx, dword [0x438028]
push 0xbc
lea eax, [esp + 0x68]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [0x43801c]
push eax
push ecx
mov dword [esp + 0x4c], esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push edx
mov dword [esp + 0x5c], edi
call esi
mov edx, dword [0x438020]
lea eax, [esp + 0x24]
push eax
mov eax, dword [0x438028]
push 0x3ec
lea ecx, [esp + 0x928]
push ecx
push edx
push eax
call esi
add dword [0x43801c], 0xbc
add dword [0x438020], 0x3ec
inc dword [0x438024]
mov al, byte [ebp]
cmp al, 0xd
je 0x402062
cmp al, 0xa
je 0x402062
cmp al, 0x20
jne 0x402065
inc ebp
jmp 0x402053
cmp byte [ebp], 0x25
jne 0x40208b
jmp 0x402070
mov al, byte [ebp]
cmp al, 0x25
je 0x40207b
cmp al, 0x20
jne 0x40207e
inc ebp
jmp 0x402070
cmp ebp, dword [esp + 0x34]
ja 0x40208b
xor ebx, ebx
jmp 0x4018f8
mov al, 1
mov ecx, dword [esp + 0xd14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004098be
add esp, 0xd0c
ret