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

Disassembly:
push edi
pushfd
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], ecx
mov ecx, 0xfffffff
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x50], ebx
lea ebx, [ebp + 4]
sub ebx, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x4c], ebx
add ebx, 0xc
mov edi, dword [ebx]
mov eax, dword [edi + 4]
mov esi, dword [edi]
shr esi, 2
and eax, ecx
and esi, ecx
xor edx, edx
mov ecx, dword [0x406ab8]
mov dword [ebp - 0x24], ecx
lea ecx, [ecx + eax - 1]
mov eax, ecx
div dword [ebp - 0x24]
add esi, 0x400000
mov eax, dword [0x406ab8]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
sub ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [0x431be8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x406ab8]
mov eax, dword [0x431be8]
test eax, eax
je 0x43416c
and dword [ebp - 0x28], 0
mov eax, dword [0x431be8]
dec eax
lea ecx, [eax + 1]
mov dword [ebp - 0x18], ecx
xor eax, eax
test ecx, ecx
je 0x434115
mov edx, dword [0x4447a0]
shr dword [ebp - 0x18], 0x10
imul edx, edx, 0x343fd
add edx, 0x269ec3
mov dword [0x4447a0], edx
shr edx, 0x10
shl eax, 0x10
or eax, edx
cmp dword [ebp - 0x18], 0
jne 0x4340eb
xor edx, edx
div ecx
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edx
jbe 0x43415e
mov ecx, 0xffff0bbc
inc dword [ebp - 0x28]
mov eax, 0xf443
lea edx, [edx*4 + 0x443368]
lock cmpxchg dword [edx], ecx
cmp eax, 0xf443
je 0x4342bb
mov ecx, dword [0x431be8]
mov eax, dword [ebp - 0x18]
inc eax
xor edx, edx
div ecx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
cmp eax, dword [ebp - 0x1c]
jb 0x434122
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x4341f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x18]
push 0x40
push 0x1000
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x4342d2
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x18], 0x11
jb 0x434179
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
cmp dword [0x444788], eax
ja 0x4341b6
test al, 3
je 0x4341ce
test eax, eax
je 0x4341ca
push 0x8000
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [ebp - 0x10], 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x10], 0
je 0x4340bb
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x4341f2
mov byte [eax], 0
inc eax
dec ecx
jne 0x4341eb
mov eax, 0x170e674f
add dword [ebx], 8
mov edi, dword [edi + 4]
and edi, 0xfffffff
lea eax, [edi + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [0x406ab8]
mov dword [ebp - 0x38], esi
sub eax, edi
lea ecx, [eax + 1]
sub dword [ebp - 0x38], 0x400000
mov edx, ecx
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x28], edi
je 0x43424f
mov esi, dword [0x4447a0]
imul esi, esi, 0x343fd
add esi, 0x269ec3
mov dword [0x4447a0], esi
shr esi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, esi
test edx, edx
jne 0x434228
xor edx, edx
div ecx
mov eax, dword [ebp - 0x10]
add eax, edx
push eax
push edi
push dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, 0x229643a1
mov edx, edi
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x48]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
add esp, 0xc
and edx, 7
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
mov byte [ebp - 0x11], 0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x2c], edx
je 0x43462d
not eax
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
cmp edx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
jle 0x4342ed
push 0x38
pop edi
movzx ebx, byte [esi]
cmp dword [ebp - 0x10], 4
jge 0x4342da
lea ecx, [edi - 0x20]
shl ebx, cl
or dword [ebp - 0x20], ebx
jmp 0x4342e1
mov eax, dword [0x406ab8]
imul eax, dword [ebp - 0x18]
lea eax, [eax + section..data]
mov dword [ebp - 0x10], eax
jmp 0x434162
mov dword [ebp - 0x10], eax
jmp 0x4341a7
mov ecx, edi
shl ebx, cl
or dword [ebp - 0x1c], ebx
inc esi
inc dword [ebp - 0x10]
sub edi, 8
cmp dword [ebp - 0x10], edx
jl 0x4342a8
xor eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
mov edx, eax
movzx edi, word [ebp - 8]
mov ecx, edx
sub ecx, dword [ebp - 0xc]
ror ecx, 0xf
imul edi, ecx
movzx ecx, word [ebp - 0xc]
ror eax, 1
xor eax, edi
xor eax, dword [ebp - 0x38]
movzx edi, word [ebp - 0xa]
mov ebx, eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], ecx
xor ecx, eax
rol ecx, 2
imul edi, ecx
ror ebx, 9
sub edi, ebx
mov ebx, dword [ebp - 0x3c]
xor edx, edi
mov ecx, edx
sub ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 8]
xor eax, ecx
xor ebx, eax
movzx ecx, word [ebp - 6]
imul ebx, ecx
mov edi, eax
ror edi, 3
add edi, ebx
xor edx, edi
mov dword [ebp - 0x10], edx
mov edi, edx
movzx edx, word [ebp - 8]
mov ebx, dword [ebp - 0x3c]
ror edi, 6
sub edi, edx
imul edi, ecx
xor eax, edi
mov edx, eax
xor edx, dword [ebp - 8]
mov edi, eax
rol edx, 1
imul ebx, edx
ror edi, 2
mov edx, ecx
add edi, ebx
xor dword [ebp - 0x10], edi
mov ebx, dword [ebp - 0x10]
xor edx, dword [ebp - 0x10]
rol edx, 7
movzx edi, word [ebp - 0xc]
imul edi, edx
ror ebx, 0xa
add ebx, edi
xor eax, ebx
mov edx, eax
mov edi, eax
xor edx, dword [ebp - 0xc]
rol edx, 0xc
imul edx, ecx
rol edi, 0xe
xor edi, edx
mov edx, ecx
xor dword [ebp - 0x10], edi
xor edx, dword [ebp - 0x10]
rol edx, 1
movzx edi, word [ebp - 8]
imul edx, edi
mov edi, dword [ebp - 0x10]
shr edi, 0xf
add edx, edi
movzx edi, word [ebp - 0xa]
xor eax, edx
mov ebx, eax
mov edx, dword [ebp - 8]
sub edx, eax
ror edx, 7
imul edx, edi
mov edi, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
ror ebx, 4
add ebx, edx
movzx edx, word [ebp - 0xc]
xor edi, ebx
xor ecx, edi
imul ecx, edx
mov edx, edi
mov ebx, dword [ebp - 0x2c]
xor edi, dword [ebp - 0x1c]
shr edx, 3
add ecx, edx
xor ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, edi
test ebx, ebx
mov dword [ebp - 0x34], eax
jle 0x434432
cmp dword [ebp - 0x10], 4
jge 0x434419
rol dword [ebp - 0x34], 8
mov ebx, dword [ebp - 0x30]
mov dl, byte [ebp - 0x34]
inc dword [ebp - 0x30]
xor byte [ebp - 0x11], dl
mov byte [ebx], dl
jmp 0x434427
mov edx, dword [ebp - 0x30]
inc dword [ebp - 0x30]
rol ecx, 8
xor byte [ebp - 0x11], cl
mov byte [edx], cl
inc dword [ebp - 0x10]
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x10], ebx
jl 0x4343ff
add ebx, 0xfffffffc
test ebx, ebx
jle 0x434613
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr edi, cl
shl edi, cl
mov edx, edi
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x28]
mov ecx, edi
shr ecx, 3
test ecx, ecx
jbe 0x43463e
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x3c], edi
movzx edi, word [ebp - 6]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], ecx
movzx ebx, byte [esi + 5]
movzx edi, byte [esi + 1]
movzx ecx, byte [esi]
shl ecx, 8
or edi, ecx
shl edi, 8
movzx ecx, byte [esi + 2]
or edi, ecx
shl edi, 8
movzx ecx, byte [esi + 3]
or edi, ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
or ecx, ebx
shl ecx, 8
movzx ebx, byte [esi + 6]
or ecx, ebx
shl ecx, 8
movzx ebx, byte [esi + 7]
or ecx, ebx
mov dword [ebp - 0x40], ecx
xor eax, edi
xor ecx, edx
xor ecx, eax
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edi
movzx edi, word [ebp - 8]
xor ecx, dword [ebp - 8]
mov edx, ecx
mov ebx, edx
sub ecx, dword [ebp - 0xc]
add esi, 8
ror ecx, 0xf
imul ecx, edi
ror ebx, 1
xor ebx, ecx
xor eax, ebx
mov edi, eax
movzx ecx, word [ebp - 0xc]
xor ecx, eax
rol ecx, 2
imul ecx, dword [ebp - 0x3c]
ror edi, 9
sub ecx, edi
xor edx, ecx
movzx ecx, word [ebp - 0xc]
mov edi, edx
sub edi, ecx
sub edi, dword [ebp - 8]
xor eax, edi
mov ecx, eax
mov edi, dword [ebp - 0x3c]
xor edi, eax
imul edi, dword [ebp - 0x10]
ror ecx, 3
add ecx, edi
xor edx, ecx
mov edi, edx
ror edi, 6
movzx ecx, word [ebp - 8]
sub edi, ecx
imul edi, dword [ebp - 0x10]
xor eax, edi
mov ecx, eax
mov edi, eax
xor ecx, dword [ebp - 8]
rol ecx, 1
imul ecx, dword [ebp - 0x3c]
ror edi, 2
add edi, ecx
xor edx, edi
mov ebx, edx
movzx edi, word [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, edx
rol ecx, 7
imul ecx, edi
ror ebx, 0xa
add ebx, ecx
xor eax, ebx
mov edi, eax
mov ecx, eax
xor ecx, dword [ebp - 0xc]
rol ecx, 0xc
imul ecx, dword [ebp - 0x10]
rol edi, 0xe
xor edi, ecx
mov ecx, dword [ebp - 0x10]
xor edx, edi
xor ecx, edx
movzx edi, word [ebp - 8]
rol ecx, 1
imul ecx, edi
mov edi, edx
shr edi, 0xf
add ecx, edi
xor eax, ecx
mov edi, eax
mov ecx, dword [ebp - 8]
sub ecx, eax
ror ecx, 7
imul ecx, dword [ebp - 0x3c]
ror edi, 4
add edi, ecx
movzx ecx, word [ebp - 0xc]
xor edx, edi
mov edi, dword [ebp - 0x10]
xor edi, edx
imul edi, ecx
mov ecx, edx
xor edx, dword [ebp - 0x1c]
shr ecx, 3
add edi, ecx
mov cl, byte [ebp - 0x11]
xor edi, dword [ebp - 0x20]
xor eax, edi
mov edi, dword [ebp - 0x30]
xor cl, al
xor cl, dl
mov byte [edi + 3], al
mov byte [edi + 7], dl
ror eax, 8
xor cl, al
ror edx, 8
xor cl, dl
mov byte [edi + 2], al
ror eax, 8
mov byte [edi + 6], dl
xor cl, al
ror edx, 8
mov byte [edi + 1], al
mov byte [edi + 5], dl
xor cl, dl
ror eax, 8
ror edx, 8
mov bl, dl
xor bl, al
xor cl, bl
mov ebx, dword [ebp - 0x34]
mov byte [edi], al
mov byte [edi + 4], dl
add edi, 8
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x40]
dec dword [ebp - 0x2c]
mov byte [ebp - 0x11], cl
ror eax, 8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], edi
ror edx, 8
jne 0x43446f
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x28]
jmp 0x434641
xor edx, edx
test ebx, ebx
jge 0x43444b
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x43444b
mov dword [ebp - 0x20], eax
not eax
mov dword [ebp - 0x1c], eax
xor edx, edx
xor eax, eax
jmp 0x434451
mov cl, byte [ebp - 0x11]
mov eax, dword [ebp - 0x24]
cmp cl, byte [eax + 8]
je 0x4346cf
call fcn.00405ddc
and ebx, 0xfffffffc
mov esi, eax
lea ecx, [ebx + 0xfff]
mov edx, 0xffff
mov eax, 0xfffff000
and esi, eax
and ecx, eax
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], 0x427ab0
xor eax, eax
mov edi, dword [0x4447a0]
imul edi, edi, 0x343fd
add edi, 0x269ec3
mov dword [0x4447a0], edi
shr edi, 0x10
shl eax, 0x10
shr edx, 0x10
or eax, edi
test edx, edx
jne 0x434677
mov edi, 0xffff
div edi
mov dword [ebp - 0x58], esi
inc edx
mov eax, ebx
mov dword [ebp - 0x54], edx
cmp ebx, ecx
mov dword [ebp - 0x40], 0
jae 0x4346c5
mov edx, dword [ebp - 0x40]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jb 0x4346b9
mov eax, 0x427ab0
jmp 0x43479e
mov ecx, 0x400000
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x18]
mov edx, dword [0x421858]
mov dword [ebp - 0x2c], eax
sub ecx, edx
mov dword [ebp - 0x24], ecx
jne 0x4346f2
test eax, eax
je 0x434791
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x38]
mov ecx, dword [0x4177a0]
sub esi, dword [ebp - 0x48]
lea eax, [edi + ebx]
mov dword [ebp - 0x40], eax
xor edi, edi
dec ecx
js 0x434733
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x4177a4]
and edx, 0xfffffff
cmp ebx, edx
jae 0x43472a
lea ecx, [eax - 1]
jmp 0x43472f
jbe 0x434737
lea edi, [eax + 1]
cmp ecx, edi
jge 0x43470c
mov ebx, edi
jmp 0x434789
mov ebx, eax
jmp 0x434789
mov eax, dword [ebx*4 + 0x4177a4]
mov ecx, eax
and ecx, 0xfffffff
cmp ecx, dword [ebp - 0x40]
jae 0x434791
lea edi, [ecx + esi + 0x400000]
mov ecx, eax
shl ecx, 2
sar ecx, 0x1e
sar eax, 0x1e
and ecx, 3
and eax, 3
xor edx, edx
dec ecx
je 0x43477c
dec ecx
je 0x434777
dec ecx
jne 0x434782
mov edx, dword [ebp - 0x24]
jmp 0x434782
mov edx, dword [ebp - 0x2c]
jmp 0x434782
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x2c]
dec eax
dec eax
jne 0x434788
add dword [edi], edx
inc ebx
cmp ebx, dword [0x4177a0]
jb 0x43473b
mov eax, dword [0x406ab8]
mov eax, 0x5ffde12e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x64]
mov esp, ebp
pop ebp
popfd
ret