Function at 0x5b9b50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xa24
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
mov dword [ebp + 0x1c5c], ebx
mov dword [ebp + 0x9e0], ebx
mov dword [ebp + 0x918], ebx
mov dword [ebp + 0x91c], ebx
mov dword [ebp + 0x920], ebx
call fcn.00421c50
push ebx
mov ecx, ebp
call fcn.00421c70
mov ecx, ebp
call fcn.00421770
test eax, eax
je 0x5b9ba7
mov ecx, ebp
call fcn.00421740
test eax, eax
je 0x5b9ba7
mov ecx, ebp
call fcn.00421d20
mov ecx, ebp
call fcn.00421770
test eax, eax
je 0x5b9bc2
mov ecx, ebp
call fcn.00421d10
push 1
mov ecx, ebp
call fcn.00421b20
mov eax, dword [0x663330]
mov ecx, dword [eax + 0x1614]
call fcn.00423b90
lea ecx, [ebp + 0x109a]
mov edx, 0x75ec10
xor eax, eax
mov byte [ecx], 0
mov dword [edx], ebx
mov byte [eax + 0x75ec01], 0
mov byte [eax + 0x75ebf5], 0
mov byte [eax + 0x75ebe9], 0
inc ecx
add edx, 4
inc eax
lea esi, [eax + 1]
cmp esi, 9
jl 0x5b9bdf
mov ecx, ebp
mov dword [0x6633c0], ebx
mov dword [0x6633c4], ebx
mov dword [0x75ed34], ebx
mov dword [0x75ed38], ebx
mov dword [0x75ed3c], ebx
mov byte [0x75ed49], 0
mov dword [0x75ed60], ebx
call fcn.005b56b0
test eax, eax
je 0x5b9c5a
mov ecx, ebp
call fcn.005b56d0
cmp al, 8
jne 0x5b9c5a
push 0x3fc00000
mov ecx, ebp
call fcn.00421cc0
mov ecx, ebp
call fcn.00421cd0
mov ecx, 0xec
xor eax, eax
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, 0x148
lea edi, [esp + 0x514]
rep stosd dword es:[edi], eax
mov ecx, ebp
call fcn.005bc160
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x309]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00421740
test eax, eax
je 0x5b9cba
mov byte [esp + 0x308], 1
jmp 0x5b9d45
mov ecx, ebp
call fcn.00421720
test eax, eax
je 0x5b9d0a
mov ecx, ebp
call fcn.00421760
test eax, eax
jne 0x5b9cdd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa24
ret 4
mov ecx, ebp
call fcn.00421760
push eax
lea ecx, [esp + 0x414]
push str._s.scn
push ecx
call fcn.005faef4
lea edx, [esp + 0x41c]
add esp, 0xc
mov dword [esp + 0x2f8], edx
jmp 0x5b9d45
lea eax, [esp + 0x514]
mov ecx, ebp
mov dword [esp + 0x2fc], eax
call fcn.005bc150
mov ecx, ebp
mov word [esp + 0x300], ax
call fcn.00421790
mov ecx, ebp
mov word [esp + 0x302], ax
call fcn.004217a0
mov word [esp + 0x304], ax
mov word [esp + 0x2f4], bx
xor eax, eax
lea esi, [esp + 0x2bc]
lea edx, [esp + 0x2d0]
lea ecx, [esp + 0x60]
mov byte [esp + eax + 0x2a9], 0xff
mov byte [ecx], 0
mov dword [edx], eax
mov byte [esp + eax + 0x2b2], 1
mov word [esi], 0xffff
inc eax
add ecx, 0x41
add edx, 4
add esi, 2
cmp eax, 9
jl 0x5b9d61
mov ecx, ebp
call fcn.00421740
test eax, eax
je 0x5b9db6
push 1
push ebx
mov ecx, ebp
call fcn.0041cb40
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x5b9dd0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa24
ret 4
mov ecx, ebp
call fcn.00421720
test eax, eax
je 0x5b9dcc
mov ecx, dword [esp + 0x2f8]
push ebx
push ecx
jmp 0x5b9d98
mov dword [esp + 0x20], ebx
xor esi, esi
mov ecx, 9
or eax, 0xffffffff
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
push ebx
push esi
mov ecx, ebp
call fcn.00422200
inc esi
cmp esi, 9
jl 0x5b9de0
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call fcn.00421730
test eax, eax
je 0x5b9e13
mov ecx, ebp
call fcn.00421740
test eax, eax
jne 0x5b9e13
mov dword [esp + 0x10], 8
jmp 0x5b9e1e
mov ecx, ebp
call fcn.004219d0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ebx, 1
cmp eax, ebx
jl 0x5b9f07
mov ecx, dword [ebp + 0x1b4]
push ebx
call fcn.0042d630
cmp eax, 2
jne 0x5b9e6b
lea edx, [ebx - 1]
mov ecx, ebp
push edx
call fcn.005bc2a0
dec eax
mov ecx, dword [esp + eax*4 + 0x3c]
lea eax, [esp + eax*4 + 0x3c]
cmp ecx, 0xffffffff
jne 0x5b9e64
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
inc ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [eax]
jmp 0x5b9ef0
mov ecx, dword [ebp + 0x1b4]
push ebx
call fcn.0042d630
cmp eax, 4
jne 0x5b9efa
lea ecx, [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
cmp dword [edx], 0xffffffff
jne 0x5b9ebd
mov esi, 1
mov ecx, dword [ebp + 0x1b4]
push esi
call fcn.0042d630
cmp eax, 2
jne 0x5b9eb5
lea eax, [esi - 1]
mov ecx, ebp
push eax
call fcn.005bc2a0
dec eax
cmp eax, edi
je 0x5b9ebd
inc esi
cmp esi, 9
jge 0x5b9ed0
jmp 0x5b9e94
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 4
cmp edi, 8
mov dword [esp + 0x18], ecx
jge 0x5b9efa
jmp 0x5b9e86
lea ecx, [edi + 1]
lea edx, [ebx - 1]
push ecx
push edx
mov ecx, ebp
call fcn.005bc2b0
mov eax, dword [esp + 0x1c]
lea edi, [esp + edi*4 + 0x3c]
mov dword [edi], eax
inc eax
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
inc eax
mov ecx, ebp
push eax
push ebx
call fcn.00422200
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jle 0x5b9e2f
mov ecx, dword [0x6633d4]
call fcn.00421780
test eax, eax
je 0x5b9f23
mov ecx, dword [0x663330]
call fcn.0042d4f0
jmp 0x5b9f29
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
call fcn.005faa73
add esp, 4
mov ecx, ebp
call fcn.005bd720
mov byte [esp + 0x17], 0
xor esi, esi
mov ecx, dword [ebp + 0x1b4]
lea edi, [esi + 1]
push edi
call fcn.0042d630
cmp eax, 2
je 0x5b9f59
cmp eax, 4
jne 0x5b9f68
cmp byte [esp + esi + 0x2b2], 0x1e
je 0x5b9f68
mov byte [esp + 0x17], 1
mov esi, edi
cmp esi, 8
jl 0x5b9f40
lea ecx, [esp + 0x2bc]
lea edx, [esp + 0x2d4]
lea eax, [esp + 0x60]
xor ebx, ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], eax
lea edi, [ebx + 1]
mov esi, 1
mov dword [esp + 0x38], edi
push esi
mov ecx, ebp
call fcn.004221f0
cmp eax, edi
je 0x5b9fb2
inc esi
cmp esi, 9
jl 0x5b9f9b
jmp 0x5ba2cd
test esi, esi
mov dword [esp + 0x1c], esi
je 0x5ba2cd
mov ecx, dword [ebp + 0x1b4]
push esi
call fcn.0042d630
lea edi, [esi - 1]
mov ecx, ebp
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edi
call fcn.005bc2a0
mov esi, eax
mov eax, dword [esp + 0x34]
dec esi
cmp eax, 4
mov dword [esp + 0x2c], esi
je 0x5ba010
mov eax, dword [0x663378]
cmp eax, 1
je 0x5ba010
cmp eax, 2
jne 0x5ba000
test ebx, ebx
jg 0x5ba010
lea eax, [esp + ebx + 0x2a9]
mov dword [esp + 0x18], eax
mov byte [eax], 0
jmp 0x5ba01e
lea eax, [esp + ebx + 0x2a9]
mov dword [esp + 0x18], eax
mov byte [eax], 4
mov ecx, ebp
call fcn.00421740
test eax, eax
je 0x5ba035
mov ecx, dword [esp + 0x20]
push esi
call fcn.004cf2b0
jmp 0x5ba03d
push edi
mov ecx, ebp
call fcn.005bc240
cmp al, 0x1e
mov byte [esp + ebx + 0x2b2], al
jne 0x5ba0b8
call fcn.005faa7d
cdq
mov ecx, 0xd
idiv ecx
inc dl
cmp dl, cl
mov byte [esp + ebx + 0x2b2], dl
jle 0x5ba06a
mov byte [esp + ebx + 0x2b2], 1
mov byte [esp + 0x16], 0
xor esi, esi
mov al, byte [esp + 0x17]
test al, al
je 0x5ba08f
push ebx
mov ecx, ebp
call fcn.004219e0
push esi
mov ecx, ebp
mov edi, eax
call fcn.004219e0
cmp edi, eax
jne 0x5ba0a6
mov dl, byte [esp + ebx + 0x2b2]
mov al, byte [esp + esi + 0x2b2]
cmp dl, al
jne 0x5ba0a6
mov byte [esp + 0x16], 1
inc esi
cmp esi, 8
jl 0x5ba071
mov al, byte [esp + 0x16]
test al, al
jne 0x5ba048
mov esi, dword [esp + 0x2c]
mov ecx, ebp
call fcn.00421780
test eax, eax
je 0x5ba0ef
cmp dword [esp + 0x34], 2
jne 0x5ba0ef
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1b4]
push 0x40
push eax
call fcn.0042dc20
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.005fac20
add esp, 0xc
jmp 0x5ba2b1
mov ecx, ebp
call fcn.00421740
test eax, eax
je 0x5ba13c
mov edx, dword [esp + 0x18]
cmp byte [edx], 0
jne 0x5ba13c
mov ecx, dword [ebp + 0x20]
call fcn.00465190
test eax, eax
je 0x5ba1c4
mov ecx, dword [ebp + 0x20]
call fcn.00465190
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x5ba1bf
mov ecx, ebp
call fcn.00421740
test eax, eax
jne 0x5ba171
mov ecx, ebp
call fcn.00421730
test eax, eax
je 0x5ba171
mov ecx, dword [esp + 0x18]
cmp byte [ecx], 0
jne 0x5ba171
mov ecx, dword [ebp + 0x20]
call fcn.00465190
test eax, eax
je 0x5ba1c4
mov ecx, dword [ebp + 0x20]
call fcn.00465190
jmp 0x5ba1a3
mov ecx, ebp
call fcn.00421740
test eax, eax
jne 0x5ba187
mov ecx, ebp
call fcn.00421720
test eax, eax
je 0x5ba1c4
mov ecx, dword [esp + 0x20]
push esi
call fcn.004cf270
test eax, eax
je 0x5ba1c4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004cf270
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
cmp byte [esi], 0
jne 0x5ba298
mov eax, dword [esp + 0x18]
lea ebx, [esp + ebx + 0x2b2]
cmp byte [eax], 0
jne 0x5ba22d
mov ecx, dword [ebp + 0x20]
call fcn.00465190
test eax, eax
jne 0x5ba202
mov edx, dword [ebp]
push 0x41
push esi
push 0x286d
mov ecx, ebp
call dword [edx + 0x28]
jmp 0x5ba298
mov ecx, dword [ebp + 0x20]
call fcn.00465190
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x5ba298
mov ecx, ebp
call fcn.00421740
test eax, eax
je 0x5ba256
movsx ecx, byte [ebx]
mov edi, dword [ebp]
push 0x41
push esi
push ecx
mov ecx, ebp
call fcn.005bd660
add eax, 0x1130
mov ecx, ebp
push eax
call dword [edi + 0x28]
jmp 0x5ba298
mov edi, dword [esp + 0x24]
mov ecx, ebp
push edi
call fcn.005bc310
cmp byte [eax], 0
je 0x5ba273
mov edx, edi
mov ecx, ebp
push edx
call fcn.005bc310
jmp 0x5ba20a
push edi
mov ecx, ebp
call fcn.005bc2e0
test eax, eax
je 0x5ba238
mov ebx, dword [ebp]
push 0x41
push esi
push edi
mov ecx, ebp
call fcn.005bc2e0
add eax, 0x1130
mov ecx, ebp
push eax
call dword [ebx + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1b4]
push edx
push eax
call fcn.0042e410
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov word [eax], si
inc word [esp + 0x2f4]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov ebx, edi
add esi, 0x41
add edx, 4
add ecx, 2
cmp ebx, 8
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], ecx
jl 0x5b9f8f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5ba30a
mov ecx, eax
push 1
mov edx, dword [ecx]
call dword [edx + 4]
cmp word [esp + 0x2f4], 0
je 0x5b9da7
mov eax, dword [ebp + 0x420]
xor esi, esi
cmp word [eax + 0x48], si
jle 0x5ba33e
push esi
mov ecx, ebp
call fcn.00422220
mov ecx, dword [ebp + 0x420]
inc esi
movsx edx, word [ecx + 0x48]
cmp esi, edx
jl 0x5ba327
mov eax, dword [ebp + 0x84]
test eax, eax
je 0x5ba34c
mov byte [eax + 5], 1
mov ecx, ebp
call fcn.00421780
test eax, eax
je 0x5ba365
mov ecx, dword [ebp + 0x1b4]
call fcn.0042d520
push eax
jmp 0x5ba367
push 1
mov ecx, ebp
call fcn.004221f0
mov ecx, dword [ebp + 0x420]
push eax
lea eax, [esp + 0x64]
mov edx, dword [ecx]
push eax
call dword [edx + 0xe8]
and eax, 0xff
mov ebx, eax
je 0x5ba3a2
mov ecx, dword [ebp + 0x420]
cmp word [ecx + 0x48], 2
jge 0x5ba3a2
mov edx, dword [ecx]
xor ebx, ebx
call dword [edx + 0xcc]
mov eax, dword [ebp + 0x84]
test eax, eax
je 0x5ba3b0
mov byte [eax + 5], 0
test ebx, ebx
je 0x5b9da7
mov ecx, dword [ebp + 0x420]
call fcn.005ec090
push 0
mov ecx, ebp
call fcn.00421c50
mov ecx, ebp
call fcn.004217f0
push eax
mov ecx, ebp
call fcn.00421c70
mov ecx, ebp
call fcn.005bc000
test eax, eax
je 0x5ba459
mov ecx, ebp
call fcn.005bc000
cmp eax, 3
je 0x5ba438
mov eax, dword [ebp + 0x420]
mov esi, 1
cmp word [eax + 0x48], si
jle 0x5ba438
mov eax, dword [eax + 0x4c]
mov ecx, dword [eax + esi*4]
call fcn.004ab260
test eax, eax
jne 0x5ba429
mov ecx, dword [ebp + 0x420]
mov edx, dword [ecx + 0x4c]
mov eax, dword [edx + esi*4]
mov ecx, dword [eax + 0x88]
call fcn.005deff0
mov eax, dword [ebp + 0x420]
inc esi
movsx ecx, word [eax + 0x48]
cmp esi, ecx
jl 0x5ba403
mov ecx, ebp
call fcn.005bc000
cmp eax, 2
je 0x5ba450
mov ecx, ebp
call fcn.005bc000
cmp eax, 3
jne 0x5ba459
push 0
mov ecx, ebp
call fcn.00421c70
mov ecx, ebp
call fcn.00421780
test eax, eax
mov ecx, ebp
je 0x5ba46d
call fcn.00421a10
jmp 0x5ba472
call fcn.00421a00
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x24]
and eax, 0xff
dec eax
je 0x5ba49d
dec eax
je 0x5ba491
mov dword [0x64c4c4], 0x9c4
jmp 0x5ba4a7
mov dword [0x64c4c4], 0x1d4c
jmp 0x5ba4a7
mov dword [0x64c4c4], 0x1388
mov esi, 1
lea edi, [ebp + 0x1ac4]
mov ecx, dword [ebp + 0x1b4]
push esi
call fcn.0042d630
mov dword [edi], eax
inc esi
add edi, 4
cmp esi, 9
jl 0x5ba4b2
mov ecx, ebp
call fcn.005ba4f0
neg eax
sbb eax, eax
pop edi
pop esi
and eax, ebx
pop ebp
pop ebx
add esp, 0xa24
ret 4