Function at 0x436489
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
push ebx
push esi
push edi
mov dword [ebp - 0x74], ecx
mov ecx, 0x403020
push 0x66
mov dword [ebp - 0x78], edx
mov eax, ecx
mov dword [ebp - 0x48], 0xaf1718c3
mov edx, 0x6ee
mov dword [ebp - 0x44], 0x41e4ba71
mov dword [ebp - 0x40], 0x2e712ebe
mov dword [ebp - 0x3c], 0xa2809de8
mov dword [ebp - 0x38], 0xd7da28ac
mov dword [ebp - 0x34], 0xeecd8f86
mov dword [ebp - 0x30], 0xae4e8a11
mov dword [ebp - 0x2c], 0xb49a0b1b
mov dword [ebp - 0x28], 0x8e982704
mov dword [ebp - 0x24], 0xafae8f2f
mov dword [ebp - 0x20], 0xc177fea8
mov dword [ebp - 0x70], ecx
pop esi
add edx, esi
inc eax
cmp edx, 0x1464
ja 0x436514
movsx esi, byte [eax]
test esi, esi
jne 0x4364fa
mov edx, dword [0x44d9c0]
jmp 0x436520
mov edx, dword [0x44d9dc]
add edx, 0x9ec85a6c
imul eax, dword [0x44d9e0], 0xd958dada
mov dword [0x44d9e0], eax
sub edx, 0x71229b64
mov dword [0x44d9c0], edx
mov edx, 0x402ee0
call fcn.00435e25
push 7
pop ecx
mov esi, 0x402ea4
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, eax
movsb byte es:[edi], byte [esi]
mov edi, eax
mov byte [ebp + ecx - 0x180], cl
inc ecx
cmp ecx, 0x100
jb 0x436559
mov esi, eax
xor edx, edx
mov bl, byte [ebp + esi - 0x180]
push 0x1c
mov eax, esi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x6c]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x180]
mov byte [ebp + esi - 0x180], al
inc esi
mov byte [ebp + edi - 0x180], bl
cmp esi, 0x100
jb 0x43656b
xor ebx, ebx
mov edi, 0x403020
mov esi, ebx
mov ecx, ebx
mov dword [ebp - 0xc], esi
lea eax, [ebx + 1]
mov edx, 0x168
movzx ebx, al
push 0x41
mov al, byte [ebp + ebx - 0x180]
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 8], eax
add eax, ecx
movzx eax, al
mov dword [ebp - 0x10], eax
mov eax, 0x402ee0
pop ecx
add edx, ecx
lea eax, [eax + 2]
cmp edx, 0x81b
ja 0x436602
movzx ecx, word [eax]
test ecx, ecx
jne 0x4365e1
mov eax, dword [0x44d9e0]
lea ecx, [eax + 0x2d33c9f1]
jmp 0x43663c
mov edx, 0x402ee0
mov ecx, edi
call fcn.00435e25
mov esi, dword [0x44d9dc]
mov edx, edi
push dword [0x44d9e0]
xor esi, 0xd998b1ff
mov dword [0x44d9c0], esi
call fcn.00435c94
pop ecx
mov eax, dword [0x44d9e0]
lea ecx, [esi + 0x72fc2460]
mov esi, dword [ebp - 0xc]
and eax, 0xb6c43e62
mov dword [0x44d9dc], ecx
mov dword [0x44d9e0], eax
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov edx, eax
mov eax, dword [ebp - 0x10]
or edx, 0x6a9dd7e2
mov dword [0x44d9c0], edx
mov cl, byte [ebp + eax - 0x180]
mov al, byte [ebp - 1]
mov byte [ebp + ebx - 0x180], cl
mov ecx, dword [ebp - 0x10]
mov byte [ebp + ecx - 0x180], al
movzx ecx, byte [ebp + ebx - 0x180]
add ecx, dword [ebp - 8]
movzx eax, cl
mov ecx, edi
mov al, byte [ebp + eax - 0x180]
mov byte [ebp - 1], al
mov al, 0x66
sub al, 0x30
cmp al, 9
ja 0x4366ae
inc ecx
mov al, byte [ecx]
test al, al
jne 0x43669a
mov eax, dword [0x44d9dc]
jmp 0x4366ca
sub edx, 0x142e80a5
mov dword [0x44d9c0], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, 0xd77ef81
mov dword [0x44d9dc], eax
add eax, 0x77296d9b
mov edx, 0x402ee0
mov ecx, edi
mov dword [0x44d9e0], eax
call fcn.00435e25
mov al, byte [ebp + esi - 0x48]
xor al, byte [ebp - 1]
mov ecx, dword [ebp - 0x10]
mov byte [ebp + esi - 0x1b0], al
inc esi
mov dword [ebp - 0xc], esi
cmp esi, 0x2c
jb 0x4365b6
mov esi, 0x402940
mov dword [ebp - 0x1c], 0x88278e4b
lea edi, [ebp - 0x58]
mov word [ebp - 0x18], 0xa7d7
xor ebx, ebx
mov byte [ebp - 0x184], bl
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x14], ebx
mov ebx, 0x403020
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x44d9c0]
mov esi, dword [0x44d9dc]
imul eax, edi, 0xc144c35
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
push 0x66
mov edx, 0x26c5
mov eax, ebx
pop ecx
add edx, ecx
inc eax
cmp edx, 0x2372
ja 0x436762
movsx ecx, byte [eax]
test ecx, ecx
jne 0x436748
imul eax, esi, 0xd50b839a
jmp 0x436769
mov eax, edi
or eax, 0x858ed0ef
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 8]
mov edx, ebx
push esi
call fcn.00435c94
mov eax, dword [ebp - 0x14]
pop ecx
mov byte [ebp + eax - 0x180], al
inc eax
mov dword [ebp - 0x14], eax
cmp eax, 0x100
jb 0x43673e
xor ebx, ebx
mov edi, ebx
mov dl, byte [ebp + edi - 0x180]
mov eax, edi
and eax, 7
movzx ecx, dl
movzx eax, byte [ebp + eax - 0x58]
add eax, ebx
add ecx, eax
movzx ebx, cl
mov al, byte [ebp + ebx - 0x180]
mov byte [ebp + edi - 0x180], al
inc edi
mov byte [ebp + ebx - 0x180], dl
cmp edi, 0x100
jb 0x436791
mov edi, dword [ebp - 0xc]
xor ebx, ebx
xor edi, 0xfc2c5731
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
xor esi, 0x2c86ef36
mov dword [0x44d9c0], edi
mov edi, ebx
mov dword [ebp - 8], ebx
lea eax, [edi + 1]
mov ecx, ebx
movzx edi, al
mov eax, 0x402ee0
inc ecx
lea eax, [eax + 2]
cmp ecx, 0x22ee
je 0x43680c
cmp word [eax], bx
jne 0x4367f9
jmp 0x43681a
push dword [ebp - 0x10]
mov edx, 0x403020
call fcn.00435c94
pop ecx
mov dword [ebp - 0x10], esi
call fcn.00435b4e
mov cl, byte [ebp + edi - 0x180]
mov eax, dword [ebp - 0x14]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [ebp - 0x14], eax
mov al, byte [ebp + eax - 0x180]
mov byte [ebp + edi - 0x180], al
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x180], cl
movzx eax, byte [ebp + edi - 0x180]
add eax, edx
mov edx, dword [ebp - 8]
movzx eax, al
mov al, byte [ebp + eax - 0x180]
xor al, byte [ebp + edx - 0x1c]
mov byte [ebp + edx - 0x80], al
inc edx
mov dword [ebp - 8], edx
cmp edx, 6
jb 0x4367ec
mov edi, dword [ebp - 0xc]
mov eax, ebx
or edi, 0x8ae2241
mov byte [ebp - 0x7a], bl
push 0x59
xor esi, 0x1dcd6e3c
mov dword [ebp - 0x5c], 0x3f
pop ecx
mov dword [0x44d9e0], esi
mov dword [ebp - 0x58], 0x1d
mov dword [ebp - 0x54], 0xfd34
add ecx, dword [ebp + eax*4 - 0x5c]
inc eax
cmp eax, 3
jl 0x4368ad
mov dword [ebp - 0xc], ecx
mov eax, ebx
mov ecx, ebx
mov dword [ebp - 0x64], 0x61
mov dword [ebp - 0x60], 0x13
mov dword [ebp - 0x5c], 0x55
mov dword [ebp - 0x58], 0x19
mov dword [ebp - 0x54], 0xffffff1e
sub ecx, dword [ebp + eax*4 - 0x64]
inc eax
cmp eax, 5
jl 0x4368e1
push 0xf
pop eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x2c
mov dword [ebp - 0x54], 0xffffffd3
sub eax, dword [ebp + ebx*4 - 0x5c]
inc ebx
cmp ebx, 3
jl 0x436902
mov ebx, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
test ebx, ebx
jne 0x436962
mov dword [ebp - 0x60], 0x54
lea eax, [esi - 0x6a22c070]
mov dword [ebp - 0x5c], 0x45
mov dword [ebp - 0x58], 0x2b
mov dword [ebp - 0x54], 0xfffffeef
movups xmm1, xmmword [ebp - 0x60]
mov dword [0x44d9dc], eax
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add eax, 0x4d
jmp 0x4369c1
push 0x66
pop ecx
sub cl, 0x30
cmp cl, 9
ja 0x43697e
mov eax, dword [ebp - 0x70]
inc eax
mov dword [ebp - 0x70], eax
mov al, byte [eax]
mov cl, al
test al, al
jne 0x436965
jmp 0x436984
lea edi, [esi + 0x69259f62]
imul eax, edi, 0xbc92021e
mov ecx, ebx
mov dword [0x44d9dc], eax
call fcn.004369c6
add eax, 2
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x78]
mov eax, dword [ebp - 0x4c]
neg eax
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0041e657
mov edx, eax
lea ecx, [ebp - 0x1b0]
call fcn.0041e636
call eax
pop edi
pop esi
pop ebx
leave
ret