Function at 0x105009c0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x5c]
imul ecx, dword [esp + 0x60]
push ebx
push ebp
mov ebp, dword [esp + 0x60]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x64]
mov ebx, edi
imul ebx, ebp
mov dword [esp + 0x14], ecx
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x10500a04
push ecx
lea eax, [esi + 0x798]
push 0
push eax
call fcn.10513d40
add esp, 0xc
test ebx, ebx
je 0x10500a14
push ebx
push 0
push esi
call fcn.10513d40
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x44], ebx
test ebp, ebp
je 0x10500d37
lea ecx, [edi*4]
xor eax, eax
mov dword [esp + 0x5c], ecx
lea edx, [edi*4]
mov ecx, 0x438
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
test edi, edi
je 0x10500d1e
mov eax, ebp
lea ecx, [ebp - 1]
shr eax, 1
xor edx, edx
add eax, 0x400
div ecx
mov ecx, dword [esp + 0x70]
xor edx, edx
mov ebp, eax
dec ecx
imul ebp, ecx
lea ecx, [edi - 1]
imul ebp, ebx
mov ebx, dword [esp + 0x20]
add ebp, 0x20
shr ebp, 6
mov eax, ebp
shr ebp, 4
and eax, 0xf
imul ebp, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, edi
shr eax, 1
add eax, 0x400
mov edi, dword [esp + 0x24]
div ecx
mov ecx, dword [esp + 0x6c]
dec ecx
mov dword [esp + 0x58], ebp
imul eax, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], eax
mov eax, 0x20
mov dword [esp + 0x3c], eax
nop dword [eax + eax]
shr eax, 6
mov ecx, eax
mov byte [esp + 0x13], bl
shr eax, 4
and ecx, 0xf
add eax, ebp
mov ebp, ecx
mov dword [esp + 0x48], eax
lea edx, [eax + 1]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
inc eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x1c]
imul eax, ecx
mov dword [esp + 0x28], edx
add eax, 8
shr eax, 4
sub ebp, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x1c]
sub ebp, eax
sub eax, dword [esp + 0x1c]
sub eax, ecx
mov dword [esp + 0x34], ebp
lea ebp, [edi - 0x360]
lea ecx, [eax + 0x10]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x10500b8d
movzx eax, byte [esi + ebx]
mov edx, dword [esp + 0x48]
add eax, ebp
mov byte [eax + esi], dl
movzx eax, byte [esi + ebx]
add eax, edi
mov byte [eax + esi], cl
inc byte [esi + ebx]
movzx eax, byte [esi + edx + 0x798]
imul ecx, edx, 0xd8
add eax, ecx
mov byte [eax + esi + 0x7d8], bl
movzx eax, byte [esi + edx + 0x798]
add eax, ecx
mov ecx, dword [esp + 0x4c]
mov byte [eax + esi + 0x3dd8], cl
inc byte [esi + edx + 0x798]
mov cl, byte [esi + edx + 0x798]
cmp byte [esp + 0x12], cl
movzx eax, byte [esp + 0x12]
movzx edx, cl
cmova edx, eax
mov byte [esp + 0x12], dl
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10500bff
movzx eax, byte [ebx + esi]
add eax, ebp
mov byte [eax + esi], dl
movzx eax, byte [ebx + esi]
add eax, edi
mov byte [eax + esi], cl
inc byte [ebx + esi]
movzx eax, byte [esi + edx + 0x798]
imul ecx, edx, 0xd8
mov dl, byte [esp + 0x13]
add eax, ecx
mov byte [eax + esi + 0x7d8], dl
mov edx, dword [esp + 0x28]
movzx eax, byte [esi + edx + 0x798]
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov byte [eax + esi + 0x3dd8], cl
inc byte [esi + edx + 0x798]
mov cl, byte [esi + edx + 0x798]
cmp byte [esp + 0x12], cl
movzx eax, byte [esp + 0x12]
movzx edx, cl
cmova edx, eax
mov byte [esp + 0x12], dl
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10500c75
movzx eax, byte [ebx + esi]
mov edx, dword [esp + 0x30]
add eax, ebp
mov byte [eax + esi], dl
movzx eax, byte [ebx + esi]
add eax, edi
mov byte [eax + esi], cl
inc byte [ebx + esi]
movzx eax, byte [edx + esi + 0x798]
imul ecx, edx, 0xd8
mov dl, byte [esp + 0x13]
add eax, ecx
mov byte [eax + esi + 0x7d8], dl
mov edx, dword [esp + 0x30]
movzx eax, byte [edx + esi + 0x798]
add eax, ecx
mov ecx, dword [esp + 0x34]
mov byte [eax + esi + 0x3dd8], cl
inc byte [edx + esi + 0x798]
mov cl, byte [edx + esi + 0x798]
cmp byte [esp + 0x12], cl
movzx eax, byte [esp + 0x12]
movzx edx, cl
cmova edx, eax
mov byte [esp + 0x12], dl
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x10500ce7
movzx eax, byte [ebx + esi]
mov edx, dword [esp + 0x50]
add eax, edi
mov byte [eax + esi - 0x360], dl
movzx eax, byte [ebx + esi]
add eax, edi
mov byte [eax + esi], cl
inc byte [ebx + esi]
movzx eax, byte [edx + esi + 0x798]
imul ecx, edx, 0xd8
add eax, ecx
mov byte [eax + esi + 0x7d8], bl
movzx eax, byte [edx + esi + 0x798]
add eax, ecx
mov ecx, dword [esp + 0x38]
mov byte [eax + esi + 0x3dd8], cl
inc byte [edx + esi + 0x798]
mov cl, byte [edx + esi + 0x798]
cmp byte [esp + 0x12], cl
movzx eax, byte [esp + 0x12]
movzx edx, cl
cmova edx, eax
mov byte [esp + 0x12], dl
mov eax, dword [esp + 0x3c]
inc ebx
add eax, dword [esp + 0x54]
add edi, 4
sub dword [esp + 0x40], 1
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
jne 0x10500ac0
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
inc ebx
add eax, edi
add ecx, edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
cmp ebx, ebp
jb 0x10500a43
xor ebp, ebp
xor dh, dh
xorps xmm1, xmm1
cmp dword [esp + 0x18], ebp
jbe 0x10500e62
mov ebx, dword [esp + 0x74]
movss xmm2, dword [0x107208c8]
lea eax, [ebx + 0x7a0]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x438]
mov dword [esp + 0x24], eax
nop dword [eax + eax]
mov dl, byte [esi + ebp]
lea edi, [ebx + 0xde]
add edi, ebp
movzx eax, dh
cmp dh, dl
movzx ecx, dl
cmova ecx, eax
xor ebx, ebx
mov byte [edi - 0xd8], dl
mov al, byte [esi + ebp]
mov byte [esp + 0x64], cl
test al, al
je 0x10500dea
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + 0x360], al
lea edi, [edi + 0xd8]
movzx eax, byte [ecx - 1]
inc ebx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss dword [edx], xmm0
add edx, 0x360
mov al, byte [ecx - 0x361]
mov byte [edi - 0xd8], al
mov al, byte [esi + ebp]
mov byte [esp + 0x68], al
movzx eax, al
cmp ebx, eax
jb 0x10500da1
mov al, byte [esp + 0x68]
mov ebx, dword [esp + 0x74]
movzx edi, al
cmp edi, 4
jae 0x10500e49
imul eax, edi, 0xd8
lea ecx, [ebx + 0xde]
mov edx, 4
add eax, ebp
add ecx, eax
add eax, 0x1e8
sub edx, edi
lea eax, [ebx + eax*4]
nop word [eax + eax]
mov byte [ecx + 0x360], 0
lea eax, [eax + 0x360]
mov dword [eax - 0x360], 0
lea ecx, [ecx + 0xd8]
mov byte [ecx - 0xd8], 0
sub edx, 1
jne 0x10500e20
add dword [esp + 0x24], 4
inc ebp
add dword [esp + 0x20], 4
mov dh, byte [esp + 0x64]
cmp ebp, dword [esp + 0x18]
jb 0x10500d70
mov edi, dword [esp + 0x74]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov byte [edi + 1], dh
cmp dword [esp + 0x14], ebx
jbe 0x10500fd7
movzx eax, byte [esp + 0x12]
lea ecx, [edi + 0x12360]
mov dword [esp + 0x5c], eax
lea eax, [esi + 0x3dd8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x68], eax
nop word [eax + eax]
mov al, byte [esi + ebx + 0x798]
lea edx, [ebx + 0x1560]
add edx, edi
movzx ebp, al
mov dword [esp + 0x40], ebp
mov dword [esp + 0x64], edx
mov byte [edx - 0x40], al
test al, al
je 0x10500f66
mov eax, dword [esp + 0x40]
mov ebp, ecx
mov esi, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov cl, byte [esi - 0x3600]
mov byte [edx], cl
xor edx, edx
movzx eax, byte [esi]
mov dword [ebp], 0
movd xmm0, eax
movzx eax, cl
lea ecx, [edi + 0xde]
cvtdq2ps xmm0, xmm0
add ecx, eax
lea edi, [edi + eax*4]
add edi, 0x7a0
movss dword [ebp - 0xd800], xmm0
nop word [eax + eax]
movzx eax, byte [ecx]
cmp eax, ebx
jne 0x10500f24
movss xmm0, dword [edi]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10500f38
inc edx
add edi, 0x360
add ecx, 0xd8
cmp edx, 4
jb 0x10500f10
jmp 0x10500f3d
movss dword [ebp], xmm0
mov edx, dword [esp + 0x64]
inc esi
mov edi, dword [esp + 0x74]
add edx, 0x40
add ebp, 0x100
mov dword [esp + 0x64], edx
sub dword [esp + 0x44], 1
jne 0x10500ed3
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x5c]
mov ecx, ebp
shl ecx, 6
add ecx, ebx
mov al, byte [ecx + edi + 0x1520]
mov byte [esp + 0x64], al
cmp ebp, edx
jae 0x10500fb5
mov bl, byte [esp + 0x64]
lea eax, [edi + 0x1560]
add eax, ecx
add ecx, 0x12d8
sub edx, ebp
lea ecx, [edi + ecx*4]
mov byte [eax], bl
lea ecx, [ecx + 0x100]
mov dword [ecx - 0x100], 0
lea eax, [eax + 0x40]
sub edx, 1
jne 0x10500f97
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
inc ebx
add dword [esp + 0x68], 0xd8
add ecx, 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ecx
cmp ebx, dword [esp + 0x14]
jb 0x10500ea0
mov ebx, dword [esp + 0x18]
lea edx, [ebx + 3]
and edx, 0xfffffffc
cmp ebx, edx
jae 0x1050106c
lea eax, [ebx + 0xde]
lea ecx, [ebx + 0x2c0]
add eax, edi
lea ecx, [edi + ecx*4]
sub edx, ebx
nop dword [eax]
mov byte [eax - 0xd8], 0
lea ecx, [ecx + 4]
mov dword [ecx - 0x364], 0
lea eax, [eax + 1]
mov byte [eax - 1], 0
mov byte [eax + 0x35f], 0
mov dword [ecx - 4], 0
mov byte [eax + 0xd7], 0
mov byte [eax + 0x437], 0
mov dword [ecx + 0x35c], 0
mov byte [eax + 0x1af], 0
mov byte [eax + 0x50f], 0
mov dword [ecx + 0x6bc], 0
mov byte [eax + 0x287], 0
mov byte [eax + 0x5e7], 0
sub edx, 1
jne 0x10501000
mov ecx, dword [esp + 0x14]
movzx eax, byte [ecx + esi + 0x797]
lea ebp, [ecx + 3]
shl eax, 6
and ebp, 0xfffffffc
add eax, ecx
mov bl, byte [eax + edi + 0x151f]
cmp ecx, ebp
jae 0x105010ef
movzx edx, byte [esp + 0x12]
lea eax, [ecx + 0x12d8]
lea esi, [ecx + 0x1560]
mov dword [esp + 0x68], edx
lea eax, [edi + eax*4]
add esi, edi
mov dword [esp + 0x64], eax
sub ebp, ecx
mov edi, eax
mov byte [esi - 0x40], 0
test edx, edx
je 0x105010de
mov eax, esi
mov ecx, edi
nop dword [eax]
mov byte [eax], bl
lea ecx, [ecx + 0x100]
mov dword [ecx - 0x100], 0
lea eax, [eax + 0x40]
sub edx, 1
jne 0x105010c0
mov edx, dword [esp + 0x68]
add edi, 4
inc esi
sub ebp, 1
jne 0x105010b0
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov byte [edi], al
mov eax, dword [esp + 0x6c]
mov byte [edi + 3], al
mov eax, dword [esp + 0x70]
mov byte [edi + 2], cl
mov byte [edi + 4], al
mov byte [edi + 5], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret