Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x244
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x401a00
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
xor ecx, ecx
nop dword [eax + eax]
mov byte [ebp + ecx - 0x150], cl
mov eax, ecx
cdq
idiv esi
movzx eax, byte [edi + edx]
mov byte [ebp + ecx - 0x250], al
inc ecx
cmp ecx, 0x100
jne 0x401040
xor eax, eax
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebp + eax - 0x150]
add cl, dl
add cl, byte [ebp + eax - 0x250]
movzx esi, cl
mov dh, byte [ebp + esi - 0x150]
mov byte [ebp + eax - 0x150], dh
mov byte [ebp + esi - 0x150], dl
inc eax
cmp eax, 0x100
jne 0x401070
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xor edx, edx
cmp edx, 0x3e8
jb 0x4010e4
jmp 0x40110f
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x28], eax
inc edx
cmp edx, 0x3e8
jae 0x40110f
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jne 0x4010d0
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x2c]
lea esi, [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x20], edx
call fcn.00401eb0
mov edx, dword [ebp - 0x20]
inc edx
cmp edx, 0x3e8
jb 0x4010e4
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x3c], 0
nop word [eax + eax]
mov eax, dword [ebp - 0x2c]
cmp ecx, dword [eax + 4]
jge 0x4012b7
mov dword [ebp - 0x48], ecx
mov esi, dword [ebp - 0x3c]
lea eax, [esi + 1]
lea ecx, [esi + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add esi, ecx
inc esi
movzx eax, byte [ebp + esi - 0x150]
add dl, al
mov dword [ebp - 0x44], edx
movzx ecx, dl
movzx edx, byte [ebp + ecx - 0x150]
mov byte [ebp + esi - 0x150], dl
mov byte [ebp + ecx - 0x150], al
mov dword [ebp - 0x3c], esi
add al, byte [ebp + esi - 0x150]
movzx eax, al
mov dword [ebp - 0x40], eax
je 0x40124a
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x40]
xor ecx, 5
xor edx, edx
mov dword [ebp - 0x4c], ecx
cmp edx, 0x64
jb 0x4011be
jmp 0x4011ec
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x34], eax
inc edx
cmp edx, 0x64
jae 0x4011ec
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jne 0x4011b0
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], edx
lea edx, [ebp - 0x50]
push edx
push eax
call fcn.00401eb0
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
inc edx
cmp edx, 0x64
jb 0x4011be
mov dword [ebp - 0x10], 3
push 0x69
push str.After_move__i_n
call fcn.00401a30
add esp, 8
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x40124a
mov eax, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 0x1000
jb 0x40122b
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x401312
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.004020b0
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [ebp - 0x10], 2
push 8
call fcn.004020be
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
push eax
push 0x41416f
mov dword [ebp - 0x20], eax
call fcn.00401a30
mov edx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [ebp - 0x40]
movzx eax, byte [ebp + eax - 0x150]
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x48]
xor byte [ecx + esi], al
cmp dword [edx + 4], 0
jne 0x40130d
push edx
call fcn.004020ee
add esp, 4
inc esi
mov ecx, esi
mov edx, dword [ebp - 0x44]
jmp 0x401120
test eax, eax
je 0x4012f9
mov ecx, dword [ebp - 0x24]
sub ecx, eax
cmp ecx, 0x1000
jb 0x4012da
mov edx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, edx
cmp eax, 0x20
jae 0x40131e
add ecx, 0x23
mov eax, edx
push ecx
push eax
call fcn.004020b0
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x244
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004051c3
mov dword [ebp - 0x10], 1
call fcn.0040551b
mov dword [ebp - 0x10], 0
call fcn.0040551b
nop word [eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
call fcn.004030cf
nop dword [eax]
push ebp
sub esp, 8
add ebp, 0xc
call fcn.004030cf
nop dword [eax]
push ebp
sub esp, 8
add ebp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00401a70
add esp, 8
pop ebp
ret