Function at 0x1003b120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1004f014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0xc], 0
mov eax, dword [ebx + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebx + 8]
push edi
mov dword [ebp - 0x64], eax
mov eax, 1
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x88], edi
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x38], 0
jle 0x1003b7b3
movss xmm4, dword [0x1004cb50]
add ecx, 8
mov dword [ebp - 0x40], ecx
xorps xmm3, xmm3
nop dword [eax + eax]
movss xmm1, dword [ecx - 8]
comiss xmm1, xmm3
jbe 0x1003b1f9
mov eax, dword [edi + 0x1c]
mov edi, dword [edi + 4]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [ebp - 0xc]
movsx esi, dx
mov eax, dword [ecx + 0x1c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
mov esi, dword [ebp - 0x1c]
movd xmm0, eax
jmp 0x1003b219
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 4]
xorps xmm1, xmmword [0x1004d370]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov ecx, dword [ebp - 0x40]
movaps xmm2, xmm4
cvtdq2ps xmm0, xmm0
movzx edi, byte [ecx + 0xc]
mov eax, edi
mov dword [esi + 0x18], edi
movzx edx, byte [ecx + 0xd]
divss xmm1, xmm0
shr eax, 0x1f
mov dword [esi + 0x1c], edx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movss dword [ebp - 0x34], xmm1
addsd xmm0, qword [eax*8 + 0x1004d2d0]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
movd xmm0, edx
movss dword [ebp - 0x78], xmm2
movaps xmm2, xmm4
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x1004d2d0]
cvtpd2ps xmm0, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x80], xmm2
test edi, edi
jne 0x1003b28d
movss dword [ebp - 0x48], xmm3
jmp 0x1003b2af
mov eax, 1
movd xmm0, edi
sub eax, edi
cvtdq2ps xmm0, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x48], xmm2
test edx, edx
jne 0x1003b2ba
movss dword [ebp - 0x4c], xmm3
jmp 0x1003b2dc
mov eax, 1
movd xmm0, edx
sub eax, edx
cvtdq2ps xmm0, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [ebp - 0x4c], xmm2
xor edx, edx
mov dword [ebp - 0x3c], edx
cmp dword [ecx + 4], edx
jle 0x1003b797
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x64]
shl eax, 4
add edi, 8
add edi, eax
mov dword [ebp - 0x24], edx
mov eax, edx
nop dword [eax]
cmp dword [edi + 4], 0
je 0x1003b76c
mov eax, dword [ecx + 8]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx]
test eax, eax
jne 0x1003b321
mov edx, dword [ecx - 4]
add edx, dword [ebp - 0x3c]
jmp 0x1003b324
mov edx, dword [eax + edx*4]
mov ecx, dword [ebp - 0xc]
call fcn.10035a80
mov dword [ebp - 0x10], eax
movzx eax, word [esi + 0x14]
add word [edi], ax
add word [edi + 2], ax
sub word [edi - 4], ax
sub word [edi - 2], ax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x1c]
movzx edx, byte [eax + ecx + 0x23]
movzx eax, byte [eax + ecx + 0x22]
shl eax, 8
add edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
cmp dword [ebp - 0x10], edx
jge 0x1003b382
mov edx, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, 0x100
add edx, ecx
cwde
movzx ecx, byte [edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x1003b3a4
mov esi, dword [ebp - 0xc]
lea edx, [eax + edx*4]
movzx ecx, byte [edx + ecx - 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [esi + 4]
mov esi, dword [ebp - 0x1c]
movzx eax, byte [edx + eax - 3]
add cx, ax
mov edx, dword [ebp - 0x10]
movzx eax, cx
cwde
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov eax, dword [esi + 0x1c]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0
addsd xmm0, qword [eax*8 + 0x1004d2d0]
mov eax, dword [esi + 0x18]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x1004d2d0]
cvtpd2ps xmm2, xmm0
mulss xmm2, xmm1
call fcn.10038080
mov eax, dword [esi + 0x10]
movzx ecx, word [edi + 2]
imul ecx, eax
mov dword [ebp - 0x54], eax
movzx eax, word [edi]
movzx edx, word [edi - 2]
add ecx, eax
mov eax, dword [esi + 0x18]
add ecx, dword [esi + 0x20]
mov dword [ebp - 0x58], ecx
movzx ecx, word [edi - 4]
movd xmm0, eax
sub ecx, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
inc ecx
mov dword [ebp - 0x5c], ecx
mov ecx, dword [esi + 0x1c]
sub edx, ecx
inc edx
mov dword [ebp - 0x60], edx
mov edx, dword [ebp - 0x10]
addsd xmm0, qword [eax*8 + 0x1004d2d0]
lea eax, [ebp - 8]
push eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x34]
movss dword [ebp - 0x30], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x1004d2d0]
mov ecx, dword [ebp - 0xc]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x34]
movss dword [ebp - 0x2c], xmm0
call fcn.10037f70
add esp, 0x1c
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
call fcn.10035ea0
add esp, 0x10
test eax, eax
jne 0x1003b4df
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x44], eax
jmp 0x1003b559
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, dword [ebp - 0x20]
sub esp, 8
mulss xmm0, dword [ebp - 0x30]
addss xmm0, xmm1
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [ebp - 0x68]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [ebp - 0x2c]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [ebp - 0x44], eax
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_floor
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
test ecx, ecx
je 0x1003b63f
test eax, eax
je 0x1003b63f
movss xmm0, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
minss xmm0, dword [ebp - 0x30]
movss xmm2, dword [0x1004cb14]
mov edx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 8]
divss xmm2, xmm0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0
call fcn.1003a520
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1003b63f
movss xmm0, dword [ebp - 0x2c]
lea ecx, [ebp - 0x98]
sub esp, 8
mov edx, eax
push dword [ebp - 0x20]
push dword [ebp - 0x44]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
movss xmm0, dword [ebp - 0x30]
movss dword [esp], xmm0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10039c20
mov eax, dword [ebp - 0x10]
add esp, 0x28
test eax, eax
je 0x1003b623
dec dword [0x1004f6c0]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
dec dword [0x1004f6c0]
add esp, 4
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x1003b64c
dec dword [0x1004f6c0]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esi + 0x18]
add esp, 4
cmp eax, 1
jbe 0x1003b686
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
mov esi, dword [ebp - 0x1c]
push eax
movzx eax, word [edi]
add ecx, eax
add ecx, dword [esi + 0x20]
call fcn.1003a990
add esp, 0xc
mov eax, dword [esi + 0x1c]
cmp eax, 1
jbe 0x1003b6b6
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
push eax
movzx eax, word [edi]
add ecx, eax
mov eax, dword [ebp - 0x1c]
add ecx, dword [eax + 0x20]
call fcn.1003abe0
add esp, 0xc
mov esi, dword [ebp - 0x6c]
movzx eax, word [edi]
movd xmm0, dword [ebp - 0x70]
movss xmm1, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x74]
cvtdq2ps xmm0, xmm0
mov word [esi], ax
movzx eax, word [edi + 2]
mov word [esi + 2], ax
movzx eax, word [edi - 4]
add ax, word [edi]
mulss xmm0, xmm1
mov edx, dword [ebp - 0x7c]
mov word [esi + 4], ax
movzx eax, word [edi + 2]
add ax, word [edi - 2]
movss dword [esi + 0x10], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov word [esi + 6], ax
mulss xmm0, dword [ebp - 0x78]
addss xmm0, dword [ebp - 0x48]
movss dword [esi + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x80]
addss xmm0, dword [ebp - 0x4c]
movss dword [esi + 0xc], xmm0
movzx eax, word [edi - 4]
add eax, ecx
mov ecx, dword [ebp - 0x40]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x78]
addss xmm0, dword [ebp - 0x48]
movss dword [esi + 0x14], xmm0
movzx eax, word [edi - 2]
add eax, edx
mov edx, dword [ebp - 0x3c]
movd xmm0, eax
mov eax, dword [ebp - 0x24]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x80]
addss xmm0, dword [ebp - 0x4c]
movss dword [esi + 0x18], xmm0
mov esi, dword [ebp - 0x1c]
jmp 0x1003b773
mov dword [ebp - 0x50], 0
inc dword [ebp - 0x38]
inc edx
add eax, 0x1c
mov dword [ebp - 0x3c], edx
add edi, 0x10
mov dword [ebp - 0x24], eax
cmp edx, dword [ecx + 4]
jl 0x1003b300
movss xmm4, dword [0x1004cb50]
xorps xmm3, xmm3
mov edi, dword [ebp - 0xc]
add ecx, 0x18
sub dword [ebx + 0xc], 1
mov dword [ebp - 0x40], ecx
jne 0x1003b1a0
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x18], edx
xor ecx, ebp
pop esi
call fcn.10044190
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret