Function at 0x45d280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
push esi
mov esi, ecx
test eax, eax
je 0x45d4d9
mov edx, dword [ebp + 8]
push ebx
push edi
nop dword [eax]
mov ecx, dword [esi + 0x168]
dec eax
mov dword [ebp + 0xc], eax
mov al, byte [edx]
inc edx
mov dword [ebp + 8], edx
mov byte [esi + ecx + 0x28], al
inc dword [esi + 0x168]
cmp dword [esi + 0x168], 0x40
jb 0x45d4be
lea edi, [esi + 0x2c]
mov ebx, 4
nop
mov ecx, dword [edi - 4]
lea edi, [edi + 0x10]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [edi - 0x14], edx
mov ecx, dword [edi - 0x10]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [edi - 0x10], edx
mov ecx, dword [edi - 0xc]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [edi - 0xc], edx
mov ecx, dword [edi - 8]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [edi - 8], edx
sub ebx, 1
jne 0x45d2d0
lea ecx, [esi + 0x28]
lea edx, [ebx + 0x40]
nop word [eax + eax]
mov eax, dword [ecx + 0x34]
lea ecx, [ecx + 4]
xor eax, dword [ecx + 0x1c]
xor eax, dword [ecx + 4]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x3c], eax
sub edx, 1
jne 0x45d390
mov eax, dword [esi + 0x14]
mov dword [esi], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x28
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp edx, 0x14
jae 0x45d3fa
mov eax, ebx
not eax
and eax, ecx
mov ecx, ebx
and ecx, edi
or eax, ecx
jmp 0x45d419
cmp edx, 0x28
jb 0x45d413
cmp edx, 0x3c
jae 0x45d413
mov eax, edi
or eax, ecx
mov ecx, edi
and ecx, dword [ebp - 0xc]
and eax, ebx
or eax, ecx
jmp 0x45d419
mov eax, ebx
xor eax, edi
xor eax, ecx
cmp edx, 0x14
jae 0x45d425
mov ecx, 0x5a827999
jmp 0x45d442
cmp edx, 0x28
jae 0x45d431
mov ecx, 0x6ed9eba1
jmp 0x45d442
cmp edx, 0x3c
sbb ecx, ecx
and ecx, 0xc4b8fb06
add ecx, 0xca62c1d6
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
add dword [ebp - 8], 4
rol ebx, 5
add ebx, dword [edx + esi]
add ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ecx, edi
add dword [ebp - 4], eax
inc edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi]
mov dword [ebp - 0xc], edi
mov dword [esi + 0xc], edi
mov edi, dword [ebp - 0x14]
ror edi, 2
cmp dword [ebp - 8], 0x168
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], edi
mov dword [ebp - 0x14], ebx
mov dword [esi + 4], ebx
mov dword [esi], eax
mov dword [ebp - 0x18], edx
jb 0x45d3e2
add dword [esi + 0x14], eax
mov eax, ebx
add dword [esi + 0x18], eax
mov eax, edi
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
add dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x24], eax
mov edx, dword [ebp + 8]
mov dword [esi + 0x168], 0
add dword [esi + 0x170], 8
mov eax, dword [ebp + 0xc]
adc dword [esi + 0x174], 0
test eax, eax
jne 0x45d2a0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8