Function at 0x40b7fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x49f2a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
test byte [edx + 0x104], 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
jne 0x40b827
xor eax, eax
jmp 0x40ba89
mov ecx, dword [edx]
xor ecx, dword [eax]
push ebx
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
xor ecx, dword [eax + 4]
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
xor ecx, dword [eax + 8]
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
xor ecx, dword [eax + 0xc]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x100]
dec ecx
lea esi, [ebp - 0x18]
je 0x40b966
mov dword [ebp - 0x2c], ecx
mov ebx, dword [eax + 4]
mov ecx, dword [eax + 8]
mov edi, dword [eax + 0xc]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4a0e80]
shr ecx, 0x10
shr edi, 0x18
xor ebx, dword [edi*4 + 0x4a1680]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x4a1280]
movzx ecx, byte [eax]
xor ebx, dword [ecx*4 + 0x4a0a80]
add edx, 0x10
xor ebx, dword [edx]
mov dword [esi], ebx
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
shr ebx, 8
shr edi, 0x18
shr ecx, 0x10
movzx ecx, cl
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x4a0e80]
xor ebx, dword [edi*4 + 0x4a1680]
xor ebx, dword [ecx*4 + 0x4a1280]
movzx ecx, byte [eax + 4]
xor ebx, dword [ecx*4 + 0x4a0a80]
xor ebx, dword [edx + 4]
mov dword [esi + 4], ebx
mov ecx, dword [eax]
mov edi, dword [eax + 4]
shr edi, 0x18
mov edi, dword [edi*4 + 0x4a1680]
shr ecx, 0x10
movzx ecx, cl
xor edi, dword [ecx*4 + 0x4a1280]
mov ecx, dword [eax + 0xc]
shr ecx, 8
movzx ecx, cl
xor edi, dword [ecx*4 + 0x4a0e80]
movzx ecx, byte [eax + 8]
xor edi, dword [ecx*4 + 0x4a0a80]
xor edi, dword [edx + 8]
mov dword [esi + 8], edi
mov ebx, dword [eax]
mov edi, dword [eax + 8]
mov ecx, dword [eax + 4]
shr edi, 0x18
mov edi, dword [edi*4 + 0x4a1680]
shr ebx, 8
shr ecx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4a0e80]
movzx ecx, cl
xor edi, dword [ecx*4 + 0x4a1280]
movzx ecx, byte [eax + 0xc]
xor edi, dword [ecx*4 + 0x4a0a80]
mov ecx, eax
xor edi, dword [edx + 0xc]
dec dword [ebp - 0x2c]
mov dword [esi + 0xc], edi
mov eax, esi
mov esi, ecx
jne 0x40b862
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
movzx ecx, cl
mov ebx, dword [ebp - 0xc]
shr eax, 0x18
mov eax, dword [eax*4 + 0x4a1af8]
shl eax, 8
xor eax, dword [ecx*4 + 0x4a1af8]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
movzx ecx, cl
shr ebx, 0x10
shl eax, 8
xor eax, dword [ecx*4 + 0x4a1af8]
movzx ecx, byte [ebp - 0x18]
movzx esi, bl
mov ebx, dword [ebp - 0x10]
shr ebx, 8
shl eax, 8
xor eax, dword [ecx*4 + 0x4a1af8]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x4a1af8]
shl ecx, 8
xor ecx, dword [esi*4 + 0x4a1af8]
movzx esi, bl
mov ebx, dword [ebp - 0x18]
shl ecx, 8
xor ecx, dword [esi*4 + 0x4a1af8]
movzx esi, byte [ebp - 0x14]
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [ebp - 0xc]
shl ecx, 8
xor ecx, dword [esi*4 + 0x4a1af8]
mov esi, dword [ebp - 0x14]
shr esi, 0x18
mov esi, dword [esi*4 + 0x4a1af8]
shr ebx, 8
shl esi, 8
xor esi, dword [edi*4 + 0x4a1af8]
movzx edi, bl
mov ebx, dword [ebp - 0x10]
shl esi, 8
xor esi, dword [edi*4 + 0x4a1af8]
movzx edi, bl
xor eax, dword [edx + 0x10]
xor ecx, dword [edx + 0x14]
shr ebx, 0x18
shl esi, 8
xor esi, dword [edi*4 + 0x4a1af8]
mov edi, dword [ebx*4 + 0x4a1af8]
mov ebx, dword [ebp - 0x14]
xor esi, dword [edx + 0x18]
shr ebx, 0x10
shl edi, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4a1af8]
mov ebx, dword [ebp - 0x18]
shr ebx, 8
shl edi, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4a1af8]
movzx ebx, byte [ebp - 0xc]
shl edi, 8
xor edi, dword [ebx*4 + 0x4a1af8]
xor edi, dword [edx + 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [edx + 0xc], edi
pop edi
mov dword [edx], eax
mov dword [edx + 8], esi
xor eax, eax
pop esi
mov dword [edx + 4], ecx
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450b32
leave
ret 0xc