Function at 0x4021d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov edx, ecx
push ebx
push ebp
push esi
mov eax, dword [edx + 0x48]
lea esi, [edx + 0x28]
mov ebx, dword [edx + 4]
add eax, 0x28
mov ebp, dword [edx]
add eax, edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
push edi
test ebx, ebx
jne 0x402215
cmp ebp, 0x20
jae 0x402215
add ebp, dword [edx + 0x18]
adc ebx, dword [edx + 0x1c]
add ebp, 0x165667c5
adc ebx, 0x27d4eb2f
jmp 0x4023ea
mov edi, dword [edx + 0x10]
mov esi, edx
mov ecx, dword [edx + 8]
mov ebp, edi
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0xc]
mov edx, ecx
shld edx, eax, 1
shld eax, ecx, 1
mov ecx, dword [esi + 0x18]
shld ebp, ebx, 7
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], ebp
mov ebp, esi
shld ebx, edi, 7
mov dword [esp + 0x14], edx
mov edi, ecx
mov edx, eax
shld edx, ecx, 0xc
mov ecx, dword [esi + 0x20]
shld edi, eax, 0xc
mov eax, dword [esi + 0x24]
mov esi, dword [ebp + 0x20]
mov ebp, dword [esp + 0x20]
shld ecx, eax, 0x12
shld eax, esi, 0x12
add dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
adc ebp, ebx
mov ebx, dword [esp + 0x14]
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [esi + 0xc]
add ebx, edi
push dword [esi + 8]
adc ebp, edx
add ebx, ecx
adc ebp, eax
call fcn.0041a770
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0041a770
push 0x9e3779b1
push 0x85ebca87
xor edx, ebp
xor eax, ebx
push edx
push eax
call fcn.0041a770
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [esi + 0x14]
mov edi, eax
mov ebx, edx
push dword [esi + 0x10]
add edi, 0xc2b2ae63
adc ebx, 0x85ebca77
call fcn.0041a770
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0041a770
push 0x9e3779b1
push 0x85ebca87
xor edx, ebx
xor eax, edi
push edx
push eax
call fcn.0041a770
mov edi, eax
push 0xc2b2ae3d
mov ebx, edx
add edi, 0xc2b2ae63
mov edx, dword [esi + 0x1c]
push 0x27d4eb4f
push edx
mov edx, dword [esi + 0x18]
adc ebx, 0x85ebca77
push edx
call fcn.0041a770
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0041a770
push 0x9e3779b1
push 0x85ebca87
xor edx, ebx
xor eax, edi
push edx
push eax
call fcn.0041a770
push 0xc2b2ae3d
mov edi, eax
mov ebx, edx
mov edx, dword [esi + 0x24]
add edi, 0xc2b2ae63
mov eax, dword [esi + 0x20]
push 0x27d4eb4f
push edx
push eax
adc ebx, 0x85ebca77
call fcn.0041a770
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0041a770
push 0x9e3779b1
push 0x85ebca87
xor edx, ebx
xor eax, edi
push edx
push eax
call fcn.0041a770
add eax, dword [esi]
adc edx, dword [esi + 4]
add eax, 0xc2b2ae63
mov esi, dword [esp + 0x28]
mov ebp, eax
mov eax, dword [esp + 0x1c]
adc edx, 0x85ebca77
mov ebx, edx
lea edi, [esi + 8]
cmp edi, eax
ja 0x40245d
push 0xc2b2ae3d
push 0x27d4eb4f
push dword [esi + 4]
push dword [esi]
call fcn.0041a770
mov ecx, eax
push 0x9e3779b1
shld ecx, edx, 0x1f
shld edx, eax, 0x1f
push 0x85ebca87
push edx
push ecx
call fcn.0041a770
mov ecx, eax
xor edx, ebx
xor ecx, ebp
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0x1b
shld edx, ecx, 0x1b
push 0x85ebca87
push edx
push eax
call fcn.0041a770
mov ebp, eax
mov ebx, edx
add ebp, 0xc2b2ae63
adc ebx, 0x85ebca77
add edi, 8
add esi, 8
cmp edi, dword [esp + 0x1c]
jbe 0x4023f1
mov edi, dword [esp + 0x1c]
lea eax, [esi + 4]
mov dword [esp + 0x28], eax
cmp eax, edi
ja 0x4024b3
mov ecx, dword [esi]
mov eax, 0x9e3779b1
mul ecx
push 0xc2b2ae3d
mov esi, eax
mov eax, 0x85ebca87
mul ecx
push 0x27d4eb4f
add esi, edx
xor eax, ebp
xor esi, ebx
mov ecx, eax
shld ecx, esi, 0x17
shld esi, eax, 0x17
push esi
push ecx
call fcn.0041a770
mov esi, dword [esp + 0x28]
mov ebp, eax
add ebp, 0x9e3779f9
mov ebx, edx
adc ebx, 0x165667b1
cmp esi, edi
jae 0x4024f6
movzx eax, byte [esi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.0041a770
mov ecx, eax
xor edx, ebx
xor ecx, ebp
mov eax, ecx
push 0x9e3779b1
shld eax, edx, 0xb
shld edx, ecx, 0xb
push 0x85ebca87
push edx
push eax
call fcn.0041a770
inc esi
mov ebp, eax
mov ebx, edx
cmp esi, edi
jb 0x4024b7
push 0xc2b2ae3d
xor eax, eax
mov ecx, ebx
push 0x27d4eb4f
shr ecx, 1
xor eax, ebx
xor ecx, ebp
push eax
push ecx
call fcn.0041a770
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.0041a770
mov ecx, edx
xor esi, esi
pop edi
xor eax, ecx
xor edx, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret