Function at 0x100bed43
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x100cea68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x230], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x200], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x204], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x1f0], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 0x238], eax
lea ebx, [ebp - 0x1e4]
mov eax, dword [ebp + 0x60]
mov esi, dword [ebp + 0x44]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp + 0x38]
xor eax, eax
cmp dword [ebp + 0x18], 0x78
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x1fc], edx
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x1e8], eax
mov dword [esi], eax
jle 0x100bee94
mov ebx, eax
mov dword [ebp - 0x1e8], 1
mov eax, dword [edi + 8]
mov dword [ebp - 0x228], ebx
mov eax, dword [eax + 0x154]
test eax, eax
je 0x100bee7c
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x228]
push ecx
push 4
mov ecx, eax
call fcn.10090e9d
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x1ec]
mov edx, dword [ebp - 0x1fc]
jmp 0x100bee81
mov eax, 0xfffffc18
test eax, eax
je 0x100bee94
push eax
mov edx, ebx
mov ecx, edi
call fcn.100bf744
jmp 0x100bf276
push ecx
push dword [ebp - 0x21c]
mov esi, dword [edi]
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x210]
push ebx
push dword [ebp - 0x224]
mov esi, dword [esi + 0x98]
push dword [ebp - 0x200]
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp - 0x20c]
push edx
push dword [ebp - 0x214]
push ecx
push dword [edi + 4]
mov ecx, esi
call dword [0x100d6738]
call esi
test eax, eax
je 0x100beef0
cmp dword [ebp - 0x1e8], 0
je 0x100bf276
jmp 0x100bee85
mov eax, dword [ebp - 0x1ec]
cmp dword [eax], 0
jg 0x100bef13
cmp dword [ebp - 0x1e8], 0
je 0x100bef0b
push 0xffffffffffffffff
jmp 0x100bee86
or eax, 0xffffffff
jmp 0x100bf276
xor esi, esi
cmp dword [eax], 0x78
jle 0x100befcc
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x208]
mov dword [ecx], 1
mov ecx, dword [ebp - 0x1f8]
push ecx
push ecx
push 4
mov dword [ecx], esi
mov dword [edx], esi
mov edx, dword [ebp - 0x1f4]
mov dword [edx], esi
mov edx, dword [ebp - 0x204]
mov dword [edx], esi
mov edx, dword [ebp - 0x1f0]
mov dword [edx], esi
mov edx, dword [eax]
mov ecx, dword [edi + 8]
call fcn.1008caa4
test eax, eax
je 0x100bef6f
cmp dword [ebp - 0x1e8], esi
jmp 0x100beee8
push dword [ebp - 0x1f4]
mov edx, dword [ebp - 0x1ec]
push ecx
mov ecx, dword [edi + 8]
push 4
mov edx, dword [edx]
call fcn.1008caa4
test eax, eax
jne 0x100bef64
push dword [ebp - 0x204]
mov eax, dword [ebp - 0x1ec]
push ecx
mov ecx, dword [edi + 8]
push 8
mov edx, dword [eax]
call fcn.1008caa4
test eax, eax
jne 0x100bef64
push dword [ebp - 0x1f0]
mov eax, dword [ebp - 0x1ec]
push ecx
mov ecx, dword [edi + 8]
push 1
mov edx, dword [eax]
call fcn.1008caa4
test eax, eax
jne 0x100bef64
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax]
shl eax, 2
push eax
mov eax, dword [ebp - 0x1f4]
push esi
push dword [eax]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x1ec]
push dword [eax]
push esi
mov esi, dword [ebp - 0x1f0]
push dword [esi]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x1ec]
add esp, 0x18
mov ecx, dword [ebp - 0x200]
push dword [esi]
mov esi, dword [ebp + 0x18]
mov edx, esi
push dword [ebp - 0x218]
push dword [eax]
call fcn.100b43bc
test eax, eax
jne 0x100beee1
test esi, esi
jle 0x100bf046
mov ecx, dword [ebp - 0x218]
mov edx, ebx
sub edx, ecx
mov eax, dword [edx + ecx]
shl eax, 0x11
xor eax, dword [ecx]
and eax, 0x20000
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x100bf02f
mov eax, dword [ebp - 0x204]
mov esi, dword [edi]
push dword [eax]
mov eax, dword [ebp - 0x1f8]
mov esi, dword [esi + 0x9c]
mov ecx, esi
push dword [eax]
mov eax, dword [ebp - 0x1ec]
push dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp - 0x21c]
push dword [eax]
mov eax, dword [ebp - 0x220]
push dword [eax]
push dword [ebp + 0x18]
push dword [ebp - 0x224]
push dword [ebp - 0x200]
push dword [ebp - 0x20c]
push 1
push dword [ebp - 0x1fc]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [edi + 4]
call dword [0x100d6738]
call esi
test eax, eax
jne 0x100beee1
xor esi, esi
cmp dword [edi + 0xc0], esi
je 0x100bf170
mov eax, dword [ebp - 0x22c]
cmp dword [eax], esi
je 0x100bf0f0
push dword [ebp - 0x208]
mov eax, dword [ebp - 0x1ec]
push ecx
mov ecx, dword [edi + 8]
push 4
mov edx, dword [eax]
call fcn.1008caa4
test eax, eax
jne 0x100bef64
cmp dword [edi + 0xc4], esi
jne 0x100bf1d7
mov eax, dword [ebp - 0x204]
mov esi, dword [edi]
push dword [eax]
mov eax, dword [ebp - 0x208]
mov esi, dword [esi + 0x9c]
mov ecx, esi
push dword [eax]
mov eax, dword [ebp - 0x1ec]
push dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp - 0x21c]
push dword [eax]
mov eax, dword [ebp - 0x220]
push dword [eax]
xor eax, eax
push dword [ebp + 0x18]
push dword [ebp - 0x224]
push dword [ebp - 0x200]
push dword [ebp - 0x20c]
push eax
push dword [ebp - 0x1fc]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [edi + 4]
call dword [0x100d6738]
call esi
test eax, eax
jne 0x100beee1
xor esi, esi
mov eax, dword [ebp + 0x14]
test byte [eax + 8], 2
je 0x100bf20a
cmp dword [ebp - 0x230], 0
mov eax, dword [ebp - 0x1ec]
je 0x100bf200
mov edx, dword [ebp - 0x1f0]
mov ecx, dword [ebp - 0x1f8]
push dword [edx]
mov edx, dword [ebp - 0x1f4]
push dword [ebp - 0x218]
push dword [edx]
mov edx, dword [ebp - 0x234]
push dword [ecx]
mov ecx, dword [ebp - 0x210]
push dword [eax]
mov eax, dword [ebp - 0x1fc]
push dword [ebp - 0x20c]
push dword [ebp + 0x18]
push dword [ecx + eax*4 - 4]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.100bf429
jmp 0x100bf202
mov eax, dword [ebp - 0x1ec]
mov eax, dword [eax]
shl eax, 2
push eax
mov eax, dword [ebp - 0x1f8]
push dword [eax]
mov eax, dword [ebp - 0x208]
push dword [eax]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x100bf170
mov eax, esi
test eax, eax
jne 0x100beee1
push dword [ebp - 0x238]
mov eax, dword [ebp - 0x1f0]
push dword [ebp - 0x23c]
mov edx, dword [ebp - 0x218]
push dword [ebp - 0x240]
push dword [eax]
mov eax, dword [ebp - 0x1f4]
push dword [eax]
mov eax, dword [ebp - 0x1f8]
push dword [eax]
push ecx
push dword [ebp - 0x214]
push dword [ebp - 0x244]
push dword [ebp - 0x1fc]
push dword [ebp - 0x200]
call fcn.100bf579
test eax, eax
jne 0x100beee1
cmp dword [ebp - 0x1e8], eax
je 0x100bf274
push esi
mov edx, ebx
mov ecx, edi
call fcn.100bf744
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100c6890
mov esp, ebp
pop ebp
ret 0x60