Function at 0x420920
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
mov ebx, dword [esi]
mov ebp, dword [esi + 8]
mov edx, dword [esi + 4]
sub ebp, ebx
mov ebx, dword [esi + 0xc]
sub ebx, edx
test eax, eax
je 0x42094d
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
jmp 0x420955
mov dword [esp + 0x14], 0
test eax, eax
je 0x420965
mov edx, dword [eax + 8]
push edx
call sub.MSVCRT.dll_abs
add esp, 4
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x6c]
mov ecx, ebx
xor edx, edx
test eax, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
je 0x420991
mov eax, ebx
mov ebx, dword [esp + 0x30]
div dword [ebx + 0x78]
mov dword [esp + 0x10], eax
mov ecx, eax
jmp 0x4209a0
mov ebx, dword [esp + 0x30]
mov eax, ebp
div dword [ebx + 0x78]
mov dword [esp + 0x18], eax
mov ebp, eax
test ebp, ebp
jle 0x420d19
test ecx, ecx
jle 0x420d19
movzx eax, byte [ebx + 0x8d]
mov ah, byte [ebx + 0x8c]
movzx edx, byte [ebx + 0x8e]
shl eax, 8
or eax, edx
mov dword [esp + 0xc], eax
shr eax, 0x10
mov byte [esp + 0x1e], al
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x38], edx
je 0x420b73
mov eax, dword [esi + 4]
mov edx, dword [edi + 0xc]
add eax, ecx
lea ebx, [edx - 1]
cmp eax, ebx
jge 0x4209fc
mov ebx, eax
cmp ebx, dword [edi + 4]
mov dword [esp + 0x30], ebx
jl 0x420aba
mov ebp, dword [edi + 8]
lea esp, [esp]
mov edx, dword [esp + 0x3c]
mov esi, dword [edx + 4]
mov eax, ebx
sub eax, esi
mov esi, dword [edi]
shl eax, 8
cdq
idiv ecx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x38]
sub ecx, ebx
dec ecx
imul ecx, dword [esp + 0x14]
cmp esi, ebp
lea ecx, [edx + ecx*4]
jge 0x420aa2
movzx ebx, byte [esp + 0xd]
movzx edx, byte [esp + 0x1e]
mov ebp, 0x100
sub ebp, eax
imul ebx, ebp
imul edx, ebp
mov dword [esp + 0x20], ebx
movzx ebx, byte [esp + 0xc]
imul ebx, ebp
mov dword [esp + 0x18], ebx
movzx ebx, byte [ecx + 2]
imul ebx, eax
mov ebp, dword [esp + 0x20]
add ebx, edx
shr ebx, 8
mov byte [ecx + 2], bl
movzx ebx, byte [ecx + 1]
imul ebx, eax
add ebx, ebp
mov ebp, dword [esp + 0x18]
shr ebx, 8
mov byte [ecx + 1], bl
movzx ebx, byte [ecx]
imul ebx, eax
add ebx, ebp
shr ebx, 8
mov byte [ecx], bl
mov ebp, dword [edi + 8]
add ecx, 4
inc esi
cmp esi, ebp
jl 0x420a60
mov ebx, dword [esp + 0x30]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
dec ebx
cmp ebx, eax
mov dword [esp + 0x30], ebx
jge 0x420a10
mov esi, dword [esp + 0x3c]
mov ebx, dword [edi + 0xc]
mov eax, dword [esi + 0xc]
mov esi, dword [edi + 4]
mov edx, eax
dec ebx
sub edx, ecx
dec edx
cmp edx, esi
mov dword [esp + 0x30], ebx
jg 0x420ad3
mov edx, esi
cmp ebx, edx
jl 0x420d19
sub eax, ebx
mov esi, dword [edi]
dec eax
shl eax, 8
cdq
idiv ecx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x38]
sub ecx, ebx
dec ecx
imul ecx, dword [esp + 0x14]
lea ecx, [edx + ecx*4]
cmp esi, dword [edi + 8]
jge 0x420b66
movzx ebx, byte [esp + 0xd]
movzx edx, byte [esp + 0x1e]
mov ebp, 0x100
sub ebp, eax
imul ebx, ebp
imul edx, ebp
mov dword [esp + 0x20], ebx
movzx ebx, byte [esp + 0xc]
imul ebx, ebp
mov dword [esp + 0x18], ebx
movzx ebx, byte [ecx + 2]
imul ebx, eax
mov ebp, dword [esp + 0x20]
add ebx, edx
shr ebx, 8
mov byte [ecx + 2], bl
movzx ebx, byte [ecx + 1]
imul ebx, eax
add ebx, ebp
mov ebp, dword [esp + 0x18]
shr ebx, 8
mov byte [ecx + 1], bl
movzx ebx, byte [ecx]
imul ebx, eax
add ebx, ebp
shr ebx, 8
mov byte [ecx], bl
mov ebx, dword [edi + 8]
add ecx, 4
inc esi
cmp esi, ebx
jl 0x420b24
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
jmp 0x420abd
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
cmp ecx, eax
mov dword [esp + 0x30], ecx
jge 0x420c22
mov ebx, dword [edi]
sub eax, ecx
mov ecx, dword [esp + 0x38]
dec eax
imul eax, dword [esp + 0x14]
lea ecx, [ecx + eax*4]
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
mov esi, dword [edi + 8]
lea eax, [edx + ebp]
cmp eax, esi
jl 0x420ba8
mov eax, esi
cmp ebx, eax
jge 0x420c0e
mov eax, ebx
sub eax, edx
shl eax, 8
cdq
idiv ebp
movzx edx, byte [esp + 0x1e]
mov ebp, 0x100
add ecx, 4
mov esi, eax
movzx eax, byte [ecx - 2]
imul eax, esi
sub ebp, esi
imul edx, ebp
add eax, edx
movzx edx, byte [ecx - 3]
shr eax, 8
imul edx, esi
mov byte [ecx - 2], al
movzx eax, byte [esp + 0xd]
imul eax, ebp
add eax, edx
movzx edx, byte [esp + 0xc]
shr eax, 8
imul edx, ebp
mov ebp, dword [esp + 0x18]
mov byte [ecx - 3], al
movzx eax, byte [ecx - 4]
imul eax, esi
add eax, edx
shr eax, 8
mov byte [ecx - 4], al
inc ebx
jmp 0x420b96
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jl 0x420b85
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
cmp ecx, eax
mov dword [esp + 0x30], ecx
jge 0x420d19
mov esi, dword [edi + 8]
mov ecx, dword [esp + 0x3c]
mov ebx, dword [ecx + 8]
mov edx, dword [edi]
sub ebx, ebp
dec ebx
cmp ebx, edx
mov dword [esp + 0x10], ebx
jg 0x420c4f
mov dword [esp + 0x10], edx
sub eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
dec eax
imul eax, dword [esp + 0x14]
sub eax, edx
add eax, ecx
cmp ebx, edx
mov ecx, dword [esp + 0x38]
lea ecx, [ecx + eax*4]
jle 0x420c6e
mov edx, ebx
cmp edx, esi
mov dword [esp + 0x10], edx
jge 0x420d05
movzx eax, byte [esp + 0x1e]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
movzx esi, ah
movzx eax, al
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 8]
sub eax, edx
dec eax
shl eax, 8
cdq
idiv ebp
movzx edx, byte [ecx + 2]
mov esi, 0x100
mov ebp, dword [esp + 0x18]
add ecx, 4
imul edx, eax
sub esi, eax
mov ebx, esi
imul ebx, dword [esp + 0x20]
add edx, ebx
shr edx, 8
mov byte [ecx - 2], dl
movzx edx, byte [ecx - 3]
imul edx, eax
mov ebx, esi
imul ebx, dword [esp + 0x24]
add edx, ebx
shr edx, 8
mov byte [ecx - 3], dl
movzx edx, byte [ecx - 4]
imul edx, eax
mov eax, dword [esp + 0x28]
imul eax, esi
add edx, eax
shr edx, 8
mov byte [ecx - 4], dl
mov edx, dword [esp + 0x10]
mov esi, dword [edi + 8]
inc edx
cmp edx, esi
mov dword [esp + 0x10], edx
jl 0x420c95
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
inc ecx
cmp ecx, eax
mov dword [esp + 0x30], ecx
jl 0x420c37
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10