Function at 0x45b4d0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x456ff4
mov dword [esp + 0x18], fcn.00457b80
jmp fcn.0045b330
mov dword [esp + 0x18], fcn.00458940
jmp 0x45b4d0
mov eax, 0x3c
call fcn.004aee10
mov eax, dword [0x56b0f0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
cmp ebp, edi
je 0x45b579
mov eax, esi
mov dword [esp + 0x18], eax
cmp ebx, 0x10
jb 0x45b561
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x24]
push edx
push edi
push ebp
call dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
xor dword [edi], ecx
mov edx, dword [eax + 4]
xor dword [edi + 4], edx
mov ecx, dword [eax + 8]
xor dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
xor dword [edi + 0xc], edx
mov dword [esp + 0x24], ebp
add esp, 0xc
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
jne 0x45b521
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
jmp 0x45b5e6
cmp ebx, 0x10
jb 0x45b5e6
mov eax, ebx
shr eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
call dword [esp + 0x28]
mov eax, dword [ebp]
mov edx, dword [esi]
xor edx, dword [esp + 0x44]
add esp, 0xc
mov dword [edi], edx
mov ecx, dword [esi + 4]
xor ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
xor edx, dword [esp + 0x40]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [edi + 8], edx
mov ecx, dword [esi + 0xc]
xor ecx, dword [esp + 0x44]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], ecx
sub ebx, 0x10
add ebp, 0x10
add edi, 0x10
sub dword [esp + 0x14], 1
mov dword [esi + 0xc], eax
jne 0x45b587
test ebx, ebx
je 0x45b750
lea edx, [esp + 0x38]
mov eax, esi
sub eax, edx
mov dword [esp + 0x28], eax
mov ecx, edx
mov eax, 1
sub eax, ecx
mov dword [esp + 0x34], eax
mov eax, 2
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, ecx
lea edx, [edi + 2]
sub edi, eax
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
call dword [esp + 0x28]
add esp, 0xc
xor eax, eax
cmp eax, ebx
jae 0x45b706
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
lea ecx, [esp + eax + 0x38]
movzx edx, byte [ecx + edx]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx]
xor dl, byte [ecx + edi]
mov edi, dword [esp + 0x14]
mov byte [ecx + edi], dl
movzx edx, byte [esp + 0x13]
mov edi, dword [esp + 0x28]
mov byte [ecx + edi], dl
mov edx, dword [esp + 0x34]
add edx, ecx
cmp edx, ebx
jae 0x45b6fb
movzx edx, byte [eax + ebp + 1]
mov edi, dword [esp + 0x18]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx + 1]
xor dl, byte [esi + eax + 1]
mov byte [edi + eax - 1], dl
movzx edx, byte [esp + 0x13]
mov byte [esi + eax + 1], dl
mov edx, dword [esp + 0x2c]
add edx, ecx
cmp edx, ebx
jae 0x45b6fe
movzx edx, byte [eax + ebp + 2]
mov byte [esp + 0x13], dl
movzx edx, byte [ecx + 2]
xor dl, byte [esi + eax + 2]
mov byte [edi + eax], dl
movzx edx, byte [esp + 0x13]
mov byte [esi + eax + 2], dl
mov edx, dword [esp + 0x30]
add edx, ecx
cmp edx, ebx
jae 0x45b703
mov cl, byte [ecx + 3]
xor cl, byte [esi + eax + 3]
mov dl, byte [eax + ebp + 3]
mov byte [edi + eax + 1], cl
mov byte [esi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x45b648
jmp 0x45b706
inc eax
jmp 0x45b706
add eax, 2
jmp 0x45b706
add eax, 3
mov edx, 0x10
cmp ebx, edx
jbe 0x45b73a
add dword [esp + 0x20], edx
add dword [esp + 0x14], edx
add dword [esp + 0x18], edx
sub ebx, edx
add ebp, edx
test ebx, ebx
jne 0x45b634
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004add49
add esp, 0x3c
ret
cmp eax, edx
jae 0x45b750
sub ebp, esi
lea ecx, [esi + eax]
sub edx, eax
mov al, byte [ecx + ebp]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x45b745
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004add49
add esp, 0x3c
ret