Function at 0x10047220
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
mov ebx, dword [esp + 0x5c]
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi]
mov ebp, dword [esi + 4]
mov edi, dword [esi + 8]
mov edx, dword [esi + 0xc]
xor ecx, eax
xor ebp, eax
xor edi, eax
xor edx, eax
mov dword [esi], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 4], ebp
mov ebp, dword [esi + 0x14]
mov dword [esi + 8], edi
mov edi, dword [esi + 0x18]
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x1c]
xor ecx, eax
xor ebp, eax
xor edi, eax
xor edx, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x14], ebp
mov ebp, dword [esi + 0x24]
mov dword [esi + 0x18], edi
mov edi, dword [esi + 0x28]
mov dword [esi + 0x1c], edx
mov edx, dword [esi + 0x2c]
xor ecx, eax
xor ebp, eax
xor edi, eax
xor edx, eax
mov eax, dword [esi + 0x44]
test eax, eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edx
jbe 0x10047340
mov edi, eax
and edi, 0x3f
jbe 0x10047340
mov ebp, dword [esi + 0x40]
push esi
shr eax, 6
add eax, ebp
mov dword [esi + 0x30], eax
lea eax, [esp + 0x14]
push eax
call fcn.10047510
mov ecx, 0x40
add esp, 8
sub ecx, edi
cmp ecx, ebx
jbe 0x100472cc
mov ecx, ebx
mov edx, ecx
lea ebx, [esp + edi + 0x10]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x54], ebx
shr edx, 3
mov ebp, 0
je 0x1004730c
mov eax, edi
sub ebx, edi
mov dword [esp + 0x58], edx
mov ebp, edx
mov edx, dword [ebx + eax]
xor dword [eax], edx
mov edx, dword [ebx + eax + 4]
xor dword [eax + 4], edx
mov edx, dword [esp + 0x58]
add eax, 8
dec edx
mov dword [esp + 0x58], edx
jne 0x100472ee
mov ebx, dword [esp + 0x54]
shl ebp, 3
cmp ebp, ecx
jae 0x1004732f
sub ebx, edi
mov edx, ecx
lea eax, [edi + ebp]
mov dword [esp + 0x58], ebx
sub edx, ebp
jmp 0x10047326
mov ebx, dword [esp + 0x58]
mov bl, byte [eax + ebx]
xor byte [eax], bl
inc eax
dec edx
jne 0x10047322
mov ebx, dword [esi + 0x30]
add edi, ecx
inc ebx
mov dword [esi + 0x30], ebx
mov ebx, dword [esp + 0x5c]
sub ebx, ecx
jmp 0x10047344
mov edi, dword [esp + 0x58]
test ebx, ebx
jbe 0x100473d3
lea eax, [esp + 0x10]
push esi
push eax
call fcn.10047510
mov eax, 0x40
add esp, 8
cmp ebx, eax
jae 0x10047448
mov ebp, ebx
mov dword [esp + 0x54], ebx
shr ebp, 3
mov edx, 0
je 0x1004739f
lea ecx, [esp + 0x10]
mov eax, edi
sub ecx, edi
mov dword [esp + 0x58], ebp
mov edx, ebp
mov ebp, dword [ecx + eax]
xor dword [eax], ebp
mov ebp, dword [ecx + eax + 4]
xor dword [eax + 4], ebp
mov ebp, dword [esp + 0x58]
add eax, 8
dec ebp
mov dword [esp + 0x58], ebp
jne 0x10047385
shl edx, 3
cmp edx, ebx
jae 0x100473bc
lea ecx, [esp + 0x10]
mov ebp, ebx
sub ecx, edi
lea eax, [edx + edi]
sub ebp, edx
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec ebp
jne 0x100473b3
mov eax, dword [esp + 0x54]
mov ecx, dword [esi + 0x30]
add edi, eax
sub ebx, eax
inc ecx
test ebx, ebx
mov dword [esi + 0x30], ecx
ja 0x1004734c
mov eax, dword [esp + 0x5c]
mov edi, dword [esi + 0x44]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov ebp, dword [esi + 8]
mov ebx, dword [esi + 0xc]
add edi, eax
mov eax, dword [esi + 0x3c]
xor edx, eax
xor ecx, eax
mov dword [esi + 0x44], edi
mov edi, dword [esi + 0x10]
mov dword [esi], edx
mov edx, dword [esi + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0x18]
xor ebp, eax
xor ebx, eax
xor edi, eax
xor edx, eax
xor ecx, eax
mov dword [esi + 8], ebp
mov ebp, dword [esi + 0x1c]
mov dword [esi + 0xc], ebx
mov ebx, dword [esi + 0x20]
mov dword [esi + 0x10], edi
mov edi, dword [esi + 0x24]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x28]
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x2c]
xor ebp, eax
xor ebx, eax
xor edi, eax
xor edx, eax
xor ecx, eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
xor edx, ecx
mov dword [edi], edx
mov edx, dword [esp + 0x14]
mov ebp, dword [edi + 4]
xor ebp, edx
mov edx, dword [edi + 8]
mov dword [edi + 4], ebp
mov ecx, dword [esp + 0x18]
xor edx, ecx
mov dword [edi + 8], edx
mov edx, dword [esp + 0x1c]
mov ebp, dword [edi + 0xc]
xor ebp, edx
mov edx, dword [edi + 0x10]
mov dword [edi + 0xc], ebp
mov ecx, dword [esp + 0x20]
xor edx, ecx
mov dword [edi + 0x10], edx
mov edx, dword [esp + 0x24]
mov ebp, dword [edi + 0x14]
xor ebp, edx
mov edx, dword [edi + 0x18]
mov dword [edi + 0x14], ebp
mov ecx, dword [esp + 0x28]
xor edx, ecx
mov dword [edi + 0x18], edx
mov edx, dword [esp + 0x2c]
mov ebp, dword [edi + 0x1c]
xor ebp, edx
mov edx, dword [edi + 0x20]
mov dword [edi + 0x1c], ebp
mov ecx, dword [esp + 0x30]
xor edx, ecx
mov dword [edi + 0x20], edx
mov edx, dword [esp + 0x34]
mov ebp, dword [edi + 0x24]
xor ebp, edx
mov edx, dword [edi + 0x28]
mov dword [edi + 0x24], ebp
mov ecx, dword [esp + 0x38]
xor edx, ecx
mov dword [edi + 0x28], edx
mov edx, dword [esp + 0x3c]
mov ebp, dword [edi + 0x2c]
xor ebp, edx
mov edx, dword [edi + 0x30]
mov dword [edi + 0x2c], ebp
mov ecx, dword [esp + 0x40]
xor edx, ecx
mov dword [edi + 0x30], edx
mov edx, dword [esp + 0x44]
mov ebp, dword [edi + 0x34]
xor ebp, edx
mov edx, dword [edi + 0x38]
mov dword [edi + 0x34], ebp
mov ecx, dword [esp + 0x48]
xor edx, ecx
mov dword [edi + 0x38], edx
mov edx, dword [esp + 0x4c]
xor dword [edi + 0x3c], edx
jmp 0x100473c0