Function at 0x1283fb5
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 - 0x60], 0
cmp dword [eax + 4], 0
mov dword [ebp - 0x54], eax
jne 0x128482a
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
dec eax
mov dword [ebp - 0x68], eax
js 0x128482a
push ebx
push esi
push edi
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x54]
lea edx, [ecx + 3]
imul ecx, ecx, 0xc
imul edx, edx, 0xc
lea edi, [eax + edx]
mov ebx, dword [edi]
add eax, ecx
mov edx, 0xfffffff
mov dword [ebp - 0x5c], eax
add eax, 0x1c
mov esi, dword [eax]
shr ebx, 1
and ebx, edx
and esi, edx
add ebx, 0x1000000
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x64], esi
mov eax, 0x99ccb8ab
mov eax, dword [ebp - 0x50]
pop ecx
cmp ebx, eax
jb 0x1284058
mov ecx, dword [ebp - 0x4c]
add ecx, eax
lea edx, [esi + ebx]
cmp edx, ecx
jbe 0x12840d9
cmp dword [ebp - 0x40], 0
je 0x1284073
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x44], 0
je 0x1284088
and dword [ebp - 0x44], 0
push 0x136f81c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebp - 0x48], 0
mov ecx, 0xfffff000
mov eax, ebx
and eax, ecx
lea edx, [esi + ebx + 0xfff]
and edx, ecx
sub edx, eax
push 0x136f81c
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x48]
push eax
push 0x40
push dword [ebp - 0x4c]
mov dword [ebp - 0x44], 1
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x12847e7
mov dword [ebp - 0x40], 1
test ebx, ebx
je 0x12847e7
mov eax, dword [edi]
test eax, 0x20000000
je 0x12847d3
mov esi, dword [ebp - 0x54]
shr eax, 1
mov edi, 0xfffffff
and eax, edi
add esi, 0x10
push esi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x24], eax
mov eax, 0xc2e76f06
mov edx, dword [0x102c94c]
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
pop ecx
mov ecx, dword [esi + 4]
mov esi, dword [esi]
and esi, edi
mov eax, 0x1000000
and ecx, edi
add esi, eax
sub eax, edx
mov dword [ebp - 0x30], eax
jne 0x1284174
xor edi, edi
test ecx, ecx
jbe 0x1284355
movzx eax, byte [edi + esi]
sub eax, 0x26db33b8
add dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x18]
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 - 0x1c], eax
inc edi
mov dword [ebp - 0x18], eax
cmp edi, ecx
jb 0x128413a
jmp 0x1284355
mov edx, esi
sub edx, 0x1000000
lea eax, [esi + ecx]
mov edi, edx
and edi, 0xfffff000
add ecx, edx
mov dword [ebp - 0x14], edi
mov edi, edx
sub edi, dword [ebp - 0x14]
mov edx, ecx
and edx, 0xfffff000
sub ecx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100003c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x10000a0]
mov eax, dword [eax + 0x10000a4]
add ecx, 0x1000000
add eax, ecx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], eax
cmp ecx, eax
je 0x12841d3
mov eax, dword [ebp - 0x14]
cmp dword [ecx], eax
jae 0x12841d3
add ecx, dword [ecx + 4]
cmp ecx, dword [ebp - 0x74]
jne 0x12841c4
and dword [ebp - 0x6c], 0
cmp ecx, dword [ebp - 0x74]
je 0x128420f
mov eax, dword [ebp - 0x14]
cmp dword [ecx], eax
jne 0x128420f
mov eax, dword [ecx + 4]
sub eax, 8
shr eax, 1
je 0x128420f
lea edx, [ecx + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
movzx edx, word [edx]
and edx, 0xfff
cmp edx, edi
jae 0x128420f
inc dword [ebp - 0x6c]
add dword [ebp - 0x14], 2
cmp dword [ebp - 0x6c], eax
jne 0x12841f3
mov edx, dword [ebp - 0x7c]
cmp ecx, dword [ebp - 0x74]
je 0x1284317
cmp dword [ecx], edx
ja 0x1284317
mov eax, dword [ecx + 4]
lea edi, [eax - 8]
shr edi, 1
cmp dword [ebp - 0x6c], edi
jne 0x1284249
add ecx, eax
cmp ecx, dword [ebp - 0x74]
je 0x1284317
cmp dword [ecx], edx
ja 0x1284317
and dword [ebp - 0x6c], 0
jmp 0x1284223
cmp dword [ecx], edx
jne 0x1284263
mov eax, dword [ebp - 0x6c]
movzx eax, word [ecx + eax*2 + 8]
and eax, 0xfff
cmp eax, dword [ebp - 0x78]
jae 0x1284317
mov eax, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov edi, 0xf000
test word [ecx + eax*2 + 8], di
je 0x1284212
movzx eax, word [ecx + eax*2 + 8]
mov edx, dword [ecx]
and eax, 0xfff
lea eax, [eax + edx + 0x1000000]
mov dword [ebp - 0x14], eax
xor edi, edi
sub dword [ebp - 0x14], esi
mov dword [ebp - 0x20], eax
je 0x12842cb
movzx eax, byte [edi + esi]
sub eax, 0x26db33b8
add dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x18]
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 - 0x1c], eax
inc edi
mov dword [ebp - 0x18], eax
cmp edi, dword [ebp - 0x14]
jb 0x1284295
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
sub eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp + edi - 0x20]
sub eax, 0x26db33b8
add dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x18]
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 - 0x1c], eax
inc edi
mov dword [ebp - 0x18], eax
cmp edi, 4
jb 0x12842d8
add esi, 4
jmp 0x128420f
mov edi, dword [ebp - 0x2c]
xor ecx, ecx
sub edi, esi
je 0x1284355
movzx eax, byte [ecx + esi]
sub eax, 0x26db33b8
add dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x18]
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 - 0x1c], eax
inc ecx
mov dword [ebp - 0x18], eax
cmp ecx, edi
jb 0x1284320
xor eax, eax
mov ecx, eax
and ecx, 7
mov cl, byte [ebp + ecx - 0x1c]
mov byte [ebp + eax - 0xc], cl
inc eax
cmp eax, 8
jb 0x1284357
mov eax, 0x8f940a4f
mov eax, dword [ebp - 0x64]
and eax, 7
mov edi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], eax
je 0x1284763
mov esi, dword [ebp - 0x24]
xor ecx, ecx
cmp eax, ecx
not esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
jle 0x12843c6
push 0x38
pop edx
cmp dword [ebp - 0x28], 4
movzx ebx, byte [edi]
jge 0x12843b0
lea ecx, [edx - 0x20]
shl ebx, cl
or dword [ebp - 0x2c], ebx
jmp 0x12843b7
mov ecx, edx
shl ebx, cl
or dword [ebp - 0x30], ebx
inc edi
inc dword [ebp - 0x28]
sub edx, 8
cmp dword [ebp - 0x28], eax
jl 0x128439d
mov dword [ebp - 0x14], edi
movzx edi, word [ebp - 0xa]
movzx ecx, word [ebp - 6]
mov eax, edi
xor eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
rol eax, 4
imul eax, ecx
ror edx, 3
xor eax, edx
movzx edx, word [ebp - 8]
xor esi, eax
mov eax, esi
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edi
rol eax, 2
imul eax, edx
mov ebx, esi
rol ebx, 0xb
sub eax, ebx
xor eax, dword [ebp - 0x24]
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 esi, ebx
mov dword [ebp - 0x38], edi
mov ebx, esi
sub ebx, edi
sub ebx, dword [ebp - 8]
xor eax, ebx
mov edi, eax
sub edi, ecx
xor edi, dword [ebp - 0xc]
xor esi, edi
mov edi, esi
sub edi, dword [ebp - 0xc]
mov ebx, esi
ror edi, 9
imul edi, edx
rol ebx, 0xd
xor edi, ebx
xor eax, edi
mov edi, eax
ror edi, 0xd
sub edi, dword [ebp - 0x3c]
imul edi, ecx
xor esi, edi
mov edi, edx
xor edi, esi
imul edi, dword [ebp - 0x38]
mov ebx, esi
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 esi, edi
mov ebx, ecx
xor ebx, esi
imul ebx, edx
mov edx, dword [ebp - 8]
mov edi, esi
ror edi, 9
add edi, ebx
xor eax, edi
lea edi, [eax + edx]
movzx edx, word [ebp - 0xa]
rol edi, 0xd
imul edi, edx
mov edx, eax
rol edx, 0xe
sub edi, edx
xor esi, edi
movzx edx, word [ebp - 0xc]
xor ecx, esi
rol ecx, 3
imul ecx, edx
mov edx, esi
xor esi, dword [ebp - 0x30]
shr edx, 9
add ecx, edx
xor ecx, dword [ebp - 0x2c]
xor edi, edi
xor eax, ecx
cmp dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
mov ecx, esi
jle 0x12844ec
cmp edi, 4
jge 0x12844d8
rol dword [ebp - 0x24], 8
mov dl, byte [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
xor byte [ebp - 0xd], dl
mov byte [ebx], dl
jmp 0x12844e6
mov edx, dword [ebp - 0x34]
inc dword [ebp - 0x34]
rol ecx, 8
xor byte [ebp - 0xd], cl
mov byte [edx], cl
inc edi
cmp edi, dword [ebp - 0x20]
jl 0x12844bf
mov edi, dword [ebp - 0x20]
add edi, 0xfffffffc
test edi, edi
jle 0x1284749
push 4
pop ecx
sub ecx, edi
shl ecx, 3
shr esi, cl
shl esi, cl
mov edx, esi
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x64]
shr ecx, 3
test ecx, ecx
jbe 0x12846d4
movzx esi, word [ebp - 8]
mov dword [ebp - 0x14], esi
movzx esi, word [ebp - 0xa]
mov dword [ebp - 0x3c], esi
movzx esi, word [ebp - 6]
mov dword [ebp - 0x28], esi
movzx esi, word [ebp - 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], ecx
movzx ecx, byte [edi]
movzx esi, byte [edi + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 2]
movzx ebx, byte [edi + 5]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 3]
shl ecx, 8
or ecx, esi
movzx esi, byte [edi + 4]
shl esi, 8
or esi, ebx
shl esi, 8
movzx ebx, byte [edi + 6]
or esi, ebx
shl esi, 8
movzx ebx, byte [edi + 7]
or esi, ebx
xor eax, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, eax
add edi, 8
rol ecx, 4
imul ecx, dword [ebp - 0x28]
mov ebx, eax
ror ebx, 3
xor ecx, ebx
xor ecx, esi
xor edx, ecx
mov ecx, dword [ebp - 0x14]
mov esi, edx
sub esi, dword [ebp - 0xc]
mov ebx, edx
rol esi, 2
imul esi, ecx
rol ebx, 0xb
sub esi, ebx
xor eax, esi
mov esi, dword [ebp - 8]
sub esi, eax
ror esi, 2
imul esi, dword [ebp - 0x3c]
mov ebx, eax
rol ebx, 0xb
xor esi, ebx
xor edx, esi
mov esi, edx
sub esi, dword [ebp - 0x38]
sub esi, dword [ebp - 8]
xor eax, esi
mov esi, eax
sub esi, dword [ebp - 0x28]
xor esi, dword [ebp - 0xc]
xor edx, esi
mov esi, edx
sub esi, dword [ebp - 0xc]
mov ebx, edx
ror esi, 9
imul esi, ecx
rol ebx, 0xd
xor esi, ebx
xor eax, esi
mov esi, eax
ror esi, 0xd
sub esi, dword [ebp - 0x3c]
imul esi, dword [ebp - 0x28]
xor edx, esi
mov esi, ecx
xor esi, edx
imul esi, dword [ebp - 0x38]
mov ebx, edx
shr ebx, 7
xor esi, ebx
xor eax, esi
mov esi, dword [ebp - 0x38]
xor esi, eax
imul esi, dword [ebp - 0x28]
mov ebx, eax
shr ebx, 7
add esi, ebx
mov ebx, dword [ebp - 0x28]
xor edx, esi
xor ebx, edx
imul ebx, ecx
mov ecx, dword [ebp - 8]
mov esi, edx
ror esi, 9
add esi, ebx
xor eax, esi
add ecx, eax
rol ecx, 0xd
imul ecx, dword [ebp - 0x3c]
mov esi, eax
rol esi, 0xe
sub ecx, esi
mov esi, dword [ebp - 0x28]
xor edx, ecx
movzx ecx, word [ebp - 0xc]
xor esi, edx
rol esi, 3
imul esi, ecx
mov dword [ebp - 0x38], ecx
mov ecx, edx
xor edx, dword [ebp - 0x30]
shr ecx, 9
add esi, ecx
xor esi, dword [ebp - 0x2c]
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 - 0x24]
mov byte [esi], al
mov byte [esi + 4], dl
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x84]
add esi, 8
dec dword [ebp - 0x20]
ror eax, 8
ror edx, 8
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
jne 0x128453b
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x5c]
and dword [eax], 0xdfffffff
mov cl, byte [ecx + 0x20]
xor cl, byte [ebp - 0xd]
mov eax, dword [eax]
jne 0x12847f0
test al, 1
jne 0x12847d3
mov edx, dword [0x102c94c]
mov eax, 0x1000000
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x20], ecx
je 0x12847cd
mov edi, dword [0x1069ab8]
sub ebx, eax
mov eax, dword [ebp - 0x64]
add eax, ebx
lea ecx, [edi - 1]
xor esi, esi
mov dword [ebp - 0x5c], eax
test ecx, ecx
jl 0x12847c9
lea eax, [esi + ecx]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [eax*4 + 0x1069abc]
and edx, 0xfffffff
cmp ebx, edx
jae 0x1284777
lea ecx, [eax - 1]
jmp 0x128477c
xor edx, edx
test edi, edi
jge 0x1284508
neg edi
shl edi, 3
mov ecx, edi
shr eax, cl
shl eax, cl
jmp 0x1284508
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
not eax
mov dword [ebp - 0x30], eax
xor edx, edx
xor eax, eax
jmp 0x128450e
jbe 0x1284782
lea esi, [eax + 1]
cmp ecx, esi
jge 0x128472b
jmp 0x12847c9
mov esi, eax
jmp 0x12847c9
mov ecx, dword [esi*4 + 0x1069abc]
mov eax, ecx
and eax, 0xfffffff
cmp eax, dword [ebp - 0x5c]
jae 0x12847cd
mov edx, ecx
shl ecx, 2
sar ecx, 0x1e
sar edx, 0x1e
and ecx, 3
and edx, 3
xor ebx, ebx
dec ecx
je 0x12847b5
dec ecx
je 0x12847e3
dec ecx
jne 0x12847b8
mov ebx, dword [ebp - 0x20]
dec edx
dec edx
jne 0x12847c8
add dword [eax + 0x1000000], ebx
mov edi, dword [0x1069ab8]
inc esi
cmp esi, edi
jb 0x1284786
mov eax, dword [ebp - 0x80]
or dword [eax], 1
mov eax, 0xc814d3f6
dec dword [ebp - 0x68]
jns 0x1284002
jmp 0x12847f7
xor ebx, ebx
jmp 0x12847b8
mov dword [ebp - 0x60], 0x8007000e
jmp 0x12847f7
mov dword [ebp - 0x60], 0x80004005
xor esi, esi
cmp dword [ebp - 0x40], esi
je 0x1284814
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x44], esi
je 0x1284827
push 0x136f81c
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
inc dword [eax + 4]
mov eax, dword [ebp - 0x60]
xor ecx, ebp
call fcn.0103e3fb
leave
ret 4