Function at 0x4230a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44f6a8
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x18
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x423b57
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
cdq
idiv ebx
mov edx, dword [esp + 0x44]
movsx esi, word [ebp + 0x3c]
add esi, 7
sar esi, 3
mov ecx, eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x18], eax
lea eax, [edx + 7]
sar eax, 3
mov dword [esp + 0x1c], eax
mov eax, ecx
cdq
idiv dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x18]
cdq
idiv esi
mov dword [esp + 0x3c], edi
cmp edi, eax
jle 0x423112
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
push ebp
mov edx, eax
imul edx, dword [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, eax
imul ecx, esi
mov eax, dword [esp + 0x1c]
sub eax, ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], eax
call fcn.00424170
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x30], edi
call fcn.0041e920
mov edx, dword [esp + 0x38]
xor ecx, ecx
cmp word [ebp + 0x3c], 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov esi, eax
jne 0x423174
call fcn.0041ca60
mov edi, eax
test edi, edi
je 0x423170
mov eax, dword [edi + 0x1c]
jmp 0x423172
xor eax, eax
mov ecx, eax
mov al, byte [ebp + 0xb]
mov dl, byte [esp + 0x48]
cmp al, dl
je 0x42319b
mov eax, dword [esp + 0x18]
lea esi, [ebx - 1]
imul esi, eax
mov edx, dword [esp + 0x20]
add eax, eax
add esi, edx
mov edx, dword [esp + 0x40]
sub edx, eax
mov dword [esp + 0x40], edx
mov bp, word [ebp + 0x3c]
mov eax, dword [esp + 0x44]
movsx edx, bp
cmp eax, edx
jne 0x42320b
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x3c]
mov cx, ax
sar cx, 2
lea edx, [ecx*4]
sub eax, edx
test ebx, ebx
mov ebp, eax
jle 0x423b31
mov eax, dword [esp + 0x24]
movsx edi, cx
test edi, edi
jle 0x4231e7
mov ecx, edi
mov edx, dword [eax]
add eax, 4
mov dword [esi], edx
add esi, 4
dec ecx
jne 0x4231da
movsx ecx, bp
test ecx, ecx
jle 0x4231f7
mov dl, byte [eax]
mov byte [esi], dl
inc esi
inc eax
dec ecx
jne 0x4231ee
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
add eax, ecx
add esi, edx
dec ebx
jne 0x4231d4
jmp 0x423b31
add eax, 0xfffffff8
cmp eax, 0x18
ja case.0x42321f.8
xor edx, edx
mov dl, byte [eax + 0x423b88]
jmp dword [edx*4 + 0x423b70]
movsx eax, bp
add eax, 0xfffffff8
cmp eax, 0x18
ja case.0x42323d.12
xor edx, edx
mov dl, byte [eax + 0x423bb8]
jmp dword [edx*4 + 0x423ba4]
test edi, edi
je case.0x42323d.12
test ecx, ecx
je case.0x42323d.12
push 0
push edi
call fcn.0041c450
mov ebp, dword [esp + 0x40]
add esp, 8
mov eax, ebx
test ebx, ebx
mov dword [esp + 0x48], eax
jle 0x4232dd
mov ebx, dword [esp + 0x3c]
mov cl, al
and cl, 1
test ebx, ebx
mov byte [esp + 0x38], cl
jle 0x4232c8
mov ax, word [ebp]
mov edx, dword [esp + 0x38]
push edx
mov cl, al
mov edx, eax
and ecx, 0x1f
and edx, 0x3e0
and eax, 0x7c00
shl ecx, 3
or dl, 0x10
or ecx, 4
or ah, 2
push ecx
shr dx, 2
shr ax, 7
push edx
push eax
mov ecx, edi
add ebp, 2
call fcn.0041c4b0
mov byte [esi], al
inc esi
dec ebx
jne 0x42327e
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add ebp, edx
add esi, ecx
dec eax
test eax, eax
mov dword [esp + 0x48], eax
jg 0x423271
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
call dword [eax]
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], ebx
test edi, edi
jle 0x42332d
mov ax, word [ecx]
add ecx, 2
mov ebx, eax
and eax, 0x1f
and ebx, 0xffe0
add esi, 2
shl ebx, 1
or ebx, eax
dec edi
mov word [esi - 2], bx
jne 0x42330a
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
add ecx, ebp
add esi, edx
dec eax
mov dword [esp + 0x48], eax
jne 0x423306
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
lea edi, [edx - 1]
mov dword [esp + 0x48], edi
test edi, edi
jle 0x4233a2
mov ax, word [ecx]
add ecx, 2
and eax, 0xffff
add esi, 3
mov edx, eax
mov ebx, eax
and edx, 0x7c00
and ebx, 0x3e0
shl edx, 3
or edx, ebx
and eax, 0x1f
shl edx, 3
or edx, eax
shl edx, 3
or edx, 0x40404
dec edi
mov dword [esi - 3], edx
jne 0x423364
mov edi, dword [esp + 0x48]
mov ax, word [ecx]
mov edx, eax
shr edx, 7
and dl, 0xfc
or dl, 4
mov byte [esi + 2], dl
mov edx, eax
shl al, 3
or al, 4
mov byte [esi], al
mov eax, dword [esp + 0x14]
shr edx, 2
and dl, 0xfc
lea ecx, [ecx + eax + 2]
mov eax, dword [esp + 0x38]
or dl, 4
dec eax
mov byte [esi + 1], dl
lea esi, [esi + ebp + 3]
mov dword [esp + 0x38], eax
jne 0x423360
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], ebx
lea edi, [edx - 1]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], edi
test edi, edi
jle 0x423445
mov ax, word [ecx]
add ecx, 2
and eax, 0xffff
add esi, 4
mov ebx, eax
mov ebp, eax
and ebx, 0x7c00
and ebp, 0x3e0
shl ebx, 3
or ebx, ebp
and eax, 0x1f
shl ebx, 3
or ebx, eax
shl ebx, 3
or ebx, 0x40404
dec edi
mov dword [esi - 4], ebx
jne 0x423407
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
add ecx, ebp
add esi, edx
dec eax
mov dword [esp + 0x38], eax
jne 0x423403
jmp 0x423b31
movsx eax, bp
add eax, 0xfffffff8
cmp eax, 0x18
ja case.0x42321f.8
xor edx, edx
mov dl, byte [eax + 0x423be8]
jmp dword [edx*4 + 0x423bd4]
test edi, edi
je case.0x42321f.8
test ecx, ecx
je case.0x42321f.8
push 0
push edi
call fcn.0041c450
mov ebp, dword [esp + 0x40]
add esp, 8
mov eax, ebx
test ebx, ebx
mov dword [esp + 0x48], eax
jle 0x423514
mov ebx, dword [esp + 0x3c]
mov cl, al
and cl, 1
test ebx, ebx
mov byte [esp + 0x38], cl
jle 0x4234ff
mov ax, word [ebp]
mov edx, dword [esp + 0x38]
mov cl, al
push edx
and ecx, 0x1f
mov edx, eax
shl ecx, 3
or ecx, 4
and edx, 0x7e0
and eax, 0xfcff
push ecx
or dl, 0x10
or ah, 4
xor ecx, ecx
add ebp, 2
shr dx, 3
mov cl, ah
push edx
push ecx
mov ecx, edi
call fcn.0041c4b0
mov byte [esi], al
inc esi
dec ebx
jne 0x4234b5
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
add ebp, edx
add esi, ecx
dec eax
test eax, eax
mov dword [esp + 0x48], eax
jg 0x4234a8
mov edx, dword [edi + 8]
lea ecx, [edi + 8]
call dword [edx]
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], ebx
test edi, edi
jle 0x423564
mov ax, word [ecx]
add ecx, 2
mov ebx, eax
and eax, 0x1f
shr ebx, 1
and ebx, 0x7fe0
add esi, 2
or ebx, eax
dec edi
mov word [esi - 2], bx
jne 0x423541
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
add ecx, ebp
add esi, edx
dec eax
mov dword [esp + 0x48], eax
jne 0x42353d
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
lea edi, [eax - 1]
mov dword [esp + 0x48], edi
test edi, edi
jle 0x4235d9
mov ax, word [ecx]
add ecx, 2
and eax, 0xffff
add esi, 3
mov edx, eax
mov ebx, eax
and edx, 0xf800
and ebx, 0x7e0
shl edx, 3
or edx, ebx
and eax, 0x1f
shl edx, 2
or edx, eax
shl edx, 3
or edx, 0x40204
dec edi
mov dword [esi - 3], edx
jne 0x42359b
mov edi, dword [esp + 0x48]
mov ax, word [ecx]
xor edx, edx
mov dl, ah
and dl, 0xfc
or dl, 4
mov byte [esi + 2], dl
mov edx, eax
shl al, 3
or al, 4
mov byte [esi], al
mov eax, dword [esp + 0x14]
shr edx, 3
and dl, 0xfe
lea ecx, [ecx + eax*2 + 2]
mov eax, dword [esp + 0x38]
or dl, 2
dec eax
mov byte [esi + 1], dl
lea esi, [esi + ebp + 3]
mov dword [esp + 0x38], eax
jne 0x423597
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x38], ebx
lea edi, [edx - 1]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x48], edi
test edi, edi
jle 0x42367b
mov ax, word [ecx]
add ecx, 2
and eax, 0xffff
add esi, 4
mov ebx, eax
mov ebp, eax
and ebx, 0xf800
and ebp, 0x7e0
shl ebx, 3
or ebx, ebp
and eax, 0x1f
shl ebx, 2
or ebx, eax
shl ebx, 3
or ebx, 0x40204
dec edi
mov dword [esi - 4], ebx
jne 0x42363d
mov edi, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
add ecx, ebp
add esi, edx
dec eax
mov dword [esp + 0x38], eax
jne 0x423639
jmp 0x423b31
movsx eax, bp
add eax, 0xfffffff8
cmp eax, 0x18
ja case.0x42321f.8
xor edx, edx
mov dl, byte [eax + 0x423c18]
jmp dword [edx*4 + 0x423c04]
test edi, edi
je case.0x42321f.8
test ecx, ecx
je case.0x42321f.8
push 0
push edi
call fcn.0041c450
mov ebp, dword [esp + 0x40]
add esp, 8
test ebx, ebx
mov dword [esp + 0x38], ebx
jle 0x423760
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x48], eax
mov cl, byte [esp + 0x38]
mov eax, dword [esp + 0x48]
and cl, 1
test eax, eax
mov byte [esp + 0x44], cl
jle 0x423727
mov ebx, eax
mov eax, dword [ebp]
push dword [esp + 0x44]
xor edx, edx
mov dword [esp + 0x40], eax
mov dl, ah
xor ecx, ecx
mov cl, byte [esp + 0x42]
and eax, 0xff
push eax
push edx
push ecx
mov ecx, edi
add ebp, 3
call fcn.0041c4b0
mov byte [esi], al
inc esi
dec ebx
jne 0x4236fa
mov ebx, dword [esp + 0x44]
xor eax, eax
mov al, byte [ebp]
push ebx
push eax
lea ecx, [eax + 1]
lea edx, [eax + 2]
push ecx
push edx
mov ecx, edi
call fcn.0041c4b0
mov edx, dword [esp + 0x14]
mov byte [esi], al
mov eax, dword [esp + 0x40]
lea ebp, [edx + ebp + 3]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [esp + 0x38], eax
jg 0x4236e5
mov edx, dword [edi + 8]
lea ecx, [edi + 8]
call dword [edx]
jmp 0x423b31
push 0
push 0
call fcn.0041c450
mov ebp, dword [esp + 0x40]
add esp, 8
test edi, edi
je case.0x42321f.8
test ebx, ebx
mov dword [esp + 0x38], ebx
jle 0x423b31
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x48], eax
mov cl, byte [esp + 0x38]
mov ebx, dword [esp + 0x48]
and cl, 1
mov byte [esp + 0x44], cl
mov edi, dword [esp + 0x44]
test ebx, ebx
jle 0x4237df
mov eax, dword [ebp]
xor edx, edx
mov dword [esp + 0x3c], eax
mov dl, ah
xor ecx, ecx
and eax, 0xff
mov cl, byte [esp + 0x3e]
push edi
push eax
push edx
push ecx
add ebp, 3
call fcn.0041c6b0
mov word [esi], ax
add esp, 0x10
add esi, 2
dec ebx
jne 0x4237b1
mov al, byte [ebp]
mov cl, byte [ebp + 1]
mov dl, byte [ebp + 2]
push edi
movzx ax, al
movzx cx, cl
movzx dx, dl
push eax
push ecx
push edx
call fcn.0041c6b0
mov ecx, dword [esp + 0x50]
mov word [esi], ax
mov eax, dword [esp + 0x24]
add esp, 0x10
lea esi, [esi + ecx + 2]
lea ebp, [eax + ebp + 3]
mov eax, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [esp + 0x38], eax
jg 0x42379a
jmp 0x423b31
push 0
push 0
call fcn.0041c450
mov ebp, dword [esp + 0x40]
add esp, 8
test edi, edi
je case.0x42321f.8
test ebx, ebx
mov dword [esp + 0x38], ebx
jle 0x423b31
mov edx, dword [esp + 0x3c]
dec edx
mov dword [esp + 0x48], edx
mov al, byte [esp + 0x38]
mov ebx, dword [esp + 0x48]
and al, 1
mov byte [esp + 0x44], al
mov edi, dword [esp + 0x44]
test ebx, ebx
jle 0x42389a
mov eax, dword [ebp]
xor edx, edx
mov dword [esp + 0x3c], eax
mov dl, ah
xor ecx, ecx
and eax, 0xff
mov cl, byte [esp + 0x3e]
push edi
push eax
push edx
push ecx
add ebp, 3
call fcn.0041c890
mov word [esi], ax
add esp, 0x10
add esi, 2
dec ebx
jne 0x42386c
mov al, byte [ebp]
mov cl, byte [ebp + 1]
mov dl, byte [ebp + 2]
push edi
movzx ax, al
movzx cx, cl
movzx dx, dl
push eax
push ecx
push edx
call fcn.0041c890
mov ecx, dword [esp + 0x50]
mov word [esi], ax
mov eax, dword [esp + 0x24]
add esp, 0x10
lea esi, [esi + ecx + 2]
lea ebp, [eax + ebp + 3]
mov eax, dword [esp + 0x38]
dec eax
test eax, eax
mov dword [esp + 0x38], eax
jg 0x423856
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
lea eax, [edx - 1]
mov dword [esp + 0x48], eax
jmp 0x423909
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x42391a
mov edx, dword [ecx]
add ecx, 3
mov dword [esi], edx
add esi, 4
dec eax
jne 0x42390d
mov al, byte [ecx]
inc ecx
mov byte [esi], al
lea eax, [esi + 1]
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx + 1]
inc eax
inc ecx
mov byte [eax], dl
inc eax
dec ebx
lea ecx, [ecx + ebp + 1]
lea esi, [eax + edi]
jne 0x423905
jmp 0x423b31
movsx eax, bp
add eax, 0xfffffff8
cmp eax, 0x10
ja case.0x42321f.8
xor edx, edx
mov dl, byte [eax + 0x423c48]
jmp dword [edx*4 + 0x423c34]
test edi, edi
je case.0x42321f.8
test ecx, ecx
je case.0x42321f.8
push 0
push edi
call fcn.0041c450
mov ebp, dword [esp + 0x40]
add esp, 8
mov eax, ebx
test ebx, ebx
mov dword [esp + 0x48], eax
jle 0x4239dd
mov cl, al
and cl, 1
mov byte [esp + 0x44], cl
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jle 0x4239c8
mov ebx, ecx
mov eax, dword [ebp]
push dword [esp + 0x44]
xor edx, edx
mov dword [esp + 0x3c], eax
mov dl, ah
xor ecx, ecx
mov cl, byte [esp + 0x3e]
and eax, 0xff
push eax
push edx
push ecx
mov ecx, edi
add ebp, 4
call fcn.0041c4b0
mov byte [esi], al
inc esi
dec ebx
jne 0x423997
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
add ebp, ecx
add esi, ebx
dec eax
test eax, eax
mov dword [esp + 0x48], eax
jg 0x423984
mov edx, dword [edi + 8]
lea ecx, [edi + 8]
call dword [edx]
jmp 0x423b31
push 0
push 0
call fcn.0041c450
add esp, 8
mov ebp, esi
mov esi, dword [esp + 0x38]
test edi, edi
je case.0x42321f.8
test ebx, ebx
jle 0x423b31
mov al, bl
and al, 1
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x423a4f
mov edi, eax
mov eax, dword [esi]
push dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x4c], eax
mov dl, ah
xor ecx, ecx
mov cl, byte [esp + 0x4e]
and eax, 0xff
push eax
push edx
push ecx
add esi, 4
call fcn.0041c6b0
mov word [ebp], ax
add esp, 0x10
add ebp, 2
dec edi
jne 0x423a1e
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
add esi, edi
add ebp, edx
dec ebx
test ebx, ebx
jg 0x423a0c
jmp 0x423b31
push 0
push 0
call fcn.0041c450
add esp, 8
mov ebp, esi
mov esi, dword [esp + 0x38]
test edi, edi
je case.0x42321f.8
test ebx, ebx
jle 0x423b31
mov eax, dword [esp + 0x3c]
mov cl, bl
and cl, 1
test eax, eax
mov byte [esp + 0x38], cl
jle 0x423acb
mov edi, eax
mov eax, dword [esi]
push dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x4c], eax
mov dl, ah
xor ecx, ecx
mov cl, byte [esp + 0x4e]
and eax, 0xff
push eax
push edx
push ecx
add esi, 4
call fcn.0041c890
mov word [ebp], ax
add esp, 0x10
add ebp, 2
dec edi
jne 0x423a9a
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
add esi, edi
add ebp, edx
dec ebx
test ebx, ebx
jg 0x423a87
jmp 0x423b31
mov ecx, dword [esp + 0x38]
test ebx, ebx
jle 0x423b31
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov ebp, ebx
mov ebx, dword [esp + 0x40]
lea eax, [edx - 1]
mov dword [esp + 0x48], eax
jmp 0x423b01
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x423b12
mov edx, dword [ecx]
add ecx, 4
mov dword [esi], edx
add esi, 3
dec eax
jne 0x423b05
mov al, byte [ecx]
inc ecx
mov byte [esi], al
lea eax, [esi + 1]
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx + 1]
inc eax
inc ecx
add ecx, 2
mov byte [eax], dl
inc eax
add ecx, edi
dec ebp
lea esi, [eax + ebx]
jne 0x423afd
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00424190
mov al, 1
jmp 0x423b59
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00424190
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14