Function at 0x12fc90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], 0
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
mov dword [esp], 0xf4f5f6f7
mov eax, 0x92bb3fd4
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x6d44c02c]
xor edx, eax
mov ebx, edx
not ebx
add edx, 0x2257c0db
or ebx, edx
and ebx, 1
or edx, 1
add edx, ebx
mov byte [esp + eax + 0x6d44c02c], dl
inc eax
cmp eax, 0x92bb3fd8
jne 0x12fcc0
mov eax, dword [esp]
mov edx, dword [0x140374]
test edx, edx
je 0x12fd52
xor ebp, ebp
mov ebx, dword [0x140378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + ebp*8], 0x3e416e49
je 0x12fd20
inc ebp
cmp edx, ebp
jne 0x12fd10
jmp 0x12fd52
mov edx, dword [ebx + ebp*8 + 4]
cmp edx, eax
je 0x12fd52
lea eax, [esp + 0x14]
lea ebx, [esp + 4]
push 4
push 0x3000
push eax
push 0
push ebx
push 0xffffffffffffffff
push 6
push dword [0x14037c]
push edx
mov ebx, ecx
call fcn.00130f10
mov ecx, ebx
add esp, 0x24
test eax, eax
js 0x12fda8
push 0
push 0
push dword [esi + 8]
push dword [esp + 0x10]
push dword [esi + 4]
push dword [esi]
call fcn.0012eeb0
test eax, eax
jns 0x12fd84
mov ecx, eax
xor eax, eax
mov edx, 0
cmp ecx, 0x8000000d
jne 0x12fe5f
mov ebp, dword [esp + 4]
mov ebx, dword [esi + 8]
add ebx, ebp
sub ebx, dword [esp + 0x34]
xor eax, eax
mov edx, 0
cmp ebx, ebp
jbe 0x12fe5f
mov ecx, ebp
mov dword [esp + 0xc], ebp
jmp 0x12fded
xor eax, eax
xor edx, edx
jmp 0x12ff12
mov edx, eax
not edx
mov dword [esp + 8], edx
lea ebp, [eax + edx*2]
mov edx, 0xfffffffe
sub edx, ebp
and edx, 0xfffffffe
mov ebp, eax
and ebp, 1
or ebp, edx
xor ebp, 1
mov edx, dword [esp + 8]
lea edx, [eax + edx*2]
inc edx
and edx, ebp
and eax, 0xfffffffe
sub eax, edx
add ecx, eax
inc ecx
xor eax, eax
mov edx, 0
cmp ecx, ebx
jae 0x12fe5f
test edi, edi
je 0x12fdf6
cmp byte [edi], 0x3f
je 0x12fe01
movzx eax, byte [ecx]
mov edx, dword [esp + 0x30]
cmp al, byte [edx]
jne 0x12fde1
cmp dword [esp + 0x34], 2
jb 0x12fe45
mov eax, 1
jmp 0x12fe39
movzx edx, byte [ecx + eax]
mov ebp, dword [esp + 0x30]
cmp dl, byte [ebp + eax]
jne 0x12fdb1
mov edx, eax
mov ebp, eax
xor ebp, 1
add ebp, eax
and eax, 1
and edx, 0xfffffffe
sub ebp, edx
add ebp, eax
mov eax, ebp
cmp ebp, dword [esp + 0x34]
jae 0x12fe45
test edi, edi
je 0x12fe10
cmp byte [edi + eax], 0x3f
jne 0x12fe10
jmp 0x12fe1e
test ecx, ecx
je 0x12fe5b
sub ecx, dword [esp + 0xc]
mov edx, ecx
sar edx, 0x1f
add ecx, dword [esi]
adc edx, dword [esi + 4]
mov eax, ecx
jmp 0x12fe5f
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], 0
mov dword [esp], 0xf4f5f6f7
mov ecx, 0x92bb3fd4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx + 0x6d44c02c]
xor ebx, ecx
mov esi, ebx
not esi
add ebx, 0x2257c0db
or esi, ebx
and esi, 1
or ebx, 1
add ebx, esi
mov byte [esp + ecx + 0x6d44c02c], bl
inc ecx
cmp ecx, 0x92bb3fd8
jne 0x12fe80
mov ecx, dword [0x140374]
test ecx, ecx
je 0x12ff12
mov esi, dword [esp]
xor edi, edi
mov ebx, dword [0x140378]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x16194952
je 0x12fee0
inc edi
cmp ecx, edi
jne 0x12fed0
jmp 0x12ff12
mov ecx, dword [ebx + edi*8 + 4]
cmp ecx, esi
je 0x12ff12
lea esi, [esp + 0x10]
lea edi, [esp + 4]
push 0x8000
push esi
push edi
push 0xffffffffffffffff
push 4
push dword [0x14037c]
push ecx
mov esi, eax
mov edi, edx
call fcn.00130f10
mov edx, edi
mov eax, esi
add esp, 0x1c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0x10