Function at 0x4375d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
add dword [edi + 0x38], 8
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x14], ebp
test eax, eax
je 0x4376ad
mov esi, 8
mov edx, 8
mov dword [esp + 0x1c], eax
sub esi, eax
cmovae edx, esi
xor ebx, ebx
xor eax, eax
mov dword [esp + 4], esi
cmp edx, 4
setae al
cmovb ebp, ebx
lea ecx, [eax*4 + 1]
shl eax, 2
cmp ecx, edx
jae 0x437650
movzx esi, word [esp + eax + 0x14]
lea ecx, [eax*8]
xor ebx, ebx
xor edi, edi
shld ebx, esi, cl
shl esi, cl
test cl, 0x20
cmovne ebx, esi
cmovne esi, edi
or eax, 2
or ebp, esi
cmp eax, edx
jae 0x437673
movzx edx, byte [esp + eax + 0x14]
shl eax, 3
xor edi, edi
xor esi, esi
mov ecx, eax
shld edi, edx, cl
shl edx, cl
test al, 0x20
cmovne edi, edx
cmovne edx, esi
or ebx, edi
or ebp, edx
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x48]
xor edx, edx
lea ecx, [eax*8]
shld ebx, ebp, cl
shl ebp, cl
test cl, 0x20
cmovne ebx, ebp
cmove edx, ebp
or ebx, dword [edi + 0x34]
or edx, dword [edi + 0x30]
cmp eax, 8
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], ebx
jbe 0x4376b4
mov ebp, eax
add ebp, 8
jmp 0x437946
xor esi, esi
jmp 0x43778c
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
mov ebp, dword [edi + 0x10]
mov esi, dword [edi + 0x24]
xor eax, ebx
xor ecx, edx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x20]
add ebp, eax
mov dword [esp + 8], ebp
mov ebp, dword [edi + 0x14]
mov edi, eax
adc ebp, esi
shld edi, esi, 0xd
shld esi, eax, 0xd
mov eax, dword [esp + 0x48]
xor esi, ebp
xor edi, dword [esp + 8]
mov dword [esp], ebp
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x18]
add eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
mov ebp, dword [eax + 0x1c]
mov eax, ecx
adc ebp, esi
shrd ecx, esi, 0x10
shld eax, esi, 0x10
mov esi, dword [esp + 0x20]
xor ecx, ebp
xor eax, esi
add dword [esp], eax
mov edx, eax
adc dword [esp + 8], ecx
shld edx, ecx, 0x15
shrd eax, ecx, 0xb
mov ecx, dword [esp + 0x48]
xor edx, dword [esp]
mov dword [ecx + 0x28], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x48]
xor eax, edx
mov dword [ecx + 0x2c], eax
mov ecx, esi
mov esi, dword [esp + 0x10]
mov eax, edi
add ecx, edi
adc ebp, esi
shld eax, esi, 0x11
shrd edi, esi, 0xf
mov esi, ecx
xor eax, ecx
mov ecx, dword [esp + 0x48]
xor edi, ebp
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp]
mov dword [eax + 0x24], edi
mov edi, dword [esp + 0x48]
xor ecx, dword [esp + 0xc]
mov eax, edx
xor eax, ebx
mov dword [edi + 0x1c], esi
mov esi, dword [esp + 4]
mov dword [edi + 0x18], ebp
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov eax, 8
sub eax, esi
mov ebp, eax
and eax, 0xfffffff8
and ebp, 7
cmp esi, eax
jae 0x4378b8
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 4], esi
mov dword [esp + 0x24], eax
mov edx, dword [edi + 0x28]
mov ebx, dword [edi + 0x10]
mov esi, dword [edi + 0x14]
mov eax, dword [edi + 0x20]
mov ebp, edi
mov dword [esp], ecx
mov ecx, dword [edi + 0x24]
mov edi, dword [edi + 0x1c]
mov dword [esp + 8], edi
mov edi, dword [ebp + 0x18]
mov ebp, dword [esp + 4]
mov ebp, dword [esp + ebp + 0x18]
mov dword [esp + 0xc], ebp
mov ebp, dword [esp]
xor ebp, dword [esp + 0xc]
mov dword [esp], ebp
mov ebp, dword [esp + 4]
mov ebp, dword [esp + ebp + 0x14]
xor edx, ebp
add ebx, eax
mov dword [esp + 0x20], ebp
mov ebp, eax
adc esi, ecx
shld ebp, ecx, 0xd
shld ecx, eax, 0xd
mov eax, dword [esp]
xor ebp, ebx
xor ecx, esi
add edi, edx
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 8]
mov dword [esp + 0x28], edi
mov edi, edx
adc ebp, eax
shrd edx, eax, 0x10
shld edi, eax, 0x10
mov eax, ebp
xor edx, ebp
mov ebp, dword [esp + 0x28]
xor edi, ebp
add esi, edi
mov dword [esp + 0x10], esi
mov esi, edi
adc ebx, edx
shrd edi, edx, 0xb
shld esi, edx, 0x15
xor edi, ebx
mov edx, esi
mov esi, ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp], edi
mov edi, eax
xor edx, dword [esp + 0x10]
add esi, ebp
mov eax, ebp
adc edi, ecx
add dword [esp + 4], 8
mov dword [esp + 8], esi
shld eax, ecx, 0x11
shld ecx, ebp, 0x11
mov esi, ebx
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 4]
xor esi, dword [esp + 0xc]
xor ecx, edi
xor eax, dword [esp + 8]
xor ebx, dword [esp + 0x20]
cmp ebp, dword [esp + 0x24]
jb 0x4377d0
mov ebp, edi
mov edi, dword [esp + 0x48]
mov dword [edi + 0x28], edx
mov edx, dword [esp]
mov dword [edi + 0x2c], edx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], eax
mov dword [edi + 0x18], ebp
mov ecx, dword [esp + 8]
mov esi, dword [esp + 4]
mov ebp, dword [esp + 0x1c]
mov dword [edi + 0x1c], ecx
xor edx, edx
cmp ebp, 3
jbe 0x4378ca
mov edi, dword [esp + esi + 0x14]
mov eax, 4
jmp 0x4378ce
xor eax, eax
xor edi, edi
mov ecx, eax
mov dword [esp + 4], esi
or ecx, 1
cmp ecx, ebp
jae 0x43790a
lea ecx, [eax + esi]
mov ebx, ebp
xor ebp, ebp
movzx esi, word [esp + ecx + 0x14]
lea ecx, [eax*8]
shld ebp, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne ebp, esi
cmovne esi, ecx
or eax, 2
or edx, ebp
mov ebp, ebx
or edi, esi
cmp eax, ebp
jae 0x43793a
mov ebx, dword [esp + 4]
add ebx, eax
shl eax, 3
movzx esi, byte [esp + ebx + 0x14]
mov ebx, ebp
xor ebp, ebp
mov ecx, eax
shld ebp, esi, cl
shl esi, cl
test al, 0x20
mov eax, 0
cmovne ebp, esi
cmovne esi, eax
or edx, ebp
mov ebp, ebx
or edi, esi
mov eax, dword [esp + 0x48]
mov dword [eax + 0x30], edi
mov edi, eax
mov dword [eax + 0x34], edx
mov dword [edi + 0x3c], ebp
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret