Function at 0x1284858
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 eax, dword [ebp + 8]
and dword [ebp - 0x6c], 0
dec dword [eax + 4]
mov dword [ebp - 0x64], eax
jne 0x1284ff4
mov ecx, dword [ebp - 0x64]
xor eax, eax
cmp dword [ecx + 8], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x68], eax
jle 0x1284ff4
push ebx
mov eax, ecx
push esi
add eax, 0x24
push edi
mov dword [ebp - 0x48], eax
mov ebx, 0x1000000
mov ecx, dword [ebp - 0x48]
mov esi, dword [ecx]
mov eax, 0xfffffff
add ecx, 0xfffffff8
mov edi, dword [ecx]
shr esi, 1
and esi, eax
and edi, eax
add esi, ebx
push ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x60], edi
mov eax, 0x4c4ba4c5
mov eax, dword [ebp - 0x5c]
pop ecx
cmp esi, eax
jb 0x12848eb
mov ecx, dword [ebp - 0x58]
add ecx, eax
lea edx, [edi + esi]
cmp edx, ecx
jbe 0x128496c
cmp dword [ebp - 0x4c], 0
je 0x1284906
lea ecx, [ebp - 0x54]
push ecx
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x50], 0
je 0x128491b
and dword [ebp - 0x50], 0
push 0x136f81c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x54], 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 - 0x5c], eax
mov dword [ebp - 0x58], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x54]
push eax
push 0x40
push dword [ebp - 0x58]
mov dword [ebp - 0x50], 1
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1284fba
mov dword [ebp - 0x4c], 1
test esi, esi
je 0x1284fba
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
test eax, 0x20000000
jne 0x1284f9d
mov edi, dword [ebp - 0x64]
shr eax, 1
mov esi, 0xfffffff
and eax, esi
add edi, 0x10
push edi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x38], eax
mov eax, 0x7dd5027b
mov eax, dword [0x102c94c]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
pop ecx
mov ecx, dword [edi + 4]
mov edi, dword [edi]
and edi, esi
and ecx, esi
add edi, ebx
sub ebx, eax
mov dword [ebp - 0x3c], ebx
jne 0x1284a04
xor esi, esi
test ecx, ecx
jbe 0x1284bdc
movzx eax, byte [edi + esi]
sub eax, 0x26db33b8
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, 0xd924cc48
mul edx
add eax, edx
imul eax, eax, 0xd924cc48
ror eax, 0xc
imul eax, eax, 0xd924cc48
ror eax, 0xc
add dword [ebp - 0x24], eax
inc esi
mov dword [ebp - 0x20], eax
cmp esi, ecx
jb 0x12849ca
jmp 0x1284bdc
mov edx, edi
sub edx, 0x1000000
lea eax, [edi + ecx]
mov esi, edx
and esi, 0xfffff000
add ecx, edx
mov dword [ebp - 0x14], esi
mov esi, edx
sub esi, dword [ebp - 0x14]
mov edx, ecx
and edx, 0xfffff000
sub ecx, edx
mov dword [ebp - 0x30], eax
mov eax, dword [0x100003c]
mov ebx, dword [eax + 0x10000a4]
mov dword [ebp - 0x7c], ecx
mov ecx, dword [eax + 0x10000a0]
add ecx, 0x1000000
mov dword [ebp - 0x80], edx
add ebx, ecx
jmp 0x1284a59
mov eax, dword [ebp - 0x14]
cmp dword [ecx], eax
jae 0x1284a5d
add ecx, dword [ecx + 4]
cmp ecx, ebx
jne 0x1284a4f
and dword [ebp - 0x70], 0
cmp ecx, ebx
je 0x1284a98
mov eax, dword [ebp - 0x14]
cmp dword [ecx], eax
jne 0x1284a98
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x1284a98
lea edx, [ecx + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, esi
jae 0x1284a98
inc dword [ebp - 0x70]
add dword [ebp - 0x14], 2
cmp dword [ebp - 0x70], eax
jne 0x1284a7c
mov edx, dword [ebp - 0x80]
cmp ecx, ebx
je 0x1284b9e
cmp dword [ecx], edx
ja 0x1284b9e
mov eax, dword [ecx + 4]
lea esi, [eax - 8]
shr esi, 1
cmp dword [ebp - 0x70], esi
jne 0x1284ad0
add ecx, eax
cmp ecx, ebx
je 0x1284b9e
cmp dword [ecx], edx
ja 0x1284b9e
and dword [ebp - 0x70], 0
jmp 0x1284aab
cmp dword [ecx], edx
jne 0x1284aea
mov eax, dword [ebp - 0x70]
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x7c]
jae 0x1284b9e
mov eax, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov esi, 0xf000
test word [ecx + eax*2 + 8], si
je 0x1284a9b
movzx eax, word [ecx + eax*2 + 8]
mov edx, dword [ecx]
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
xor esi, esi
mov dword [ebp - 0x14], eax
sub dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
je 0x1284b52
movzx eax, byte [edi + esi]
sub eax, 0x26db33b8
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, 0xd924cc48
mul edx
add eax, edx
imul eax, eax, 0xd924cc48
ror eax, 0xc
imul eax, eax, 0xd924cc48
ror eax, 0xc
add dword [ebp - 0x24], eax
inc esi
mov dword [ebp - 0x20], eax
cmp esi, dword [ebp - 0x14]
jb 0x1284b1c
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi]
sub eax, dword [ebp - 0x3c]
xor esi, esi
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp + esi - 0x14]
sub eax, 0x26db33b8
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, 0xd924cc48
mul edx
add eax, edx
imul eax, eax, 0xd924cc48
ror eax, 0xc
imul eax, eax, 0xd924cc48
ror eax, 0xc
add dword [ebp - 0x24], eax
inc esi
mov dword [ebp - 0x20], eax
cmp esi, 4
jb 0x1284b5f
add edi, 4
jmp 0x1284a98
mov esi, dword [ebp - 0x30]
xor ecx, ecx
sub esi, edi
je 0x1284bdc
movzx eax, byte [ecx + edi]
sub eax, 0x26db33b8
add dword [ebp - 0x24], eax
add eax, dword [ebp - 0x20]
mov edx, 0xd924cc48
mul edx
add eax, edx
imul eax, eax, 0xd924cc48
ror eax, 0xc
imul eax, eax, 0xd924cc48
ror eax, 0xc
add dword [ebp - 0x24], eax
inc ecx
mov dword [ebp - 0x20], eax
cmp ecx, esi
jb 0x1284ba7
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 0x1284bde
mov eax, 0xfbab7bac
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x28]
xor ebx, ebx
mov edx, eax
and edi, 7
mov dword [ebp - 0x34], esi
not edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x84], edi
je 0x1284db3
cmp edi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x18], ebx
jle 0x1284c5e
mov dword [ebp - 0x14], 0x38
mov cl, byte [esi]
xor byte [ebp - 0xd], cl
cmp dword [ebp - 0x18], 4
movzx ebx, cl
mov ecx, dword [ebp - 0x14]
jge 0x1284c4c
add ecx, 0xffffffe0
shl ebx, cl
or dword [ebp - 0x3c], ebx
jmp 0x1284c51
shl ebx, cl
or dword [ebp - 0x2c], ebx
sub dword [ebp - 0x14], 8
inc esi
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
jl 0x1284c31
movzx edi, word [ebp - 0xa]
movzx ecx, word [ebp - 6]
mov ebx, edi
xor ebx, eax
rol ebx, 4
imul ebx, ecx
ror eax, 3
xor ebx, eax
xor edx, ebx
movzx ebx, word [ebp - 8]
mov dword [ebp - 0x18], ebx
mov eax, edx
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], edi
rol eax, 2
imul eax, ebx
mov ebx, edx
rol ebx, 0xb
sub eax, ebx
xor eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 8]
sub ebx, eax
ror ebx, 2
imul ebx, edi
mov edi, eax
rol edi, 0xb
xor ebx, edi
movzx edi, word [ebp - 0xc]
xor edx, ebx
mov dword [ebp - 0x38], edi
mov ebx, edx
sub ebx, edi
sub ebx, dword [ebp - 8]
mov dword [ebp - 0x40], ecx
xor eax, ebx
mov edi, eax
sub edi, ecx
xor edi, dword [ebp - 0xc]
xor edx, edi
mov edi, edx
sub edi, dword [ebp - 0xc]
mov ebx, edx
ror edi, 9
imul edi, dword [ebp - 0x18]
rol ebx, 0xd
xor edi, ebx
xor eax, edi
mov edi, eax
ror edi, 0xd
sub edi, dword [ebp - 0x28]
imul edi, ecx
xor edx, edi
mov edi, dword [ebp - 0x18]
xor edi, edx
imul edi, dword [ebp - 0x38]
mov ebx, edx
shr ebx, 7
xor edi, ebx
xor eax, edi
mov edi, dword [ebp - 0x38]
xor edi, eax
imul edi, ecx
mov ebx, eax
shr ebx, 7
add edi, ebx
xor edx, edi
xor ecx, edx
imul ecx, dword [ebp - 0x18]
mov edi, edx
ror edi, 9
add edi, ecx
mov ecx, dword [ebp - 8]
xor eax, edi
lea edi, [eax + ecx]
movzx ecx, word [ebp - 0xa]
rol edi, 0xd
imul edi, ecx
mov ecx, eax
rol ecx, 0xe
sub edi, ecx
xor edx, edi
mov ecx, dword [ebp - 0x40]
movzx edi, word [ebp - 0xc]
and dword [ebp - 0x18], 0
xor ecx, edx
rol ecx, 3
imul ecx, edi
mov edi, edx
xor edx, dword [ebp - 0x2c]
shr edi, 9
add ecx, edi
xor ecx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x84]
xor eax, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], edx
test edi, edi
jle 0x1284d8b
mov ebx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
cmp dword [ebp - 0x18], 4
jge 0x1284d7a
rol dword [ebp - 0x30], 8
mov cl, byte [ebp - 0x30]
jmp 0x1284d81
rol dword [ebp - 0x14], 8
mov cl, byte [ebp - 0x14]
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], edi
mov byte [ebx], cl
jl 0x1284d65
add edi, 0xfffffffc
xor ebx, ebx
cmp edi, ebx
jle 0x1284da2
push 4
pop ecx
sub ecx, edi
shl ecx, 3
shr edx, cl
shl edx, cl
jmp 0x1284db3
xor edx, edx
cmp edi, ebx
jge 0x1284db3
neg edi
shl edi, 3
mov ecx, edi
shr eax, cl
shl eax, cl
mov ecx, dword [ebp - 0x60]
shr ecx, 3
cmp ecx, ebx
jbe 0x1284f89
movzx edi, word [ebp - 0xc]
mov dword [ebp - 0x38], edi
movzx edi, word [ebp - 8]
mov dword [ebp - 0x18], edi
movzx edi, word [ebp - 0xa]
mov dword [ebp - 0x28], edi
movzx edi, word [ebp - 6]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x60], ecx
mov bl, byte [esi]
mov cl, byte [esi + 1]
movzx ecx, cl
mov byte [ebp - 0x42], bl
mov bl, byte [esi + 2]
movzx edi, byte [ebp - 0x42]
shl edi, 8
or edi, ecx
shl edi, 8
mov byte [ebp - 0x41], bl
mov bl, byte [esi + 3]
movzx ecx, byte [ebp - 0x41]
or edi, ecx
shl edi, 8
movzx ecx, bl
or edi, ecx
mov cl, byte [esi + 7]
mov dword [ebp - 0x30], edi
mov byte [ebp - 0x19], bl
mov bl, byte [esi + 4]
movzx edi, bl
movzx ebx, byte [esi + 5]
shl edi, 8
or edi, ebx
movzx ebx, byte [esi + 6]
shl edi, 8
or edi, ebx
movzx ebx, cl
xor cl, byte [esi + 6]
shl edi, 8
xor cl, byte [esi + 5]
or edi, ebx
xor cl, byte [esi + 4]
xor edx, edi
xor cl, byte [esi + 3]
mov dword [ebp - 0x14], edi
xor cl, byte [esi + 2]
mov edi, edx
xor cl, byte [esi + 1]
shr edi, 9
xor cl, byte [esi]
add esi, 8
xor byte [ebp - 0xd], cl
mov byte [ebp - 0x19], cl
mov ecx, dword [ebp - 0x40]
xor ecx, edx
rol ecx, 3
imul ecx, dword [ebp - 0x38]
add ecx, edi
xor ecx, dword [ebp - 0x30]
xor eax, ecx
mov ecx, dword [ebp - 8]
add ecx, eax
rol ecx, 0xd
imul ecx, dword [ebp - 0x28]
mov edi, eax
rol edi, 0xe
sub ecx, edi
mov edi, dword [ebp - 0x40]
xor edx, ecx
xor edi, edx
imul edi, dword [ebp - 0x18]
mov ecx, edx
ror ecx, 9
add ecx, edi
xor eax, ecx
movzx ecx, word [ebp - 0xc]
mov edi, ecx
xor edi, eax
imul edi, dword [ebp - 0x40]
mov ebx, eax
shr ebx, 7
add edi, ebx
xor edx, edi
mov edi, dword [ebp - 0x18]
xor edi, edx
imul edi, ecx
mov ebx, edx
shr ebx, 7
mov dword [ebp - 0x38], ecx
xor edi, ebx
xor eax, edi
mov edi, eax
ror edi, 0xd
sub edi, dword [ebp - 0x28]
imul edi, dword [ebp - 0x40]
xor edx, edi
mov edi, edx
sub edi, dword [ebp - 0xc]
mov ebx, edx
ror edi, 9
imul edi, dword [ebp - 0x18]
rol ebx, 0xd
xor edi, ebx
xor eax, edi
mov edi, eax
sub edi, dword [ebp - 0x40]
xor edi, dword [ebp - 0xc]
xor edx, edi
mov edi, edx
sub edi, ecx
sub edi, dword [ebp - 8]
mov ecx, dword [ebp - 8]
xor eax, edi
sub ecx, eax
ror ecx, 2
imul ecx, dword [ebp - 0x28]
mov edi, eax
rol edi, 0xb
xor ecx, edi
xor edx, ecx
mov ecx, edx
sub ecx, dword [ebp - 0xc]
mov edi, edx
rol ecx, 2
imul ecx, dword [ebp - 0x18]
rol edi, 0xb
sub ecx, edi
xor eax, ecx
mov ecx, dword [ebp - 0x28]
xor ecx, eax
rol ecx, 4
imul ecx, dword [ebp - 0x40]
mov edi, eax
xor eax, dword [ebp - 0x3c]
ror edi, 3
xor ecx, edi
mov edi, dword [ebp - 0x30]
xor edx, ecx
xor edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov byte [ecx + 3], al
ror eax, 8
mov byte [ecx + 7], dl
ror edx, 8
mov byte [ecx + 2], al
ror eax, 8
mov byte [ecx + 6], dl
ror edx, 8
mov byte [ecx + 1], al
ror eax, 8
mov byte [ecx + 5], dl
ror edx, 8
mov byte [ecx], al
mov byte [ecx + 4], dl
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x14]
add ecx, 8
dec dword [ebp - 0x60]
ror eax, 8
ror edx, 8
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], ecx
jne 0x1284de0
mov eax, dword [ebp - 0x48]
mov cl, byte [ebp - 0xd]
or dword [eax], 0x20000000
mov byte [eax - 4], cl
mov ebx, 0x1000000
mov eax, 0xa792d3f3
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
add dword [ebp - 0x48], 0xc
cmp ecx, dword [eax + 8]
jl 0x12848b0
jmp 0x1284fc1
mov dword [ebp - 0x6c], 0x8007000e
xor esi, esi
cmp dword [ebp - 0x4c], esi
je 0x1284fde
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x50], esi
je 0x1284ff1
push 0x136f81c
mov dword [ebp - 0x50], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6c]
xor ecx, ebp
call fcn.0103e3fb
leave
ret 4