Function at 0x107d7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0115cb30
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x838], 0x1e
mov eax, dword [0x14568e4]
mov dword [ebp - 0x834], eax
mov ecx, dword [0x14568e8]
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], 0
mov byte [ebp - 0x840], 0
mov byte [ebp - 0x83f], 0
mov edx, dword [0x1396094]
mov dword [ebp - 0xb58], edx
lea eax, [ebp - 0xb54]
push eax
mov ecx, dword [ebp - 0xb58]
push ecx
call fcn.0108a2d0
add esp, 8
mov dword [ebp - 0xb50], eax
cmp dword [ebp - 0xb50], 0
jne 0x107dc9b
mov byte [ebp - 0x840], 0
lea edx, [ebp - 0xb4c]
push edx
lea eax, [ebp - 0xb54]
push eax
mov ecx, dword [ebp - 0xb58]
push ecx
call fcn.0108a350
add esp, 0xc
mov dword [ebp - 0xb50], eax
cmp dword [ebp - 0xb50], 0
jne 0x107da90
mov dword [ebp - 0xb5c], 0
jmp 0x107d8bb
mov edx, dword [ebp - 0xb5c]
add edx, 1
mov dword [ebp - 0xb5c], edx
cmp dword [ebp - 0xb5c], 8
jge 0x107d93e
mov byte [ebp - 0xb5d], 0
mov dword [ebp - 0xb64], 0
jmp 0x107d8e6
mov eax, dword [ebp - 0xb64]
add eax, 1
mov dword [ebp - 0xb64], eax
cmp dword [ebp - 0xb64], 8
jge 0x107d91e
lea ecx, [ebp - 0xb70]
push ecx
call dword [0x1557682]
movzx edx, byte [ebp - 0xb5d]
mov eax, dword [ebp - 0xb70]
and eax, 1
mov ecx, dword [ebp - 0xb64]
shl eax, cl
or edx, eax
mov byte [ebp - 0xb5d], dl
jmp 0x107d8d7
xor ecx, ecx
jne 0x107d8c4
xor edx, edx
jne 0x107d8c4
mov eax, dword [ebp - 0xb5c]
mov cl, byte [ebp - 0xb5d]
mov byte [ebp + eax - 0xa44], cl
jmp 0x107d8ac
xor edx, edx
jne 0x107d8a0
mov eax, fcn.01022080
test eax, eax
je 0x107d9c6
push 8
call fcn.0115cedd
add esp, 4
mov dword [ebp - 0xfec], eax
mov ecx, dword [ebp - 0xfec]
mov dword [ebp - 0xb74], ecx
cmp dword [ebp - 0xb74], 0
je 0x107d9c6
mov dword [ebp - 0xb78], 8
lea edx, [ebp - 0xb78]
push edx
mov eax, dword [ebp - 0xb74]
push eax
push 8
lea ecx, [ebp - 0xb48]
push ecx
push 1
call fcn.01022080
add esp, 0x14
mov dword [ebp - 0xb7c], eax
cmp dword [ebp - 0xb7c], 0
jne 0x107d9c6
push 8
mov edx, dword [ebp - 0xb74]
push edx
lea eax, [ebp - 0xb48]
push eax
call fcn.0115b060
add esp, 0xc
xor ecx, ecx
jne 0x107d946
mov edx, fcn.01022080
test edx, edx
je 0x107da4e
push 8
call fcn.0115cedd
add esp, 4
mov dword [ebp - 0xff0], eax
mov eax, dword [ebp - 0xff0]
mov dword [ebp - 0xb80], eax
cmp dword [ebp - 0xb80], 0
je 0x107da4e
mov dword [ebp - 0xb84], 8
lea ecx, [ebp - 0xb84]
push ecx
mov edx, dword [ebp - 0xb80]
push edx
push 8
lea eax, [ebp - 0xa44]
push eax
push 1
call fcn.01022080
add esp, 0x14
mov dword [ebp - 0xb88], eax
cmp dword [ebp - 0xb88], 0
jne 0x107da4e
push 8
mov ecx, dword [ebp - 0xb80]
push ecx
lea edx, [ebp - 0xa44]
push edx
call fcn.0115b060
add esp, 0xc
xor eax, eax
jne 0x107d9ce
lea ecx, [ebp - 0xa48]
push ecx
lea edx, [ebp - 0xb4c]
push edx
lea eax, [ebp - 0xb54]
push eax
mov ecx, dword [ebp - 0xb58]
push ecx
call fcn.0108a3a0
add esp, 0x10
mov dword [ebp - 0xb50], eax
cmp dword [ebp - 0xb50], 0
jne 0x107da90
mov byte [ebp - 0x840], 1
xor edx, edx
jne 0x107d869
mov byte [ebp - 0x83f], 0
mov dword [ebp - 0xb8c], 0
jmp 0x107daba
mov eax, dword [ebp - 0xb8c]
add eax, 1
mov dword [ebp - 0xb8c], eax
cmp dword [ebp - 0xb8c], 8
jge 0x107db3d
mov byte [ebp - 0xb8d], 0
mov dword [ebp - 0xb94], 0
jmp 0x107dae5
mov ecx, dword [ebp - 0xb94]
add ecx, 1
mov dword [ebp - 0xb94], ecx
cmp dword [ebp - 0xb94], 8
jge 0x107db1d
lea edx, [ebp - 0xba0]
push edx
call dword [0x1557682]
movzx eax, byte [ebp - 0xb8d]
mov edx, dword [ebp - 0xba0]
and edx, 1
mov ecx, dword [ebp - 0xb94]
shl edx, cl
or eax, edx
mov byte [ebp - 0xb8d], al
jmp 0x107dad6
xor eax, eax
jne 0x107dac3
xor ecx, ecx
jne 0x107dac3
mov edx, dword [ebp - 0xb8c]
mov al, byte [ebp - 0xb8d]
mov byte [ebp + edx - 0xb48], al
jmp 0x107daab
xor ecx, ecx
jne 0x107da9f
mov dword [ebp - 0xb4c], 8
lea edx, [ebp - 0xb4c]
push edx
lea eax, [ebp - 0xb54]
push eax
mov ecx, dword [ebp - 0xb58]
push ecx
call fcn.0108a430
add esp, 0xc
mov dword [ebp - 0xb50], eax
cmp dword [ebp - 0xb50], 0
jne 0x107dc61
lea edx, [ebp - 0x944]
push edx
lea eax, [ebp - 0xca8]
push eax
lea ecx, [ebp - 0xb54]
push ecx
mov edx, dword [ebp - 0xb58]
push edx
call fcn.0108a480
add esp, 0x10
mov dword [ebp - 0xb50], eax
cmp dword [ebp - 0xb50], 0
jne 0x107dc61
mov eax, fcn.01022080
test eax, eax
je 0x107dc36
push 8
call fcn.0115cedd
add esp, 4
mov dword [ebp - 0xff4], eax
mov ecx, dword [ebp - 0xff4]
mov dword [ebp - 0xcac], ecx
cmp dword [ebp - 0xcac], 0
je 0x107dc36
mov dword [ebp - 0xcb0], 8
lea edx, [ebp - 0xcb0]
push edx
mov eax, dword [ebp - 0xcac]
push eax
push 8
lea ecx, [ebp - 0xca4]
push ecx
push 2
call fcn.01022080
add esp, 0x14
mov dword [ebp - 0xcb4], eax
cmp dword [ebp - 0xcb4], 0
jne 0x107dc36
push 8
mov edx, dword [ebp - 0xcac]
push edx
lea eax, [ebp - 0xca4]
push eax
call fcn.0115b060
add esp, 0xc
xor ecx, ecx
jne 0x107dbb6
push 8
lea edx, [ebp - 0xb48]
push edx
lea eax, [ebp - 0xca4]
push eax
call fcn.0115c5b0
add esp, 0xc
test eax, eax
jne 0x107dc61
mov byte [ebp - 0x83f], 1
xor ecx, ecx
jne 0x107da98
movzx edx, byte [ebp - 0x840]
test edx, edx
je 0x107dc9b
movzx eax, byte [ebp - 0x83f]
test eax, eax
je 0x107dc9b
lea ecx, [ebp - 0xb54]
push ecx
mov edx, dword [ebp - 0xb58]
push edx
call fcn.0108a500
add esp, 8
mov dword [ebp - 0xb50], eax
xor eax, eax
jne 0x107d826
movzx ecx, byte [ebp - 0x840]
test ecx, ecx
je 0x107dcb9
movzx edx, byte [ebp - 0x83f]
test edx, edx
jne 0x107dcc0
mov dword [ebp - 0x28], 0x4b630fe3
mov dword [ebp - 0xedc], 8
lea eax, [ebp - 0xedc]
push eax
lea ecx, [ebp - 0xfe4]
push ecx
push 8
lea edx, [ebp - 0x940]
push edx
push 2
call fcn.01022080
add esp, 0x14
mov dword [ebp - 0xedc], 8
lea eax, [ebp - 0xedc]
push eax
lea ecx, [ebp - 0xed4]
push ecx
push 8
lea edx, [ebp - 0xa44]
push edx
push 2
call fcn.01022080
add esp, 0x14
mov eax, dword [ebp - 0xfe4]
xor eax, dword [ebp - 0xed4]
mov dword [ebp - 0xdbc], eax
mov ecx, dword [ebp - 0xfe0]
xor ecx, dword [ebp - 0xed0]
mov dword [ebp - 0xdb8], ecx
xor edx, edx
jne 0x107dd16
push 0x104
push 0
lea eax, [ebp - 0xfe8]
push eax
call fcn.0115ae00
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0xed8]
push ecx
call fcn.0115ae00
add esp, 0xc
xor edx, edx
jne 0x107dcc0
mov dword [ebp - 0xdc4], 0x81b
mov eax, dword [ebp - 0xdc4]
push eax
call fcn.0115cedd
add esp, 4
mov dword [ebp - 0xff8], eax
mov ecx, dword [ebp - 0xff8]
mov dword [ebp - 0xcb8], ecx
mov edx, dword [ebp - 0x24]
add edx, 0xb
mov dword [ebp - 0xdcc], edx
mov eax, dword [ebp - 0xdcc]
push eax
call fcn.0115cedd
add esp, 4
mov dword [ebp - 0xffc], eax
mov ecx, dword [ebp - 0xffc]
mov dword [ebp - 0xdc8], ecx
lea edx, [ebp - 0xdc4]
push edx
mov eax, dword [ebp - 0xcb8]
push eax
push 0x810
lea ecx, [ebp - 0x838]
push ecx
push 8
lea edx, [ebp - 0xdbc]
push edx
push 1
call fcn.0108a570
add esp, 0x1c
lea eax, [ebp - 0xdcc]
push eax
mov ecx, dword [ebp - 0xdc8]
push ecx
mov edx, dword [ebp - 0xdc4]
push edx
mov eax, dword [ebp - 0xcb8]
push eax
lea ecx, [ebp - 0xb54]
push ecx
mov edx, dword [ebp - 0xb58]
push edx
call fcn.0108a540
add esp, 0x18
mov dword [ebp - 0xb50], eax
lea eax, [ebp - 0x20]
test eax, eax
je 0x107de65
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xdcc]
push eax
mov ecx, dword [ebp - 0xdc8]
push ecx
push 8
lea edx, [ebp - 0xdbc]
push edx
push 2
call fcn.0108a570
add esp, 0x1c
mov dword [ebp - 0xb50], eax
mov eax, dword [ebp - 0xcb8]
mov dword [ebp - 0x1000], eax
mov ecx, dword [ebp - 0x1000]
push ecx
call fcn.0115ced8
add esp, 4
mov edx, dword [ebp - 0xdc8]
mov dword [ebp - 0x1004], edx
mov eax, dword [ebp - 0x1004]
push eax
call fcn.0115ced8
add esp, 4
xor ecx, ecx
jne 0x107dcc0
cmp dword [ebp - 0xb50], 0
je 0x107deb3
mov dword [ebp - 0x28], 0x6ddb58ec
lea edx, [ebp - 0xb54]
push edx
mov eax, dword [ebp - 0xb58]
push eax
call fcn.0108a310
add esp, 8
mov dword [ebp - 0xb50], eax
push 0x31c
push 0
lea ecx, [ebp - 0xb58]
push ecx
call fcn.0115ae00
add esp, 0xc
xor edx, edx
jne 0x107deb3
mov dword [ebp - 0x28], 0xb502cbf7
xor eax, eax
jne 0x107d826
cmp dword [ebp - 0x28], 0xb502cbf7
je 0x107df09
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
jmp 0x107df15
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
xor ecx, ecx
jne 0x107d7f4
xor edx, edx
jne 0x107d7f4
cmp dword [ebp - 4], 5
je 0x107df2f
xor al, al
jmp 0x107df34
call fcn.0107e720
mov esp, ebp
pop ebp
ret