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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x13912f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], eax
cmp dword [ecx + 0xc], eax
jne 0x128585c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov eax, ecx
mov eax, dword [eax + 0x14]
dec eax
mov dword [ebp - 0x5c], eax
js 0x128585c
push ebx
push esi
push edi
mov edx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x50]
mov eax, edx
imul eax, eax, 0xc
add edx, 3
imul edx, edx, 0xc
mov edi, dword [edx + ecx]
add eax, ecx
lea ebx, [eax + 0x1c]
mov esi, dword [ebx]
mov dword [ebp - 0x58], eax
mov eax, 0xfffffff
and esi, eax
and edi, eax
add esi, 0x1000000
push ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x60], edi
mov eax, 0x6ef751a7
mov eax, dword [ebp - 0x4c]
pop ecx
cmp esi, eax
jb 0x12850a3
mov ecx, dword [ebp - 0x48]
add ecx, eax
lea edx, [edi + esi]
cmp edx, ecx
jbe 0x1285124
cmp dword [ebp - 0x3c], 0
je 0x12850be
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x40], 0
je 0x12850d3
and dword [ebp - 0x40], 0
push 0x136f81c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x44], 0
mov ecx, 0xfffff000
mov eax, esi
and eax, ecx
lea edx, [edi + esi + 0xfff]
and edx, ecx
sub edx, eax
push 0x136f81c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x44]
push eax
push 0x40
push dword [ebp - 0x48]
mov dword [ebp - 0x40], 1
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1285819
mov dword [ebp - 0x3c], 1
test esi, esi
je 0x1285819
mov eax, dword [ebx]
test eax, 0x10000000
je 0x1285805
mov edi, dword [ebp - 0x50]
mov esi, 0xfffffff
and eax, esi
mov ebx, eax
push edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x28], ebx
mov eax, 0x43eb481b
mov eax, dword [edi + 4]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
pop ecx
mov ecx, dword [edi]
mov edi, dword [0x102c94c]
and ecx, esi
mov edx, 0x1000000
and eax, esi
mov esi, edx
add ecx, edx
sub esi, edi
mov dword [ebp - 0x38], esi
jne 0x12851b4
xor edi, edi
test eax, eax
jbe 0x1285383
movzx edx, byte [edi + ecx]
sub edx, 0x14aa3266
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov esi, edx
imul esi, esi, 0x885
rol esi, 0xa
ror edx, 0xa
xor esi, edx
add dword [ebp - 0x24], esi
inc edi
mov dword [ebp - 0x20], esi
cmp edi, eax
jb 0x1285184
jmp 0x1285383
mov edi, ecx
sub edi, edx
lea esi, [ecx + eax]
mov ebx, edi
and ebx, 0xfffff000
add eax, edi
mov dword [ebp - 0x14], ebx
mov ebx, edi
sub ebx, dword [ebp - 0x14]
mov edi, eax
and edi, 0xfffff000
sub eax, edi
mov dword [ebp - 0x1c], esi
mov esi, dword [0x100003c]
mov dword [ebp - 0x78], eax
mov eax, dword [esi + 0x10000a0]
mov esi, dword [esi + 0x10000a4]
add eax, edx
add esi, eax
jmp 0x12851ff
mov edx, dword [eax]
cmp edx, dword [ebp - 0x14]
jae 0x1285203
add eax, dword [eax + 4]
cmp eax, esi
jne 0x12851f5
and dword [ebp - 0x6c], 0
cmp eax, esi
je 0x128534d
mov edx, dword [ebp - 0x14]
cmp dword [eax], edx
jne 0x1285248
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
mov dword [ebp - 0x2c], edx
je 0x1285248
lea edx, [eax + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, ebx
jae 0x1285248
inc dword [ebp - 0x6c]
mov edx, dword [ebp - 0x2c]
add dword [ebp - 0x14], 2
cmp dword [ebp - 0x6c], edx
jne 0x1285229
cmp eax, esi
je 0x128534d
cmp dword [eax], edi
ja 0x128534d
mov edx, dword [eax + 4]
lea ebx, [edx - 8]
shr ebx, 1
cmp dword [ebp - 0x6c], ebx
jne 0x128527d
add eax, edx
cmp eax, esi
je 0x128534d
cmp dword [eax], edi
ja 0x128534d
and dword [ebp - 0x6c], 0
jmp 0x1285258
cmp dword [eax], edi
jne 0x1285298
mov edx, dword [ebp - 0x6c]
movzx edx, word [eax + edx*2 + 8]
and edx, 0xfff
cmp edx, dword [ebp - 0x78]
jae 0x128534d
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov ebx, 0xf000
test word [eax + edx*2 + 8], bx
je 0x1285248
movzx edx, word [eax + edx*2 + 8]
mov ebx, dword [eax]
and dword [ebp - 0x14], 0
and edx, 0xfff
lea ebx, [edx + ebx + 0x1000000]
mov dword [ebp - 0x30], ebx
sub dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
je 0x1285306
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + ecx]
sub edx, 0x14aa3266
add dword [ebp - 0x24], edx
add edx, dword [ebp - 0x20]
mov ebx, edx
imul ebx, ebx, 0x885
rol ebx, 0xa
ror edx, 0xa
xor ebx, edx
mov edx, ebx
add dword [ebp - 0x24], edx
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
cmp edx, dword [ebp - 0x30]
jb 0x12852cd
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx]
sub ecx, dword [ebp - 0x38]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x2c]
sub ecx, 0x14aa3266
add dword [ebp - 0x24], ecx
add ecx, dword [ebp - 0x20]
mov edx, ecx
imul edx, edx, 0x885
rol edx, 0xa
ror ecx, 0xa
xor edx, ecx
add dword [ebp - 0x24], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 4
mov dword [ebp - 0x20], edx
jb 0x1285312
lea ecx, [ebx + 4]
jmp 0x1285248
mov edi, dword [ebp - 0x1c]
xor esi, esi
sub edi, ecx
je 0x1285380
movzx eax, byte [ecx + esi]
sub eax, 0x14aa3266
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, eax
imul edx, edx, 0x885
rol edx, 0xa
ror eax, 0xa
xor edx, eax
add dword [ebp - 0x24], edx
inc esi
mov dword [ebp - 0x20], edx
cmp esi, edi
jb 0x1285356
mov ebx, dword [ebp - 0x28]
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x24]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x1285385
mov eax, 0x5d5d81bd
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x68]
mov edx, dword [ebp - 8]
and eax, 7
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], eax
je 0x128555c
and dword [ebp - 0x14], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x18], 0
mov esi, ebx
not esi
test eax, eax
jle 0x12853fb
mov dword [ebp - 0x1c], 0x38
cmp dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [edi]
jge 0x12853e6
add ecx, 0xffffffe0
shl ebx, cl
or dword [ebp - 0x30], ebx
jmp 0x12853eb
shl ebx, cl
or dword [ebp - 0x14], ebx
sub dword [ebp - 0x1c], 8
inc edi
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jl 0x12853d0
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov eax, edx
xor eax, ebx
sub ecx, eax
mov eax, dword [ebp - 0xc]
xor esi, ecx
movzx ecx, dx
sub eax, esi
ror eax, 0xb
imul eax, ecx
mov dword [ebp - 0x28], ecx
mov ecx, esi
rol ecx, 0xa
sub eax, ecx
xor eax, ebx
movzx ecx, word [ebp - 0xa]
mov ebx, eax
sub ebx, ecx
sub ebx, edx
xor esi, ebx
xor edx, esi
ror edx, 0xe
mov dword [ebp - 0x18], ecx
movzx ecx, word [ebp - 0xc]
imul edx, ecx
mov ebx, esi
rol ebx, 0xc
sub edx, ebx
mov ebx, dword [ebp - 0xc]
xor eax, edx
movzx edx, word [ebp - 6]
sub ebx, eax
ror ebx, 1
imul ebx, edx
mov edx, eax
rol edx, 2
add ebx, edx
mov edx, dword [ebp - 0xc]
xor esi, ebx
xor edx, esi
ror edx, 5
imul edx, dword [ebp - 0x28]
mov ebx, esi
ror ebx, 4
add edx, ebx
xor eax, edx
mov edx, dword [ebp - 8]
add edx, eax
ror edx, 4
imul edx, dword [ebp - 0x18]
mov ebx, eax
rol ebx, 0xd
sub edx, ebx
mov ebx, dword [ebp - 0x28]
xor esi, edx
xor ebx, esi
imul ebx, ecx
mov edx, esi
ror edx, 0xb
xor edx, ebx
xor eax, edx
movzx edx, word [ebp - 6]
mov ebx, ecx
xor ebx, eax
rol ebx, 1
imul ebx, edx
mov edx, eax
rol edx, 3
add ebx, edx
movzx edx, word [ebp - 0xa]
xor esi, ebx
mov ebx, edx
mov dword [ebp - 0x18], edx
movzx edx, word [ebp - 8]
xor ebx, esi
imul ebx, edx
mov edx, esi
shr edx, 0xb
add ebx, edx
xor eax, ebx
mov edx, eax
not edx
ror edx, 1
add edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x38]
imul edx, ecx
xor esi, edx
and dword [ebp - 0x18], 0
mov edx, esi
sub edx, dword [ebp - 8]
ror edx, 7
imul edx, ecx
mov ecx, esi
xor esi, dword [ebp - 0x14]
rol ecx, 0xd
add edx, ecx
xor edx, dword [ebp - 0x30]
mov ecx, esi
xor eax, edx
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x1285532
cmp dword [ebp - 0x18], 4
jge 0x1285519
rol dword [ebp - 0x1c], 8
mov dl, byte [ebp - 0x1c]
mov ebx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x1285527
mov edx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc dword [ebp - 0x18]
mov ebx, dword [ebp - 0x38]
cmp dword [ebp - 0x18], ebx
jl 0x12854ff
add ebx, 0xfffffffc
test ebx, ebx
jle 0x1285549
push 4
pop ecx
sub ecx, ebx
shl ecx, 3
shr esi, cl
shl esi, cl
mov edx, esi
jmp 0x1285568
xor edx, edx
test ebx, ebx
jge 0x1285568
neg ebx
shl ebx, 3
mov ecx, ebx
shr eax, cl
shl eax, cl
jmp 0x1285568
mov dword [ebp - 0x30], ebx
not ebx
xor edx, edx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov ecx, dword [ebp - 0x60]
shr ecx, 3
test ecx, ecx
jbe 0x128572e
movzx esi, word [ebp - 6]
mov dword [ebp - 0x38], esi
movzx esi, word [ebp - 8]
mov dword [ebp - 0x28], esi
movzx esi, word [ebp - 0xa]
mov dword [ebp - 0x18], esi
movzx esi, word [ebp - 0xc]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [edi]
movzx esi, byte [edi + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 2]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 3]
movzx ebx, byte [edi + 5]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 4]
shl esi, 8
or esi, ebx
movzx ebx, byte [edi + 6]
shl esi, 8
or esi, ebx
movzx ebx, byte [edi + 7]
shl esi, 8
or esi, ebx
mov ebx, dword [ebp - 0xc]
xor eax, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 8]
xor ecx, eax
sub ebx, ecx
xor ebx, esi
mov ecx, dword [ebp - 0xc]
xor edx, ebx
sub ecx, edx
mov dword [ebp - 0x84], esi
add edi, 8
ror ecx, 0xb
imul ecx, dword [ebp - 0x28]
mov esi, edx
rol esi, 0xa
sub ecx, esi
mov esi, dword [ebp - 8]
xor eax, ecx
mov ecx, eax
sub ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
xor edx, ecx
mov ecx, dword [ebp - 0x80]
xor esi, edx
ror esi, 0xe
imul esi, ecx
mov ebx, edx
rol ebx, 0xc
sub esi, ebx
xor eax, esi
mov esi, dword [ebp - 0xc]
sub esi, eax
ror esi, 1
imul esi, dword [ebp - 0x38]
mov ebx, eax
rol ebx, 2
add esi, ebx
xor edx, esi
mov esi, dword [ebp - 0xc]
xor esi, edx
ror esi, 5
imul esi, dword [ebp - 0x28]
mov ebx, edx
ror ebx, 4
add esi, ebx
xor eax, esi
mov esi, dword [ebp - 8]
add esi, eax
ror esi, 4
imul esi, dword [ebp - 0x18]
mov ebx, eax
rol ebx, 0xd
sub esi, ebx
mov ebx, dword [ebp - 0x28]
xor edx, esi
xor ebx, edx
imul ebx, ecx
mov esi, edx
ror esi, 0xb
xor esi, ebx
xor eax, esi
mov esi, ecx
xor esi, eax
rol esi, 1
imul esi, dword [ebp - 0x38]
mov ebx, eax
rol ebx, 3
add esi, ebx
mov ebx, dword [ebp - 0x18]
xor edx, esi
movzx esi, word [ebp - 8]
xor ebx, edx
imul ebx, esi
mov dword [ebp - 0x28], esi
mov esi, edx
shr esi, 0xb
add ebx, esi
xor eax, ebx
mov esi, eax
not esi
ror esi, 1
add esi, dword [ebp - 0x18]
imul esi, ecx
xor edx, esi
mov esi, edx
sub esi, dword [ebp - 8]
ror esi, 7
imul esi, ecx
mov ecx, edx
xor edx, dword [ebp - 0x14]
rol ecx, 0xd
add esi, ecx
xor esi, dword [ebp - 0x30]
mov cl, byte [ebp - 0xd]
xor eax, esi
mov esi, dword [ebp - 0x34]
xor cl, al
xor cl, dl
mov byte [esi + 3], al
ror eax, 8
xor cl, al
mov byte [esi + 7], dl
ror edx, 8
xor cl, dl
mov byte [esi + 2], al
ror eax, 8
xor cl, al
mov byte [esi + 6], dl
ror edx, 8
xor cl, dl
mov byte [esi + 1], al
ror eax, 8
mov byte [esi + 5], dl
ror edx, 8
mov bl, dl
xor bl, al
xor cl, bl
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp - 0x1c]
mov byte [esi], al
mov byte [esi + 4], dl
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x84]
add esi, 8
dec dword [ebp - 0x2c]
ror eax, 8
ror edx, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], esi
jne 0x1285595
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x58]
and dword [eax], 0xefffffff
mov cl, byte [ecx + 0x20]
xor cl, byte [ebp - 0xd]
mov eax, dword [eax]
jne 0x1285822
test eax, 0x20000000
jne 0x1285805
mov edx, dword [0x102c94c]
mov ecx, 0x1000000
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x2c], eax
je 0x12857fc
mov eax, dword [ebp - 0x68]
mov ebx, dword [0x1069ab8]
sub eax, ecx
mov esi, eax
mov eax, dword [ebp - 0x60]
add eax, esi
lea ecx, [ebx - 1]
xor edi, edi
mov dword [ebp - 0x58], eax
test ecx, ecx
jl 0x12857b0
lea eax, [edi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1069abc]
and edx, 0xfffffff
cmp esi, edx
jae 0x12857a7
lea ecx, [eax - 1]
jmp 0x12857ac
jbe 0x12857f8
lea edi, [eax + 1]
cmp ecx, edi
jge 0x1285789
mov eax, edi
jmp 0x12857f8
mov ecx, dword [eax*4 + 0x1069abc]
mov edi, ecx
and edi, 0xfffffff
cmp edi, dword [ebp - 0x58]
jae 0x12857fc
mov edx, ecx
shl ecx, 2
sar ecx, 0x1e
sar edx, 0x1e
and ecx, 3
and edx, 3
xor esi, esi
dec ecx
je 0x12857e4
dec ecx
je 0x1285815
dec ecx
jne 0x12857e7
mov esi, dword [ebp - 0x2c]
dec edx
dec edx
jne 0x12857f7
add dword [edi + 0x1000000], esi
mov ebx, dword [0x1069ab8]
inc eax
cmp eax, ebx
jb 0x12857b4
mov eax, dword [ebp - 0x64]
or dword [eax], 0x20000000
mov eax, 0xddc27ebd
dec dword [ebp - 0x5c]
jns 0x128504f
jmp 0x1285829
xor esi, esi
jmp 0x12857e7
mov dword [ebp - 0x54], 0x8007000e
jmp 0x1285829
mov dword [ebp - 0x54], 0x80004005
xor esi, esi
cmp dword [ebp - 0x3c], esi
je 0x1285846
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x40], esi
je 0x1285859
push 0x136f81c
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
inc dword [eax + 0xc]
mov eax, dword [ebp - 0x54]
xor ecx, ebp
call fcn.0103e3fb
leave
ret 4