Function at 0x42d157
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], ebx
lea ebx, [ebp + 4]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], edi
mov esi, dword [ebx + 4]
push esi
sub ebx, 4
push esi
mov dword [ebp - 0x10], esi
mov eax, 0x36aa9ebb
mov edi, dword [esi + 4]
mov edx, dword [0x421858]
mov eax, 0xfffffff
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
and edi, eax
pop ecx
pop ecx
mov ecx, dword [esi + 0xc]
and ecx, eax
mov esi, 0x400000
mov eax, esi
add edi, esi
sub eax, edx
mov dword [ebp - 0x14], eax
jne 0x42d045
and dword [ebp - 4], 0
test ecx, ecx
jbe 0x42d217
mov esi, 0x28bd5be7
mov edx, esi
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi]
add eax, esi
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x28bd5be7
ror eax, 0x13
mul edx
add eax, edx
add dword [ebp - 0x20], eax
inc dword [ebp - 4]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], ecx
jb 0x42d014
jmp 0x42d217
mov edx, edi
sub edx, esi
mov esi, edx
lea eax, [edi + ecx]
and esi, 0xfffff000
mov dword [ebp - 4], esi
add ecx, edx
mov esi, edx
sub esi, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov edx, ecx
and edx, 0xfffff000
mov eax, dword [0x40003c]
sub ecx, edx
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 0x4000a0]
add ecx, 0x400000
mov eax, dword [eax + 0x4000a4]
add eax, ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
jmp 0x42d099
mov edx, dword [ecx]
cmp edx, dword [ebp - 4]
jae 0x42d09d
add ecx, dword [ecx + 4]
cmp ecx, eax
jne 0x42d08f
and dword [ebp - 0x24], 0
cmp ecx, eax
je 0x42d0de
mov edx, dword [ebp - 4]
cmp dword [ecx], edx
jne 0x42d0de
mov edx, dword [ecx + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0xc], edx
je 0x42d0de
lea edx, [ecx + 8]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, esi
jae 0x42d0de
inc dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
add dword [ebp - 4], 2
cmp dword [ebp - 0x24], edx
jne 0x42d0bf
mov esi, 0x28bd5be7
jmp 0x42d0e8
mov eax, dword [ebp - 0x2c]
cmp ecx, eax
je 0x42d1e4
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x34]
ja 0x42d1e4
mov eax, dword [ecx + 4]
lea edx, [eax - 8]
mov eax, dword [ebp - 0x24]
shr edx, 1
cmp eax, edx
jne 0x42d127
add ecx, dword [ecx + 4]
cmp ecx, dword [ebp - 0x2c]
je 0x42d1e4
mov eax, dword [ebp - 0x34]
cmp dword [ecx], eax
ja 0x42d1e4
and dword [ebp - 0x24], 0
jmp 0x42d0fb
mov edx, dword [ebp - 0x34]
cmp dword [ecx], edx
jne 0x42d141
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x30]
jae 0x42d1e4
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x24]
mov edx, 0xf000
test word [ecx + eax*2 + 8], dx
je 0x42d0e5
movzx eax, word [ecx + eax*2 + 8]
mov edx, dword [ecx]
and dword [ebp - 4], 0
and eax, 0xfff
lea eax, [eax + edx + 0x400000]
mov dword [ebp - 8], eax
sub dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
je 0x42d1a7
mov eax, dword [ebp - 4]
mov edx, esi
movzx eax, byte [eax + edi]
add eax, esi
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x28bd5be7
ror eax, 0x13
mul edx
add eax, edx
add dword [ebp - 0x20], eax
inc dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x42d175
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
xor edi, edi
mov edx, esi
movzx eax, byte [ebp + edi - 8]
add eax, esi
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x28bd5be7
ror eax, 0x13
mul edx
add eax, edx
add dword [ebp - 0x20], eax
inc edi
mov dword [ebp - 0x1c], eax
cmp edi, 4
jb 0x42d1b1
mov edi, dword [ebp - 0xc]
add edi, 4
jmp 0x42d0e5
mov eax, dword [ebp - 0x18]
xor ecx, ecx
sub eax, edi
mov dword [ebp - 0x18], eax
je 0x42d217
mov edx, esi
movzx eax, byte [ecx + edi]
add eax, esi
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x28bd5be7
ror eax, 0x13
mul edx
add eax, edx
add dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
inc ecx
cmp ecx, dword [ebp - 0x18]
jb 0x42d1f0
add dword [ebx + 8], 0x10
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + 8]
and eax, 0xfffffff
cmp ecx, dword [eax + 0x400000]
jne 0x42d240
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x400004]
je 0x42d2ec
call fcn.00405ddc
lea ecx, [ebx + 0xc]
mov edx, 0xfffff000
and ecx, 0xfffffffc
and eax, edx
mov dword [ebp - 0x18], eax
lea esi, [ecx + 0xfff]
and esi, edx
mov dword [ebx + 8], 0x427ab0
xor eax, eax
mov edx, 0xffff
mov edi, dword [reloc.KERNEL32.dll_GetLastError]
imul edi, edi, 0x343fd
add edi, reloc.KERNEL32.dll_K32EnumProcessModules
mov dword [reloc.KERNEL32.dll_GetLastError], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x42d26b
mov edi, 0xffff
div edi
inc edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x18], 0
jmp 0x42d2b4
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
add ecx, 4
cmp ecx, esi
jb 0x42d2ac
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], 0x427ab0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax]
mov edx, ecx
shr eax, 1
and eax, 0xfffffff
shl edx, 0x10
add eax, 0x400000
mov dword [ebp - 0x4c], ecx
xor edx, dword [eax]
xor edx, dword [0x444898]
xor edx, ecx
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], edx
mov eax, 0x5c95ee7a
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov esp, ebp
pop ebp
popfd
ret