Function at 0x43d790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43d7d1
mov eax, dword [ebp - 0x20]
add eax, 0x1e
push eax
mov eax, dword [ebp + 0xc]
add eax, 0x1e
push eax
call fcn.0043f780
add esp, 8
or eax, eax
jle 0x43d7fb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov word [eax + 0x18], 1
jmp 0x43da75
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x1e], 4
je 0x43d837
mov eax, dword [ebp + 0xc]
add eax, 0x1e
push eax
push dword [ebp - 0x20]
call fcn.0043f3b1
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x43d82c
jmp 0x43d837
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x43d808
mov eax, dword [ebp + 0xc]
add eax, 0x1e
push eax
mov eax, dword [ebp - 0x20]
add eax, 0x1e
push eax
call fcn.0043f780
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43d893
sub eax, eax
mov ecx, dword [ebp + 0xc]
movsx ecx, byte [ecx + 0x1e]
mov edx, dword [ebp - 0x20]
movsx edx, byte [edx + 0x1e]
and edx, 0xff
xor ecx, edx
and ecx, 0xff
cmp eax, ecx
jne 0x43d893
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 1
jmp 0x43da75
mov eax, dword [ebp - 0x20]
movsx eax, word [eax + 0x18]
lea eax, [eax*4 - 4]
mov word [ebp - 0x24], ax
cmp dword [ebp - 0x18], 0
jne 0x43da16
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax + 0x1e]
and eax, 0xff
movsx ecx, word [ebp - 0x24]
add ecx, 8
cmp eax, ecx
jle 0x43d8dd
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 2
jmp 0x43da75
movsx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
movsx eax, byte [eax + ecx + 0x24]
and eax, 0xff
movsx ecx, word [ebp - 0x24]
mov edx, dword [ebp + 0xc]
movsx ecx, byte [ecx + edx + 0x23]
shl ecx, 8
add eax, ecx
mov word [ebp - 0x10], ax
mov eax, dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 4], eax
jmp 0x43d91c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x43d947
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movsx eax, word [eax + 8]
movsx ecx, word [ebp - 0x10]
cmp eax, ecx
jg 0x43d942
jmp 0x43d947
jmp 0x43d911
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x43d968
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movsx eax, word [eax + 8]
movsx ecx, word [ebp - 0x10]
cmp eax, ecx
jge 0x43d99a
push 0xc
push 1
call fcn.00472994
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov ax, word [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov word [ecx + 8], ax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x43d9a2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x43d9ea
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x43d9c3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x43d9d4
jmp 0x43d9bb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
jmp 0x43d9f2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax + 0x1e]
and eax, 0xfc
shr eax, 2
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0x18], ax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
jmp 0x43da75
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax + 0x1e]
and eax, 0xff
movsx ecx, word [ebp - 0x24]
add ecx, 4
cmp eax, ecx
jle 0x43da44
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 2
jmp 0x43da75
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax + 0x1e]
and eax, 0xfc
shr eax, 2
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0x18], ax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
jmp 0x43da85
pop edi
pop esi
pop ebx
leave
ret