Function at 0x100bf1a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10248f44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, dword [eax + 0x100]
mov edi, esi
shl edi, 4
add edi, eax
test byte [eax + 0x104], 2
jne 0x100bf1e3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018a722
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push ebx
movzx ebx, byte [edx + 3]
movzx eax, byte [edx + 2]
movzx ecx, byte [edx + 7]
shl ecx, 8
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 6]
or ecx, eax
xor ebx, dword [edi]
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x24], ebx
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
xor ecx, dword [edi + 4]
mov dword [ebp - 0x20], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
xor ecx, dword [edi + 8]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x24]
xor ecx, dword [edi + 0xc]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], ecx
lea ecx, [esi - 1]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x100bf388
mov ecx, dword [eax + 0xc]
sub edi, 0x10
movzx edx, byte [eax + 0xa]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101cb1e0]
xor esi, dword [edx*4 + 0x101cb5e0]
movzx ecx, byte [eax + 7]
xor esi, dword [ecx*4 + 0x101cb9e0]
movzx ecx, bl
xor esi, dword [ecx*4 + 0x101cade0]
mov ecx, dword [ebp - 0x28]
mov ebx, esi
xor ebx, dword [edi]
mov dword [ecx], ebx
mov ecx, dword [eax]
movzx edx, byte [eax + 0xe]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101cb1e0]
xor esi, dword [edx*4 + 0x101cb5e0]
movzx ecx, byte [eax + 0xb]
xor esi, dword [ecx*4 + 0x101cb9e0]
movzx ecx, byte [eax + 4]
xor esi, dword [ecx*4 + 0x101cade0]
xor esi, dword [edi + 4]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], esi
mov ecx, dword [eax + 4]
movzx edx, byte [eax + 0xf]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101cb1e0]
xor esi, dword [edx*4 + 0x101cb9e0]
movzx ecx, byte [eax + 2]
xor esi, dword [ecx*4 + 0x101cb5e0]
movzx ecx, byte [eax + 8]
xor esi, dword [ecx*4 + 0x101cade0]
xor esi, dword [edi + 8]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 8], esi
mov ecx, dword [eax + 8]
movzx edx, byte [eax + 6]
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + 0x101cb1e0]
movzx ecx, byte [eax + 3]
xor esi, dword [edx*4 + 0x101cb5e0]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
xor esi, dword [ecx*4 + 0x101cb9e0]
movzx ecx, byte [eax + 0xc]
mov eax, edx
xor esi, dword [ecx*4 + 0x101cade0]
xor esi, dword [edi + 0xc]
sub dword [ebp - 0x2c], 1
mov dword [edx + 0xc], esi
jne 0x100bf290
mov edx, dword [ebp - 0x10]
sub edi, 0x10
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 8]
mov eax, edi
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x101cc1e0]
xor ecx, dword [eax*4 + 0x101cc5e0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x101cc9e0]
movzx eax, bl
xor ecx, dword [eax*4 + str.R_tj068_]
mov eax, dword [ebp - 0x28]
xor ecx, dword [eax]
mov eax, ebx
shr eax, 8
mov dword [ebp - 0x30], ecx
movzx ecx, al
mov eax, edi
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x101cc1e0]
xor ecx, dword [eax*4 + 0x101cc5e0]
mov eax, dword [ebp - 0xc]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x101cc9e0]
movzx eax, dl
xor ecx, dword [eax*4 + str.R_tj068_]
mov eax, dword [ebp - 0x28]
xor ecx, dword [eax + 4]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x38], ecx
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x10
mov ecx, dword [ecx*4 + 0x101cc5e0]
shr ebx, 0x18
xor ecx, dword [eax*4 + 0x101cc1e0]
mov eax, edi
shr eax, 0x18
mov edi, dword [ebp - 0x28]
xor ecx, dword [eax*4 + 0x101cc9e0]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x2c]
movzx eax, cl
shr ecx, 8
movzx ecx, cl
xor esi, dword [eax*4 + str.R_tj068_]
xor esi, dword [edi + 8]
mov ecx, dword [ecx*4 + 0x101cc1e0]
movzx eax, dl
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], esi
xor ecx, dword [eax*4 + 0x101cc5e0]
mov eax, dword [ebp - 8]
xor ecx, dword [ebx*4 + 0x101cc9e0]
mov ebx, dword [ebp - 0x34]
movzx eax, al
xor ecx, dword [eax*4 + str.R_tj068_]
mov eax, edx
xor ecx, dword [edi + 0xc]
shr eax, 8
mov byte [ebx + 1], al
mov eax, edx
mov byte [ebx], dl
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 3], dl
mov edx, dword [ebp - 0x38]
mov byte [ebx + 2], al
mov byte [ebx + 4], dl
mov eax, edx
mov byte [ebx + 0xc], cl
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 6], al
shr edx, 0x18
mov byte [ebx + 7], dl
mov edx, esi
mov eax, edx
mov byte [ebx + 8], dl
shr eax, 8
mov byte [ebx + 9], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 0xa], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xd], al
mov eax, ecx
shr ecx, 0x18
shr eax, 0x10
shr edx, 0x18
mov byte [ebx + 0xf], cl
mov ecx, dword [ebp - 4]
mov byte [ebx + 0xe], al
xor ecx, ebp
mov byte [ebx + 0xb], dl
mov eax, 1
pop ebx
pop edi
pop esi
call fcn.1018a722
mov esp, ebp
pop ebp
ret