Function at 0x40109b
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
jmp 0x404ca0
sub esp, 8
mov eax, dword [0x40b64c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
push eax
call esi
mov ecx, dword [0x40b648]
mov ebx, eax
push ecx
mov dword [esp + 0x1c], ebx
call esi
mov edi, eax
mov eax, dword [0x40b650]
add esp, 8
xor ebp, ebp
xor ecx, ecx
test eax, eax
jbe 0x404d04
mov eax, edi
sub eax, ebx
mov dword [esp + 0x10], eax
jmp 0x404ce4
mov eax, dword [esp + 0x10]
lea esi, [ecx + ebx]
mov byte [eax + esi], cl
mov eax, ecx
cdq
idiv dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc ecx
mov dl, byte [edx + eax]
mov byte [esi], dl
mov eax, dword [0x40b650]
cmp ecx, eax
jb 0x404ce0
mov eax, dword [0x40b654]
xor ebx, ebx
test eax, eax
jbe 0x404d51
mov eax, dword [esp + 0x14]
mov esi, edi
sub eax, edi
mov dword [esp + 0x28], eax
jmp 0x404d21
mov eax, dword [esp + 0x28]
mov cl, byte [esi]
xor edx, edx
mov dl, byte [eax + esi]
mov eax, ecx
and eax, 0xff
add ebp, edx
add eax, ebp
xor edx, edx
div dword [0x40b658]
inc ebx
inc esi
mov ebp, edx
mov al, byte [edi + ebp]
mov byte [edi + ebp], cl
mov byte [esi - 1], al
mov eax, dword [0x40b654]
cmp ebx, eax
jb 0x404d1d
mov ecx, dword [esp + 0x20]
xor ebp, ebp
test ecx, ecx
jle 0x405600
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
sub edx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
lea eax, [ebx + 1]
xor edx, edx
div dword [0x40b65c]
push 0
push 0
push 0x122f
push 0
mov ebx, edx
xor edx, edx
mov cl, byte [ebx + edi]
mov eax, ecx
and eax, 0xff
add eax, ebp
div dword [0x40b660]
mov ebp, edx
mov al, byte [edi + ebp]
mov byte [edi + ebp], cl
mov byte [ebx + edi], al
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
push 0
push 0
push 0x122f
push 0
call esi
xor eax, eax
xor ecx, ecx
mov al, byte [edi + ebp]
mov cl, byte [ebx + edi]
add eax, ecx
xor edx, edx
div dword [0x40b664]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov dl, byte [edx + edi]
xor dl, byte [ecx + eax]
inc eax
mov dword [esp + 0x28], eax
mov byte [eax - 1], dl
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x404d7b
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret