Function at 0x474d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
jbe 0x474dc0
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x474f81
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
jne 0x474fd3
movzx eax, byte [esi + 0xf]
movzx ebx, byte [esi + 0xc]
movzx edi, byte [esi + 0xd]
movzx ebp, byte [esi + 0xe]
mov byte [esp + 0x10], al
mov eax, dword [esi + 0x168]
test eax, eax
je 0x474e91
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x474e6c
mov byte [esp + 0x1c], bl
mov ebx, edi
mov edi, dword [esp + 0x58]
mov byte [esp + 0x20], bl
mov ebx, ebp
mov ebp, dword [esp + 0x5c]
mov byte [esp + 0x24], bl
mov ebx, dword [esp + 0x54]
jmp 0x474e26
test ebp, ebp
je 0x474e4d
movzx ecx, byte [esi + eax + 0x40]
add ebx, 1
add edi, 1
movzx edx, byte [esi + eax + 0x10]
sub ebp, 1
xor dl, byte [ebx - 1]
xor ecx, edx
mov byte [edi - 1], dl
mov byte [esi + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x474e22
test eax, eax
mov dword [esp + 0x54], ebx
movzx ebx, byte [esp + 0x1c]
mov dword [esp + 0x58], edi
movzx edi, byte [esp + 0x20]
mov dword [esp + 0x5c], ebp
movzx ebp, byte [esp + 0x24]
je 0x474e7f
mov dword [esi + 0x168], eax
mov eax, 1
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.00474040
mov eax, edi
movzx edi, al
movzx eax, byte [esp + 0x10]
shl ebx, 0x18
shl edi, 0x10
or ebx, edi
or ebx, eax
mov eax, ebp
movzx ebp, al
shl ebp, 8
or ebx, ebp
cmp dword [esp + 0x5c], 0xf
jbe 0x475068
lea eax, [esi + 0x60]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x40]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
sub eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [ebx + 1]
shr dword [esp + 0x2c], 4
mov dword [esp + 0x10], eax
add eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
call eax
mov ebx, dword [esp + 0x10]
mov edx, esi
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
xor eax, eax
mov byte [esi + 0xf], bl
mov ebx, dword [edx + 0x40]
add edx, 4
mov ecx, dword [edx + 0xc]
xor ecx, dword [edi + eax*4]
mov dword [ebp + eax*4], ecx
xor ebx, ecx
add eax, 1
mov dword [edx + 0x3c], ebx
cmp eax, 4
jne 0x474f32
mov eax, dword [esp + 0x20]
add ebp, 0x10
add edi, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00474040
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, ecx
je 0x474fa0
add eax, 1
mov dword [esp + 0x10], eax
jmp 0x474ef6
cmp eax, 0xffffffe0
ja 0x474db0
mov ecx, dword [esi + 0x16c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
test ecx, ecx
je 0x474dda
jmp 0x474fd3
mov eax, dword [esp + 0x2c]
and dword [esp + 0x5c], 0xf
add eax, 1
shl eax, 4
add dword [esp + 0x58], eax
add dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x474ff4
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x168], eax
mov eax, 1
jmp 0x474e77
lea eax, [esi + 0x60]
mov dword [esp + 4], eax
lea eax, [esi + 0x40]
mov dword [esp], eax
call fcn.00474040
mov dword [esi + 0x16c], 0
jmp 0x474dda
mov eax, dword [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 8], eax
lea eax, [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], esi
mov edi, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
add eax, 1
mov edx, eax
shr edx, 0x18
mov byte [esi + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 0xd], dl
mov edx, eax
shr edx, 8
mov byte [esi + 0xe], dl
mov edx, esi
mov byte [esi + 0xf], al
mov esi, dword [esp + 0x54]
xor eax, eax
movzx ebx, byte [edx + 0x40]
add edx, 1
movzx ecx, byte [edx + 0xf]
xor cl, byte [esi + eax]
mov byte [edi + eax], cl
xor ebx, ecx
add eax, 1
mov byte [edx + 0x3f], bl
cmp eax, ebp
jne 0x475042
mov esi, dword [esp + 0x50]
jmp 0x474fbf
mov dword [esp + 0x1c], ebx
jmp 0x474fb7