Function at 0x10047d50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [0x10139d00]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
jne 0x10047d7e
mov eax, 0xffffff9a
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100d0738
add esp, 0x20
ret
mov eax, dword [ebx + 0x60]
or eax, dword [ebx + 0x64]
je 0x10047d67
cmp dword [ebx + 0xe0], esi
je 0x10047d95
mov edi, ebx
call fcn.10048340
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
mov eax, ebx
call fcn.10047ab0
add esp, 0xc
test eax, eax
je 0x10047dc9
mov eax, 0xffffff99
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100d0738
add esp, 0x20
ret
push 0xd0
call fcn.100d279b
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x10047e1a
push 0x4000
call fcn.100d279b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x50], ecx
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x54], edx
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0xc8], esi
cmp eax, esi
jne 0x10047e31
push ebp
call fcn.100d1800
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100d0738
add esp, 0x20
ret
mov dword [ebp + 0x48], esi
mov edx, dword [ebx + 0x94]
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x74], edx
mov eax, dword [ebx + 0x8c]
mov dword [ebp + 0xb8], eax
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 0xb4], ecx
lea edi, [ebp + 0x88]
mov ecx, 0xb
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x48]
mov dword [ebp + 0xc0], edx
mov eax, dword [ebx + 0x4c]
xor esi, esi
mov dword [ebp + 0xc4], eax
mov dword [ebp + 0x18], esi
mov eax, dword [ebx + 0x8c]
cmp eax, 0xc
jne 0x10047fc5
mov dword [ebp + 0xc8], 1
mov ecx, dword [ebx + 0x98]
mov dword [ebp + 0x78], ecx
mov edx, dword [ebx + 0x9c]
mov dword [ebp + 0x7c], edx
mov eax, dword [ebx + 0xa0]
mov edx, dword [esp + 0xc]
mov dword [ebp + 0x80], eax
mov ecx, dword [ebx + 0xa4]
mov dword [ebp + 0x84], ecx
mov ecx, dword [ebx + 0xdc]
xor eax, eax
add edx, dword [ebx + 0xd8]
mov dword [ebp + 8], esi
adc ecx, eax
add edx, 0x1e
adc ecx, esi
mov dword [ebp + 0x40], edx
mov dword [ebp + 0x44], ecx
mov dword [ebx + 0xe0], ebp
mov dword [ebx + 0xe4], esi
call fcn.100ccc80
lea edx, [ebx + 0xec]
mov edi, eax
mov dword [ebx + 0xf8], eax
call fcn.10046780
mov eax, dword [ebx + 0xe0]
mov edx, dword [eax + 0xc0]
add edx, dword [eax + 0x40]
mov ecx, dword [eax + 0xc4]
adc ecx, dword [eax + 0x44]
mov esi, dword [ebx + 0x30]
push ecx
push edx
xor edx, edx
mov eax, ebx
call fcn.10029b00
add esp, 8
test eax, eax
jne 0x10047e1a
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x1c]
push 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, 0xc
jb 0x10047e1a
xor ebp, ebp
lea ecx, [ecx]
mov eax, dword [ebx + 0xf4]
mov edi, dword [ebx + 0xf8]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [esp + ebp + 0x1c], cl
movsx eax, byte [esp + ebp + 0x1c]
lea esi, [ebx + 0xec]
call fcn.10046740
inc ebp
cmp ebp, 0xc
jl 0x10047f60
mov eax, dword [ebx + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov dword [ebx + 0xe4], 1
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.100d0738
add esp, 0x20
ret
cmp eax, 8
jne 0x10047e9a
push 0x38
push str.1.2.11
lea eax, [ebp + 4]
push 0xfffffffffffffff1
push eax
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [eax], esi
mov dword [ebp + 8], esi
call fcn.100cd140
mov edi, eax
add esp, 0x10
cmp edi, esi
jne 0x10048003
mov dword [ebp + 0x48], 8
jmp 0x10047e9a
push ebp
call fcn.100d1800
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100d0738
add esp, 0x20
ret