Function at 0x100046e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x140
mov eax, dword [0x10027040]
xor eax, esp
mov dword [esp + 0x13c], eax
push ebx
push ebp
push esi
mov ebp, ecx
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x28], ebp
push edi
mov esi, edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x150]
call fcn.10004600
add esp, 4
xor edx, edx
add esi, 2
movzx ecx, byte [esi - 2]
lea esi, [esi + 4]
movzx eax, byte [esi - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi - 3]
shl ecx, 8
or ecx, eax
mov dword [esp + edx*4 + 0x4c], ecx
inc edx
cmp edx, 0x10
jb 0x10004725
lea eax, [esp + 0x50]
mov ebx, 0x30
nop word [eax + eax]
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax + 0x30]
mov edi, edx
mov ecx, edx
ror edi, 0x12
ror ecx, 7
xor edi, ecx
shr edx, 3
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 0x11
ror edx, 0x13
xor edx, ecx
shr esi, 0xa
xor edx, esi
add edi, edx
add edi, dword [eax + 0x1c]
add edi, dword [eax - 8]
mov dword [eax + 0x38], edi
sub ebx, 1
jne 0x10004760
mov eax, dword [ebp]
mov edi, eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov ebx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov edx, eax
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x1c]
xor ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], eax
jmp 0x100047f8
mov edx, dword [esp + 0x18]
mov esi, ebx
mov eax, ebx
ror eax, 0xb
and edx, ebx
ror esi, 0x19
mov ecx, ebx
xor esi, eax
not ecx
and ecx, dword [esp + 0x1c]
mov eax, ebx
ror eax, 6
xor ecx, edx
xor esi, eax
mov edx, edi
ror edx, 0x16
mov eax, edi
ror eax, 0xd
add esi, ecx
add esi, dword [ebp + 0x100234b0]
xor edx, eax
add esi, dword [esp + ebp + 0x4c]
mov eax, edi
add esi, dword [esp + 0x10]
add ebp, 4
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [esp + 0x14]
xor ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
add edx, ecx
mov eax, dword [esp + 0x18]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
lea edi, [edx + esi]
mov eax, dword [esp + 0x14]
add ebx, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
cmp ebp, 0x100
jb 0x100047f4
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, edi
pop edi
mov dword [ebp], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x148]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x30]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x34]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x38]
add eax, ebx
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x3c]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x40]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0xc]
add eax, dword [esp + 0x44]
pop esi
mov dword [ebp + 0x1c], eax
pop ebp
pop ebx
xor ecx, esp
call fcn.1000daaa
add esp, 0x140
ret