Function at 0x104f8eb0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x74]
movzx eax, ax
mov ecx, eax
shl ecx, 8
xor ecx, eax
and ecx, 0xff00ff
mov eax, ecx
shl eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
lea esi, [eax*4]
mov ebx, dword [esp + 0x80]
xor esi, eax
mov eax, dword [esp + 0x78]
movzx eax, ax
and esi, 0x33333333
mov ecx, eax
shl ecx, 8
xor ecx, eax
and ecx, 0xff00ff
mov eax, ecx
shl eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
mov edi, dword [esp + 0x6c]
lea ecx, [eax*4]
xor ecx, eax
lea eax, [esi + esi]
xor eax, esi
and ecx, 0x33333333
add eax, eax
lea edx, [ecx + ecx]
xor edx, ecx
mov ecx, dword [esp + 0x70]
xor eax, edx
and eax, 0xaaaaaaaa
xor eax, edx
movzx ebp, byte [ecx + eax*8 + 3]
lea ecx, [ecx + eax*8]
movzx eax, byte [ecx + 2]
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx + 1]
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx]
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx + 7]
and eax, 1
mov dword [esp + 0x3c], ebp
shl eax, 4
xor ecx, ecx
add eax, 0x10a46108
mov dword [esp + 0x48], ecx
mov dword [esp + 0x60], eax
add edi, 2
mov eax, 0x10a460c8
mov dword [esp + 0x28], eax
cmp ecx, 2
mov dword [esp + 0x44], edi
sbb eax, eax
xor edx, edx
add eax, dword [esp + 0x78]
xor ebp, ebp
div ebx
mov dword [esp + 0x40], ebp
mov ecx, edx
xor edx, edx
lea eax, [ecx + 1]
div ebx
movzx eax, cx
mov ecx, eax
shl ecx, 8
xor ecx, eax
and ecx, 0xff00ff
mov eax, ecx
shl eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
lea esi, [eax*4]
xor esi, eax
movzx eax, dx
mov ecx, eax
and esi, 0x33333333
shl ecx, 8
xor ecx, eax
and ecx, 0xff00ff
mov eax, ecx
lea ebx, [esi + esi]
shl eax, 4
xor ebx, esi
xor eax, ecx
mov dword [esp + 0x64], ebx
and eax, 0xf0f0f0f
lea ecx, [eax*4]
xor ecx, eax
and ecx, 0x33333333
lea edx, [ecx + ecx]
xor edx, ecx
mov dword [esp + 0x2c], edx
nop dword [eax]
cmp ebp, 2
sbb eax, eax
xor edx, edx
add eax, dword [esp + 0x74]
div dword [esp + 0x7c]
movzx eax, dx
mov ecx, eax
shl ecx, 8
xor ecx, eax
and ecx, 0xff00ff
mov eax, ecx
shl eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
lea ecx, [eax*4]
xor ecx, eax
and ecx, 0x33333333
lea eax, [ecx + ecx]
xor eax, ecx
mov ecx, dword [esp + 0x70]
lea edi, [eax + eax]
mov eax, edi
xor edi, dword [esp + 0x2c]
xor eax, ebx
and edi, 0xaaaaaaaa
and eax, 0xaaaaaaaa
xor edi, dword [esp + 0x2c]
xor eax, ebx
movzx ebp, byte [ecx + eax*8 + 7]
lea ecx, [ecx + eax*8]
movzx eax, byte [ecx + 6]
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx + 5]
shl ebp, 8
or ebp, eax
movzx eax, byte [ecx + 4]
shl ebp, 8
or ebp, eax
lea eax, [edx + 1]
xor edx, edx
mov dword [esp + 0x58], ebp
div dword [esp + 0x7c]
movzx eax, dx
mov ecx, eax
shl ecx, 8
xor ecx, eax
and ecx, 0xff00ff
mov eax, ecx
shl eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
lea ecx, [eax*4]
xor ecx, eax
and ecx, 0x33333333
lea edx, [ecx + ecx]
xor edx, ecx
mov ecx, dword [esp + 0x70]
mov eax, edx
xor eax, esi
add eax, eax
xor eax, esi
and eax, 0xaaaaaaaa
xor eax, ebx
movzx ebx, byte [ecx + eax*8 + 7]
shl ebx, 8
lea ecx, [ecx + eax*8]
movzx eax, byte [ecx + 6]
or ebx, eax
movzx eax, byte [ecx + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 4]
shl ebx, 8
or ebx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], ebx
movzx ecx, byte [eax + edi*8 + 7]
movzx eax, byte [eax + edi*8 + 6]
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x70]
shl ecx, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
movzx eax, byte [eax + edi*8 + 5]
or ecx, eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x70]
shl ecx, 8
movzx eax, byte [eax + edi*8 + 4]
or ecx, eax
lea eax, [edx + edx]
xor eax, dword [esp + 0x2c]
and eax, 0xaaaaaaaa
mov dword [esp + 0x34], ecx
xor eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x70]
movzx edx, byte [ecx + eax*8 + 7]
lea ecx, [ecx + eax*8]
movzx eax, byte [ecx + 6]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 5]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 4]
mov ecx, dword [esp + 0x28]
shl edx, 8
or edx, eax
mov dword [esp + 0x38], edx
movzx eax, byte [ecx]
mov byte [esp + 0x30], al
movzx eax, byte [ecx + 1]
push dword [esp + 0x30]
mov byte [esp + 0x50], al
movzx eax, byte [ecx + 2]
mov byte [esp + 0x54], al
movzx eax, byte [ecx + 3]
mov byte [esp + 0x58], al
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call fcn.104f9af0
mov ebp, dword [esp + 0x60]
lea eax, [esp + 0x28]
push ebp
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.104f9af0
mov ebx, dword [esp + 0x78]
lea eax, [esp + 0x3c]
push ebx
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x6c]
call fcn.104f9af0
mov edi, dword [esp + 0x90]
lea eax, [esp + 0x50]
push edi
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x84]
call fcn.104f9af0
add esp, 0x50
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
push dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x68]
call fcn.104f9bf0
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x80]
call fcn.104f9bf0
push ebx
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x6c]
call fcn.104f9bf0
push edi
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x84]
call fcn.104f9bf0
mov ebp, dword [esp + 0x8c]
add esp, 0x50
mov ecx, dword [esp + 0x60]
mov eax, ebp
mov edi, dword [esp + 0x44]
and eax, 3
add dword [esp + 0x28], 4
shr ebp, 2
mov dword [esp + 0x3c], ebp
movzx edx, byte [ecx + eax*4 + 1]
movzx ebx, byte [ecx + eax*4]
mov ecx, edx
imul ecx, dword [esp + 0x10]
mov eax, ebx
imul eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x40]
inc ebp
mov byte [edi + 1], 0xff
mov dword [esp + 0x40], ebp
add ecx, eax
mov eax, ebx
imul ebx, dword [esp + 0x20]
imul eax, dword [esp + 0x1c]
shr ecx, 7
mov byte [edi - 2], cl
mov ecx, edx
imul ecx, dword [esp + 0x18]
imul edx, dword [esp + 0x24]
add ecx, eax
add ebx, edx
shr ecx, 7
shr ebx, 7
mov byte [edi], bl
mov ebx, dword [esp + 0x64]
mov byte [edi - 1], cl
add edi, 4
mov dword [esp + 0x44], edi
cmp ebp, 4
jl 0x104f9010
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x80]
inc ecx
mov dword [esp + 0x48], ecx
cmp ecx, 4
jl 0x104f8f84
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret