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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x80]
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 + 0x8c]
xor esi, eax
mov eax, dword [esp + 0x84]
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 + 0x78]
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 + 0x7c]
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 + 0x48], ebp
shl eax, 4
xor ecx, ecx
add eax, 0x10a46108
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], eax
add edi, 2
mov eax, 0x10a460c8
mov dword [esp + 0x34], eax
nop word [eax + eax]
cmp ecx, 2
mov dword [esp + 0x50], edi
sbb eax, eax
xor edx, edx
add eax, dword [esp + 0x84]
xor ebp, ebp
div ebx
mov dword [esp + 0x4c], 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 + 0x70], ebx
and eax, 0xf0f0f0f
lea ecx, [eax*4]
xor ecx, eax
and ecx, 0x33333333
lea edx, [ecx + ecx]
xor edx, ecx
mov dword [esp + 0x38], edx
nop dword [eax + eax]
cmp ebp, 2
sbb eax, eax
xor edx, edx
add eax, dword [esp + 0x80]
div dword [esp + 0x88]
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 + 0x7c]
lea edi, [eax + eax]
mov eax, edi
xor edi, dword [esp + 0x38]
xor eax, ebx
and edi, 0xaaaaaaaa
and eax, 0xaaaaaaaa
xor edi, dword [esp + 0x38]
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 + 0x64], ebp
div dword [esp + 0x88]
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 + 0x7c]
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 + 0x7c]
mov dword [esp + 0x68], 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 + 0x7c]
shl ecx, 8
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
movzx eax, byte [eax + edi*8 + 5]
or ecx, eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x7c]
shl ecx, 8
mov dword [esp + 0x30], 0
movzx eax, byte [eax + edi*8 + 4]
or ecx, eax
lea eax, [edx + edx]
xor eax, dword [esp + 0x38]
and eax, 0xaaaaaaaa
mov dword [esp + 0x40], ecx
xor eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x7c]
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 + 0x34]
shl edx, 8
or edx, eax
mov dword [esp + 0x44], edx
movzx eax, byte [ecx]
mov byte [esp + 0x3c], al
movzx eax, byte [ecx + 1]
push dword [esp + 0x3c]
mov byte [esp + 0x5c], al
movzx eax, byte [ecx + 2]
mov byte [esp + 0x60], al
movzx eax, byte [ecx + 3]
mov byte [esp + 0x64], al
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.104f9890
mov ebp, dword [esp + 0x70]
lea eax, [esp + 0x48]
push ebp
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
call fcn.104f9890
mov ebx, dword [esp + 0x8c]
lea eax, [esp + 0x60]
push ebx
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x84]
call fcn.104f9890
mov edi, dword [esp + 0xa8]
lea eax, [esp + 0x78]
add esp, 0x48
push edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x58]
call fcn.104f9890
push dword [esp + 0x54]
lea eax, [esp + 0x48]
mov dword [esp + 0x40], 0
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], 0
push eax
push dword [esp + 0x90]
call fcn.104f99c0
push ebp
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0xac]
call fcn.104f99c0
add esp, 0x48
lea eax, [esp + 0x2c]
push ebx
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x54]
call fcn.104f99c0
push edi
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x70]
call fcn.104f99c0
mov ebp, dword [esp + 0x78]
add esp, 0x30
mov edx, dword [esp + 0x6c]
mov eax, ebp
mov edi, dword [esp + 0x50]
and eax, 3
mov cl, byte [edx + eax*4 + 2]
movzx ebx, byte [edx + eax*4 + 1]
mov byte [esp + 0x13], cl
mov cl, byte [edx + eax*4 + 3]
movzx edx, byte [edx + eax*4]
mov byte [esp + 0x12], cl
mov eax, edx
imul eax, dword [esp + 0x18]
mov ecx, ebx
imul ecx, dword [esp + 0x14]
add ecx, eax
mov eax, edx
imul eax, dword [esp + 0x20]
shr ecx, 7
mov byte [edi - 2], cl
mov ecx, ebx
imul ecx, dword [esp + 0x1c]
add ecx, eax
shr ecx, 7
mov byte [edi - 1], cl
imul ebx, dword [esp + 0x24]
movzx ecx, byte [esp + 0x12]
imul ecx, dword [esp + 0x2c]
movzx eax, byte [esp + 0x13]
imul edx, dword [esp + 0x28]
imul eax, dword [esp + 0x30]
add dword [esp + 0x34], 4
shr ebp, 2
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0x4c]
add ebx, edx
add ecx, eax
shr ebx, 7
shr ecx, 7
inc ebp
mov byte [edi], bl
mov ebx, dword [esp + 0x70]
mov byte [edi + 1], cl
add edi, 4
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edi
cmp ebp, 4
jl 0x104f94d0
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x8c]
inc ecx
mov dword [esp + 0x54], ecx
cmp ecx, 4
jl 0x104f9440
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret