Function at 0x1012a060
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x1016822b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [0x1018ce63]
push ebx
push ebp
push esi
dec al
push edi
mov edi, dword [esp + 0x50]
mov byte [0x1018ce63], al
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x4c]
mov ebx, ecx
push edi
push eax
mov dword [esp + 0x28], ebx
call fcn.10127d10
mov esi, eax
add esp, 8
test esi, esi
je 0x1012a776
mov al, byte [esi]
test al, al
je 0x1012a776
cmp al, 0x3c
jne 0x1012a776
mov ecx, ebx
call fcn.1011f4e0
push edi
push esi
mov dword [esp + 0x2c], eax
call fcn.10127d10
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x4c], ebp
mov byte [0x1018ce62], 0xfa
je 0x1012a7a4
cmp byte [ebp], 0
je 0x1012a7a4
mov al, byte [0x10194e70]
mov byte [esp + 0x18], 0xc
test al, 1
mov byte [esp + 0x19], 3
mov byte [esp + 0x1a], 0x47
mov byte [esp + 0x1b], 0x15
mov byte [esp + 0x1c], 1
jne 0x1012a179
mov bl, al
push 6
or bl, 1
mov byte [0x10194e70], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10194e74], eax
mov ebx, 0x30
xor esi, esi
mov al, byte [esp + esi + 0x18]
push ebx
movsx ecx, al
push ecx
mov ecx, 0x10194e74
call fcn.1004a650
mov edx, dword [0x10194e74]
xor al, bl
xor al, byte [esp + esi + 0x18]
mov byte [esi + edx], al
mov eax, dword [0x10194e74]
movsx ebx, byte [esi + eax]
inc esi
cmp esi, 5
jb 0x1012a137
push 0x1012a7c0
mov byte [eax + 5], 0
call fcn.1013c36b
add esp, 4
mov eax, dword [0x10194e74]
mov byte [esp + 0x10], 0xc
mov dword [esp + 0x14], eax
mov al, byte [0x10194e78]
test al, 1
mov byte [esp + 0x11], 0x1d
mov byte [esp + 0x12], 0xc
mov byte [esp + 0x13], 0
jne 0x1012a202
mov bl, al
push 5
or bl, 1
mov byte [0x10194e78], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10194e7c], eax
mov ebx, 0x30
xor esi, esi
mov al, byte [esp + esi + 0x10]
push ebx
movsx ecx, al
push ecx
mov ecx, 0x10194e7c
call fcn.1004a650
mov edx, dword [0x10194e7c]
xor al, bl
xor al, byte [esp + esi + 0x10]
mov byte [esi + edx], al
mov eax, dword [0x10194e7c]
movsx ebx, byte [esi + eax]
inc esi
cmp esi, 4
jb 0x1012a1c0
push 0x1012a7d0
mov byte [eax + 4], 0
call fcn.1013c36b
add esp, 4
mov eax, dword [0x10194e7c]
mov byte [esp + 0x10], 0xc
mov dword [esp + 0x18], eax
mov al, byte [0x10194e80]
test al, 1
mov byte [esp + 0x11], 0x1d
jne 0x1012a2aa
mov bl, al
push 3
or bl, 1
mov byte [0x10194e80], bl
call fcn.1013c2df
mov ebp, eax
add esp, 4
mov dword [0x10194e84], ebp
mov ecx, 0x30
xor esi, esi
mov bl, byte [esp + esi + 0x10]
mov edi, ecx
movsx eax, bl
xor eax, ecx
test ecx, ecx
jne 0x1012a25a
mov edi, 4
test eax, eax
jge 0x1012a260
neg eax
test edi, edi
jge 0x1012a266
neg edi
test eax, eax
je 0x1012a27a
lea ebp, [eax + edi]
cdq
idiv ebp
test eax, eax
jne 0x1012a26a
mov ebp, dword [0x10194e84]
xor cl, al
xor cl, bl
mov byte [esi + ebp], cl
mov ebp, dword [0x10194e84]
movsx ecx, byte [esi + ebp]
inc esi
cmp esi, 2
jb 0x1012a246
push 0x1012a7e0
mov byte [ebp + 2], 0
call fcn.1013c36b
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
add esp, 4
mov al, byte [0x1018ce63]
mov ecx, dword [0x10194e84]
mov byte [0x1018ce60], al
inc al
mov byte [0x1018ce63], al
mov al, 0x98
mov byte [esp + 0x35], al
mov byte [esp + 0x37], al
mov al, byte [0x10194e88]
mov dword [esp + 0x4c], ecx
mov cl, 0x82
mov byte [esp + 0x30], 0xe5
test al, 1
mov byte [esp + 0x31], 0xf8
mov byte [esp + 0x32], cl
mov byte [esp + 0x33], 0x9a
mov byte [esp + 0x34], 0x9d
mov byte [esp + 0x36], 0x8d
mov byte [esp + 0x38], cl
jne 0x1012a364
mov bl, al
push 0xa
or bl, 1
mov byte [0x10194e88], bl
call fcn.1013c2df
add esp, 4
mov dword [0x10194e8c], eax
xor ecx, ecx
mov bl, byte [esp + ecx + 0x30]
movsx edx, bl
lea eax, [edx + 0xd9]
and eax, edx
je 0x1012a33b
and eax, 0xd9
je 0x1012a33b
cdq
xor eax, edx
sub eax, edx
je 0x1012a33b
sar eax, 2
jne 0x1012a336
mov edx, dword [0x10194e8c]
sub al, 0x27
xor al, bl
mov byte [ecx + edx], al
inc ecx
cmp ecx, 9
jb 0x1012a317
mov eax, dword [0x10194e8c]
push 0x1012a7f0
mov byte [eax + 9], 0
call fcn.1013c36b
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, dword [0x10194e8c]
push edi
push 1
push ecx
push ebp
mov byte [0x1018ce62], 0xfa
call fcn.10128ac0
add esp, 0x10
test al, al
je 0x1012a43f
push 0x68
mov byte [0x1018ce62], 0xd9
call fcn.1013c2df
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x44], edi
je 0x1012a403
push 5
mov ecx, esi
call fcn.1011ec50
mov dl, byte [esp + 0x4c]
lea ecx, [esi + 0x38]
mov byte [esp + 0x44], 1
push edi
mov byte [ecx], dl
call fcn.1000ba10
mov al, byte [esp + 0x4c]
mov byte [esp + 0x44], 2
mov byte [esi + 0x48], al
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dl, byte [esp + 0x4c]
lea ecx, [esi + 0x58]
mov byte [esp + 0x44], 3
push edi
mov byte [ecx], dl
call fcn.1000ba10
mov byte [esp + 0x44], 4
mov dword [esi], 0x1016ad50
mov byte [esp + 0x44], 0
jmp 0x1012a405
xor esi, esi
mov eax, 0x1cd
mov cl, byte [0x1018ce63]
cdq
idiv dword [0x1018ce5c]
mov eax, dword [0x1018ce58]
dec cl
mov dword [esp + 0x44], 0xffffffff
mov byte [0x1018ce63], cl
mov al, byte [edx + eax]
mov dl, 0x11
imul dl
add al, cl
mov byte [0x1018ce61], al
jmp 0x1012a747
mov eax, dword [esp + 0x18]
push edi
push 0
push eax
push ebp
call fcn.10128ac0
add esp, 0x10
test al, al
je 0x1012a525
mov al, byte [0x1018ce61]
push 0x38
mov byte [0x1018ce63], al
inc al
mov byte [0x1018ce61], al
call fcn.1013c2df
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
mov dword [esp + 0x44], 5
je 0x1012a4a0
push 2
mov ecx, esi
call fcn.1011ec50
mov byte [esp + 0x44], 6
mov dword [esi], 0x1016acc0
mov byte [esp + 0x44], 5
jmp 0x1012a4a2
xor esi, esi
mov al, byte [0x1018ce63]
mov ecx, dword [0x1018ce5c]
mov bl, al
dec al
mov dword [esp + 0x44], 0xffffffff
mov byte [0x1018ce63], al
mov eax, 0x94
mov ebp, dword [0x1018ce58]
cdq
idiv ecx
mov al, byte [esp + 0x28]
mov dl, byte [edx + ebp]
add dl, al
mov eax, dword [esp + 0x28]
add dl, 0x7a
push edx
push eax
mov eax, 0x3de
push 0x22
cdq
idiv ecx
push 0xfffffffffffffffb
mov cl, byte [edx + ebp]
push ecx
call fcn.10127ce0
push eax
mov eax, 0x215
cdq
idiv dword [0x1018ce5c]
mov eax, dword [0x1018ce58]
push ebx
push 0xffffffffffffffef
mov cl, byte [edx + eax]
add cl, 0x24
push ecx
call fcn.10127f10
mov dl, 0xa0
add esp, 0x24
imul dl
mov byte [0x1018ce62], al
jmp 0x1012a747
push edi
push 0
push esi
push ebp
call fcn.10128ac0
add esp, 0x10
test al, al
je 0x1012a63a
push 0x3c
call fcn.1013c2df
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
mov dword [esp + 0x44], 7
je 0x1012a622
push 4
mov ecx, esi
call fcn.1011ec50
mov byte [esp + 0x44], 8
mov edi, 0x10191588
or ecx, 0xffffffff
xor eax, eax
mov dword [esi], 0x1016ad08
lea ebx, [esi + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0xfffffffd
jbe 0x1012a58c
call fcn.101307ab
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x1012a5ba
mov al, byte [ecx - 1]
test al, al
je 0x1012a5ba
cmp al, 0xff
je 0x1012a5ba
test ebp, ebp
jne 0x1012a5e7
dec al
push ebp
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.1000ba10
mov byte [esi + 0x38], 0
mov byte [esp + 0x44], 7
jmp 0x1012a624
test ebp, ebp
jne 0x1012a5d2
push 1
mov ecx, ebx
call fcn.1000ba10
mov byte [esi + 0x38], 0
mov byte [esp + 0x44], 7
jmp 0x1012a624
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x1012a5de
cmp eax, ebp
jae 0x1012a5ef
push 1
mov ecx, ebx
call fcn.1000ba10
push ebp
mov ecx, ebx
call fcn.1000c9b0
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
mov esi, 0x10191588
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x4c]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
mov byte [esi + 0x38], 0
mov byte [esp + 0x44], 7
jmp 0x1012a624
xor esi, esi
mov dword [esp + 0x44], 0xffffffff
mov byte [esi + 0x38], 1
call fcn.10127d00
jmp 0x1012a747
mov ecx, dword [esp + 0x4c]
push edi
push 0
push ecx
push ebp
call fcn.10128ac0
add esp, 0x10
test al, al
je 0x1012a6b1
mov dl, byte [0x1018ce63]
push 0x21
push 0x7c
push edx
call fcn.10127cb0
push 0x38
call fcn.1013c2df
mov esi, eax
add esp, 0x10
mov dword [esp + 0x4c], esi
test esi, esi
mov dword [esp + 0x44], 9
je 0x1012a696
push 3
mov ecx, esi
call fcn.1011ec50
mov byte [esp + 0x44], 0xa
mov dword [esi], 0x1016ad9c
mov byte [esp + 0x44], 9
jmp 0x1012a698
xor esi, esi
mov al, byte [0x1018ce61]
mov dword [esp + 0x44], 0xffffffff
dec al
mov byte [0x1018ce61], al
jmp 0x1012a747
mov al, byte [ebp + 1]
push edi
push eax
call fcn.10127930
add esp, 8
test eax, eax
jne 0x1012a713
cmp byte [ebp + 1], 0x5f
je 0x1012a713
push 0x38
call fcn.1013c2df
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
mov dword [esp + 0x44], 0xc
je 0x1012a707
push 3
mov ecx, esi
call fcn.1011ec50
mov byte [esp + 0x44], 0xd
mov dword [esi], 0x1016ad9c
mov byte [esp + 0x44], 0xc
mov dword [esp + 0x44], 0xffffffff
jmp 0x1012a747
xor esi, esi
mov dword [esp + 0x44], 0xffffffff
jmp 0x1012a747
push 0x74
call fcn.1013c2df
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov dword [esp + 0x44], 0xb
je 0x1012a73b
push 0x10191588
mov ecx, eax
call fcn.1011f530
jmp 0x1012a73d
xor eax, eax
mov dword [esp + 0x44], 0xffffffff
mov esi, eax
test esi, esi
je 0x1012a756
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dword [esi + 0x10], ecx
jmp 0x1012a7a6
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1012a772
push 0
push 0
push 0
push 3
call fcn.10129f40
mov byte [0x1018ce63], 0xac
mov eax, esi
jmp 0x1012a7a6
mov eax, 0x317
mov cl, byte [0x1018ce62]
cdq
idiv dword [0x1018ce5c]
mov eax, dword [0x1018ce58]
inc cl
mov byte [0x1018ce62], cl
mov dl, byte [edx + eax]
push edx
push ecx
push 0xffffffffffffffd3
call fcn.10127cc0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 8