Function at 0x10004520
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [str.qwrtpsdfghjklzxcvbnm]
mov edx, dword [0x10046380]
mov ecx, dword [0x1004637c]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x10046384]
mov dword [ebp - 0x24], edx
movzx edx, byte [0x1004638c]
mov dword [ebp - 0x20], eax
mov eax, dword [str.eyuioa]
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x10046388]
mov byte [ebp - 0x18], dl
movzx edx, byte [0x10046396]
push 0x103
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
mov cx, word [0x10046394]
lea eax, [ebp - 0x337]
push 0
push eax
mov word [ebp - 0xc], cx
mov byte [ebp - 0xa], dl
mov byte [ebp - 0x338], 0
call sub.MSVCRT.dll_memset
push 0x103
lea ecx, [ebp - 0x233]
push 0
push ecx
mov byte [ebp - 0x234], 0
call sub.MSVCRT.dll_memset
push 0xff
lea edx, [ebp - 0x12f]
push 0
push edx
mov byte [ebp - 0x130], 0
call sub.MSVCRT.dll_memset
mov edx, dword [0x1004f510]
add esp, 0x24
xor eax, eax
mov word [ebp - 0x30], ax
mov byte [ebp - 2], al
mov dword [ebp - 8], 0x45ae94b2
mov al, 0x31
mov ecx, str.167cd47c0a09c60350448b6f0102b1e0
lea esp, [esp]
movsx eax, al
inc ecx
add edx, eax
mov al, byte [ecx]
test al, al
jne 0x100045f0
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strtol]
push esi
push edi
mov dword [0x1004f510], edx
xor esi, esi
lea edi, [ebp - 0x234]
jmp 0x10004620
mov cl, byte [esi + str.167cd47c0a09c60350448b6f0102b1e0]
mov dl, byte [esi + 0x10046399]
push 0x10
lea eax, [ebp - 4]
push 0
push eax
mov byte [ebp - 4], cl
mov byte [ebp - 3], dl
call ebx
mov byte [edi], al
add esi, 2
add esp, 0xc
inc edi
cmp esi, 0x20
jb 0x10004620
xor eax, eax
mov word [ebp - 0x30], 1
xor ecx, ecx
jmp 0x10004660
mov byte [ebp + ecx - 0x130], cl
inc ecx
cmp ecx, 0x100
jl 0x10004660
xor ecx, ecx
mov dl, byte [ebp + eax - 8]
xor byte [ebp + ecx - 0x130], dl
inc eax
cmp eax, 4
jl 0x10004685
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10004672
lea eax, [ebp - 0x234]
push eax
mov ecx, eax
push ecx
mov edx, 0x10
lea eax, [ebp - 0x130]
call fcn.10016320
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [ebp - 0x234]
push 0x100463bc
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x100046ce
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
inc esi
push 0x100463bc
push esi
call edi
add esp, 8
test eax, eax
je 0x100046c5
push 0xa
push 0
push esi
mov byte [eax], 0
call ebx
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100046c5
xor esi, esi
lea ecx, [esi + 3]
test eax, eax
jle 0x1000475f
mov edx, 1
lea eax, [ebp - 0x338]
sub edx, eax
mov dword [ebp - 8], edx
jmp 0x10004713
mov edx, dword [ebp - 8]
mov eax, dword [0x1004f510]
lea edi, [ebp + esi - 0x338]
add edx, edi
and edx, 0x80000001
jns 0x1000472e
dec edx
or edx, 0xfffffffe
inc edx
je 0x10004743
xor edx, edx
div ecx
xor edx, edx
mov ebx, 0x14
div ebx
mov dl, byte [ebp + edx - 0x2c]
jmp 0x10004754
xor edx, edx
div ecx
xor edx, edx
mov ebx, 6
div ebx
mov dl, byte [ebp + edx - 0x10]
inc esi
add ecx, 2
mov byte [edi], dl
cmp esi, dword [ebp - 0x14]
jl 0x10004710
push 0x110
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100047b5
push 0x110
push 0
push esi
call sub.MSVCRT.dll_memset
push 0x104
push 0
push esi
call sub.MSVCRT.dll_memset
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x338]
push edx
push 0x100463c0
push 0x104
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x2c
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret