Function at 0x4af9ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov edi, dword [ebx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
add dword [ebx], eax
mov dword [ebp - 0xc], edx
adc dword [ebx + 4], 0
cmp dword [ebx + 0x28], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edi
je 0x4afbd7
mov ecx, dword [ebx + 0x28]
mov edi, dword [ebp + 0x10]
push 8
pop eax
sub eax, ecx
add ecx, 0x38
add ecx, ebx
mov dword [ebp - 0x30], eax
cmp edi, eax
jae 0x4afa49
push edi
push dword [ebp + 0xc]
push ecx
call fcn.0055f020
add esp, 0xc
add dword [ebx + 0x28], edi
jmp 0x4afe0c
push eax
push dword [ebp + 0xc]
push ecx
call fcn.0055f020
sub edi, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x30]
movzx eax, byte [ebx + 0x3f]
mov dword [ebp - 0x24], ecx
cdq
mov ecx, eax
mov dword [ebp + 0x10], edi
movzx eax, byte [ebx + 0x3e]
mov edi, edx
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebx + 0x3d]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebx + 0x3c]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebx + 0x3b]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebx + 0x3a]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebx + 0x39]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
movzx eax, byte [ebx + 0x38]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
xor dword [ebp - 8], edi
or ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
xor eax, ecx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebx + 0x30]
test ecx, ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], eax
jle 0x4afbc4
mov ebx, esi
jmp 0x4afb0a
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0xc], edx
adc ebx, dword [ebp - 0x18]
xor esi, esi
shld dword [ebp - 0x18], ecx, 0xd
or esi, dword [ebp - 0x18]
shl ecx, 0xd
xor esi, ebx
shr edi, 0x13
or edi, ecx
mov ecx, dword [ebp - 8]
xor edi, edx
add dword [ebp - 0x10], eax
mov edx, ecx
adc dword [ebp - 0x14], ecx
xor ecx, ecx
shld dword [ebp - 8], eax, 0x10
or ecx, dword [ebp - 8]
xor ecx, dword [ebp - 0x14]
shl eax, 0x10
shr edx, 0x10
or edx, eax
mov eax, ebx
xor edx, dword [ebp - 0x10]
xor ebx, ebx
or ebx, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, ecx
adc ebx, ecx
and dword [ebp - 8], 0
shld ecx, edx, 0x15
shr eax, 0xb
or dword [ebp - 8], ecx
mov ecx, esi
xor dword [ebp - 8], ebx
shl edx, 0x15
or eax, edx
mov edx, dword [ebp - 0xc]
xor eax, edx
add dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
adc dword [ebp - 0x14], esi
xor eax, eax
shld esi, edi, 0x11
shr ecx, 0xf
shl edi, 0x11
or eax, esi
mov esi, dword [ebp - 0x14]
or ecx, edi
mov edi, dword [ebp - 0x10]
xor eax, esi
mov dword [ebp - 0x10], esi
xor ecx, edi
xor esi, esi
mov dword [ebp - 0x20], ecx
or esi, edi
mov dword [ebp - 0x18], eax
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x14], esi
jne 0x4afb07
mov edi, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
xor edx, dword [ebp - 0x28]
xor esi, edi
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
jmp 0x4afbe0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
and eax, 7
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], eax
je 0x4afdc7
mov edi, dword [ebp - 0x24]
mov eax, dword [ebx + 0x30]
add edi, 6
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edi
movzx eax, byte [edi + 1]
cdq
shld edx, eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [edi]
mov dword [ebp - 4], edx
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [edi - 1]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [edi - 2]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [edi - 3]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [edi - 4]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [edi - 5]
cdq
or dword [ebp + 0x10], eax
or dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
shld dword [ebp - 4], eax, 8
shl eax, 8
mov dword [ebp + 0x10], eax
movzx eax, byte [edi - 6]
cdq
or dword [ebp - 4], edx
or dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
xor dword [ebp - 8], edx
xor eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
test edx, edx
jle 0x4afd9b
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
add edx, ecx
mov dword [ebp - 0xc], edx
adc ebx, dword [ebp - 0x18]
xor esi, esi
shld dword [ebp - 0x18], ecx, 0xd
or esi, dword [ebp - 0x18]
shl ecx, 0xd
xor esi, ebx
shr edi, 0x13
or edi, ecx
mov ecx, dword [ebp - 8]
xor edi, edx
add dword [ebp - 0x10], eax
mov edx, ecx
adc dword [ebp - 0x14], ecx
xor ecx, ecx
shld dword [ebp - 8], eax, 0x10
or ecx, dword [ebp - 8]
xor ecx, dword [ebp - 0x14]
shl eax, 0x10
shr edx, 0x10
or edx, eax
mov eax, ebx
xor edx, dword [ebp - 0x10]
xor ebx, ebx
or ebx, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, ecx
adc ebx, ecx
and dword [ebp - 8], 0
shld ecx, edx, 0x15
shr eax, 0xb
or dword [ebp - 8], ecx
mov ecx, esi
xor dword [ebp - 8], ebx
shl edx, 0x15
or eax, edx
mov edx, dword [ebp - 0xc]
xor eax, edx
add dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], eax
adc dword [ebp - 0x14], esi
xor eax, eax
shld esi, edi, 0x11
shr ecx, 0xf
or eax, esi
shl edi, 0x11
mov esi, dword [ebp - 0x14]
or ecx, edi
mov edi, dword [ebp - 0x10]
xor eax, esi
mov dword [ebp - 0x10], esi
xor ecx, edi
xor esi, esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
or esi, edi
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x14], esi
jne 0x4afce2
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
jmp 0x4afd9e
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp + 0x10]
add edi, 8
xor ebx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x30], edi
lea eax, [edi - 6]
cmp eax, esi
jne 0x4afc10
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4afde2
push ecx
push eax
lea eax, [ebx + 0x38]
push eax
call fcn.0055f020
mov edx, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x28], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebx
leave
ret