Function at 0x421667
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x2c], ecx
add dword [ecx + 0x38], edi
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x4216a8
mov edx, 8
mov dword [ebp - 0x24], eax
sub edx, eax
cmp edi, edx
mov dword [ebp - 0x18], edx
cmovb edx, edi
cmp edx, 3
jbe 0x4216b1
mov eax, dword [ebp - 0x1c]
xor esi, esi
mov ebx, 4
mov edi, dword [eax]
jmp 0x4216b7
mov esi, ecx
xor edx, edx
jmp 0x42181f
xor edi, edi
xor esi, esi
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 0x10], esi
or ecx, 1
cmp ecx, edx
jae 0x4216ee
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx*8]
movzx esi, word [eax + ebx]
xor eax, eax
shld eax, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, esi
cmovne esi, ecx
or ebx, 2
or dword [ebp - 0x10], eax
or edi, esi
cmp ebx, edx
jae 0x42171f
mov eax, dword [ebp - 0x1c]
xor esi, esi
movzx edx, byte [eax + ebx]
shl ebx, 3
xor eax, eax
mov ecx, ebx
shld esi, edx, cl
shl edx, cl
test bl, 0x20
mov ebx, dword [ebp - 0x10]
cmovne esi, edx
cmovne edx, eax
or edi, edx
mov edx, dword [ebp - 0x24]
or ebx, esi
mov esi, dword [ebp - 0x2c]
jmp 0x421728
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x10]
lea ecx, [edx*8]
shld ebx, edi, cl
shl edi, cl
mov eax, edi
xor edi, edi
test cl, 0x20
mov ecx, dword [ebp + 8]
cmovne ebx, eax
cmove edi, eax
or ebx, dword [esi + 0x34]
or edi, dword [esi + 0x30]
cmp dword [ebp - 0x18], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
jbe 0x42175e
add edx, ecx
mov ecx, edx
jmp 0x4219db
mov ecx, dword [esi + 0x1c]
mov eax, edi
mov eax, dword [esi + 0x10]
mov edx, dword [esi]
mov dword [ebp - 0x38], edi
xor ecx, ebx
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x18]
xor ecx, edi
add edx, eax
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x14], edx
mov edx, dword [esi + 4]
adc edx, edi
mov dword [ebp - 0x10], edx
mov edx, eax
shld edx, edi, 0xd
shld edi, eax, 0xd
mov eax, dword [esi + 8]
mov esi, dword [esi + 0xc]
xor edi, dword [ebp - 0x10]
xor edx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov eax, ecx
adc esi, dword [ebp - 0x20]
shld eax, edi, 0x10
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], esi
shrd ecx, edi, 0x10
mov edi, dword [ebp - 0x30]
xor ecx, esi
xor eax, edi
add dword [ebp - 0x10], eax
mov esi, eax
adc dword [ebp - 0x14], ecx
shld esi, ecx, 0x15
shrd eax, ecx, 0xb
mov ecx, dword [ebp - 0x2c]
xor esi, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov dword [ecx + 0x18], esi
mov esi, dword [ebp - 0x2c]
mov ecx, edi
mov edi, dword [ebp - 0x34]
add ecx, edx
mov dword [esi + 0x1c], eax
mov eax, edx
adc dword [ebp - 0x28], edi
shrd edx, edi, 0xf
shld eax, edi, 0x11
mov edi, dword [ebp + 8]
xor eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x28]
xor edx, eax
mov dword [esi + 0x14], edx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [esi + 0xc], ecx
xor eax, ebx
mov ebx, dword [ebp - 0x10]
mov dword [esi + 4], eax
xor ebx, dword [ebp - 0x38]
mov dword [esi], ebx
sub edi, edx
mov ecx, edi
and edi, 0xfffffff8
and ecx, 7
cmp edx, edi
mov dword [ebp - 0x24], ecx
jae 0x421938
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x3c], edi
mov edx, dword [esi]
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + ecx + 4]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x38], ecx
xor dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x18]
mov ecx, dword [esi + ecx]
xor edi, ecx
add edx, ebx
mov dword [ebp - 0x34], ecx
mov ecx, ebx
adc dword [ebp - 0x10], eax
shld ecx, eax, 0xd
shld eax, ebx, 0xd
mov ebx, dword [ebp - 0x20]
mov esi, edi
xor ecx, edx
xor eax, dword [ebp - 0x10]
add dword [ebp - 0x14], edi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x28]
adc ecx, ebx
shld esi, ebx, 0x10
shrd edi, ebx, 0x10
xor esi, dword [ebp - 0x14]
mov dword [ebp - 0x44], ecx
xor edi, ecx
mov ecx, dword [ebp - 0x10]
add ecx, esi
mov ebx, esi
adc edx, edi
shrd esi, edi, 0xb
shld ebx, edi, 0x15
mov dword [ebp - 0x40], ecx
mov edi, ebx
xor esi, edx
mov dword [ebp - 0x20], esi
xor edi, ecx
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x14]
add esi, ecx
mov ebx, ecx
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x44]
adc esi, eax
xor edx, dword [ebp - 0x38]
shld ebx, eax, 0x11
shld eax, ecx, 0x11
mov ecx, dword [ebp - 0x18]
xor eax, esi
xor ebx, dword [ebp - 0x28]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x40]
add ecx, 8
mov dword [ebp - 0x18], ecx
xor edx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x3c]
jb 0x42185d
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], edx
mov edx, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
cmp ecx, 3
jbe 0x42194c
mov esi, dword [eax + edx]
xor edi, edi
mov ebx, 4
jmp 0x421952
xor esi, esi
xor edi, edi
xor ebx, ebx
mov eax, dword [ebp - 0x24]
mov ecx, ebx
mov dword [ebp - 0x18], edx
or ecx, 1
cmp ecx, eax
jae 0x42199d
mov eax, dword [ebp - 0x1c]
lea ecx, [ebx + edx]
mov dword [ebp - 0x10], edi
mov edi, esi
mov esi, 0
movzx edx, word [eax + ecx]
lea ecx, [ebx*8]
xor eax, eax
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, dword [ebp - 0x24]
cmovne eax, edx
cmovne edx, esi
mov esi, edi
mov edi, dword [ebp - 0x10]
or ebx, 2
or esi, edx
or edi, eax
jmp 0x42199f
mov ecx, eax
cmp ebx, ecx
jae 0x4219d0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add ecx, ebx
shl ebx, 3
movzx edx, byte [eax + ecx]
xor eax, eax
mov ecx, ebx
shld eax, edx, cl
shl edx, cl
mov ecx, dword [ebp - 0x24]
test bl, 0x20
mov ebx, 0
cmovne eax, edx
cmovne edx, ebx
or edi, eax
or esi, edx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x30], esi
mov esi, eax
mov dword [eax + 0x34], edi
mov dword [esi + 0x3c], ecx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret