Function at 0x41770e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x472014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, 0xfffffff
push esi
push edi
mov dword [ebp - 0x48], ebx
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
and edi, edx
mov dword [ebp - 0xc], eax
and ecx, edx
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x10], eax
mov al, byte [ebx + 0x20]
mov byte [ebp - 5], al
mov eax, dword [ebx + 0xc]
and eax, edx
mov dword [ebp - 0x24], ecx
lea ecx, [edi + 0x400000]
mov dword [ebp - 0x34], edi
push eax
mov dword [ebp - 0x28], ecx
call fcn.00414d58
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
test eax, eax
je 0x417a3d
mov ecx, eax
mov edx, edi
and ecx, 7
not edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], edx
jne 0x417793
xor edx, edx
xor edi, edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
jmp 0x4178de
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x34]
mov ecx, ebx
mov edx, dword [ebp - 0xc]
movzx edi, si
shr edx, 0x10
mov eax, edi
xor eax, ebx
ror ecx, 7
imul eax, edx
mov dword [ebp - 0x1c], edx
add ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x30]
sub esi, ecx
movzx edx, ax
ror esi, 0xc
mov eax, ecx
imul esi, edx
ror eax, 0x1c
add esi, eax
xor esi, ebx
mov ebx, dword [ebp - 0x10]
xor edx, esi
shr ebx, 0x10
mov eax, esi
rol edx, 1
shr eax, 0xf
imul edx, ebx
add edx, eax
xor edx, ecx
mov ecx, edx
mov eax, edx
sub ecx, dword [ebp - 0xc]
ror ecx, 0xe
imul ecx, edi
mov edi, dword [ebp - 0x10]
ror eax, 7
xor ecx, eax
xor ecx, esi
mov eax, ecx
ror eax, 0x12
lea esi, [edi + ecx]
ror esi, 0x17
imul esi, dword [ebp - 0x1c]
sub esi, eax
xor esi, edx
mov edx, edi
mov eax, esi
xor eax, dword [ebp - 0xc]
sub edx, eax
xor edx, ecx
mov ecx, dword [ebp - 0xc]
movzx eax, cx
mov edi, edx
sub edi, eax
mov eax, edx
rol edi, 6
imul edi, ebx
shr eax, 3
xor edi, eax
xor edi, esi
mov esi, edi
xor esi, ebx
mov ebx, dword [ebp - 0x10]
rol esi, 2
mov ecx, ebx
movzx eax, bx
imul esi, eax
mov eax, edi
ror eax, 5
add esi, eax
xor esi, edx
sub ecx, esi
mov eax, esi
ror ecx, 0x18
imul ecx, dword [ebp - 0x1c]
ror eax, 0xe
sub ecx, eax
xor ecx, edi
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp - 0xc]
mov eax, ecx
sub eax, ebx
movzx edx, di
ror eax, 0x15
lea edi, [ebp - 0x50]
imul eax, edx
ror ecx, 0x18
sub eax, ecx
mov ecx, dword [ebp - 0x38]
xor eax, esi
mov edx, ecx
mov esi, dword [ebp - 0x28]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
sub edx, 1
jne 0x41788e
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x18]
xor dword [ebp - 0x18], eax
lea edx, [edx + ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
xor dword [ebp - 0x14], eax
mov dword [ebp - 0x34], eax
push 8
pop eax
sub eax, ecx
je 0x4178c0
mov byte [edx], bl
inc edx
sub eax, 1
jne 0x4178b8
mov esi, dword [ebp - 0x20]
lea edi, [ebp - 0x18]
mov ebx, esi
mov edx, ecx
mov al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
sub edx, 1
jne 0x4178ca
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
lea ebx, [ecx + esi]
mov dword [ebp - 0x1c], ebx
mov ebx, eax
shr ebx, 3
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x417a34
mov eax, dword [ebp - 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x1c]
sub ecx, esi
movzx eax, ax
shr ebx, 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], ebx
mov ebx, eax
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
shr ebx, 0x10
add eax, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x28], eax
mov ebx, dword [eax + esi]
mov eax, dword [eax + esi + 4]
mov ecx, eax
xor ecx, edi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov esi, ecx
xor eax, ecx
mov edi, dword [ebp - 0x10]
imul eax, dword [ebp - 0x44]
ror esi, 7
mov dword [ebp - 0x50], ebx
add esi, eax
xor esi, ebx
xor esi, edx
sub edi, esi
mov eax, esi
ror eax, 0x1c
ror edi, 0xc
imul edi, dword [ebp - 0x2c]
add edi, eax
xor edi, ecx
mov edx, edi
mov eax, edi
xor edx, dword [ebp - 0x2c]
rol edx, 1
imul edx, dword [ebp - 0x3c]
shr eax, 0xf
add edx, eax
xor edx, esi
mov ecx, edx
mov eax, edx
sub ecx, dword [ebp - 0xc]
ror ecx, 0xe
imul ecx, dword [ebp - 0x40]
ror eax, 7
xor ecx, eax
xor ecx, edi
mov edi, dword [ebp - 0x10]
mov eax, ecx
ror eax, 0x12
lea esi, [edi + ecx]
ror esi, 0x17
imul esi, dword [ebp - 0x44]
sub esi, eax
xor esi, edx
mov edx, edi
mov eax, esi
xor eax, dword [ebp - 0xc]
sub edx, eax
xor edx, ecx
mov ecx, edx
mov eax, edx
sub ecx, dword [ebp - 0x2c]
rol ecx, 6
imul ecx, dword [ebp - 0x3c]
shr eax, 3
xor ecx, eax
xor ecx, esi
mov esi, dword [ebp - 0x3c]
xor esi, ecx
mov eax, ecx
rol esi, 2
imul esi, dword [ebp - 0x40]
ror eax, 5
add esi, eax
xor esi, edx
mov edx, edi
sub edx, esi
mov eax, esi
ror edx, 0x18
imul edx, dword [ebp - 0x44]
ror eax, 0xe
sub edx, eax
xor edx, ecx
mov eax, edx
xor edx, dword [ebp - 0x30]
mov edi, eax
sub edi, dword [ebp - 0x10]
ror edi, 0x15
imul edi, dword [ebp - 0x2c]
ror eax, 0x18
sub edi, eax
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x28]
xor edi, esi
mov esi, dword [ebp - 0x1c]
xor edi, dword [ebp - 0x34]
mov eax, dword [eax + esi + 4]
mov dword [esi], edx
mov dword [esi + 4], edi
add esi, 8
sub dword [ebp - 0x38], 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], esi
jne 0x417923
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov al, byte [esi + eax - 1]
mov ebx, dword [ebp - 0x48]
jmp 0x417a40
mov al, byte [ebp - 5]
cmp al, byte [ebp - 5]
je 0x417a4a
call fcn.004146f0
mov eax, dword [ebx]
and eax, 0xfffffff
je 0x417a6e
push 4
mov dword [ebp - 0x48], 0x400000
lea edx, [ebp - 0x48]
pop ecx
lea edi, [eax + esi]
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x417a63
mov eax, dword [ebx + 4]
and eax, 0xfffffff
je 0x417a7d
call fcn.00471500
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
and dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00414f9f
mov eax, esi
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ee70
leave
ret