Function at 0x43f507
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x904
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x900], eax
mov eax, dword [esp + 0x908]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x914]
push ebx
mov dword [esp + 0x2c], eax
xor ebx, ebx
xor eax, eax
mov word [esp + 0x4fc], bx
push esi
inc eax
mov dword [esp + 0x503], 0xff0000be
push 0x400
mov dword [esp + 0x30], eax
mov byte [esp + 0x506], al
lea eax, [esp + 0x50c]
push ebx
push eax
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
mov byte [esp + 0x15], bl
mov dword [esp + 0x20], ebx
call fcn.004b6030
push 0x4b0
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.004b6030
mov eax, dword [esp + 0x92c]
add esp, 0x18
mov esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], eax
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
mov dword [esp + 0x3c], edx
test edx, edx
jne 0x43f5c0
or eax, 0xffffffff
jmp 0x43fa8d
push ebp
push 8
pop ebp
mov dword [esp + 0x28], ebp
cmp byte [0x51e299], bl
jne 0x43f5e8
mov ecx, ebx
movzx eax, byte [ecx + 0x4d57a8]
mov byte [eax + 0x51e298], cl
inc ecx
cmp ecx, 0x100
jl 0x43f5d2
mov ecx, dword [esp + 0x918]
push edi
xor edi, edi
inc edi
lea eax, [ecx + ebp]
cmp eax, dword [esp + 0x920]
jbe 0x43f613
mov ebp, dword [esp + 0x920]
sub ebp, ecx
inc ebp
mov dword [esp + 0x2c], ebp
je 0x43f9b4
cmp dword [esp + 0x24], ebx
jne 0x43f62e
test esi, esi
jne 0x43f62e
mov eax, ecx
sub eax, dword [esp + 0x4c]
cmp eax, 0x10000
ja 0x43f9b4
push edx
push ebp
push ecx
mov ecx, dword [esp + 0x54]
call fcn.00441211
test eax, eax
je 0x43fa88
mov ecx, dword [esp + 0x91c]
mov dword [esp + 0x28], ebx
test ebp, ebp
je 0x43f9a6
mov ebp, dword [esp + 0x44]
mov esi, ebx
mov al, byte [esp + 0x11]
add ebp, 0x12
mov dword [esp + 0x14], ebp
test al, al
jne 0x43f9b4
movzx eax, byte [ebp - 5]
and eax, 7
mov al, byte [eax + ebp + 2]
and al, 0x30
cmp al, 0x10
jne 0x43f979
movzx ecx, byte [ebp]
movzx edx, byte [ebp + 1]
shl ecx, 8
add edx, 0x14
add edx, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
lea eax, [edx - 0x80]
cmp eax, 0x779
ja 0x43f729
mov ecx, 0x7fa
mov dword [esp + 0x24], 2
sub ecx, edx
mov eax, ecx
mov byte [esp + 0x50d], cl
shr eax, 8
mov byte [esp + 0x50c], al
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x510]
push eax
lea eax, [edx - 0x80]
push eax
lea eax, [ebp + 0x6e]
push eax
call fcn.0043f35d
add esp, 0x14
cmp eax, edi
jne 0x43f729
lea eax, [ebp + 0x42]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0043faa4
mov ecx, dword [esp + 0x928]
xor eax, eax
inc eax
mov dword [esp + 0x30], 3
xor edi, edi
mov byte [esp + 0x1e], al
add esp, 0xc
mov byte [esp + 0x11], al
inc edi
jmp 0x43f97d
mov edx, ebx
lea esi, [esp + 0x510]
movzx ebp, byte [edx + ebp - 0x12]
mov ecx, ebx
mov eax, 0x80
sar eax, cl
test ebp, eax
setne al
mov byte [esi + ecx], al
inc ecx
cmp ecx, 8
jl 0x43f739
mov ebp, dword [esp + 0x14]
inc edx
add esi, 8
cmp edx, 0x80
jl 0x43f732
mov eax, ebx
mov dword [esp + 0x18], ebx
push 2
mov dword [esp + 0x34], eax
lea edi, [esp + 0x911]
pop esi
mov ecx, esi
cmp esi, 0x400
jge 0x43f7a1
mov ebp, edi
mov eax, ecx
cdq
idiv esi
lea eax, [esp + 0x90f]
sub eax, edx
mov al, byte [eax]
cmp al, byte [ebp]
jne 0x43f79d
inc ecx
dec ebp
cmp ecx, 0x400
jl 0x43f77e
mov eax, dword [esp + 0x30]
cmp ecx, eax
jle 0x43f7ca
cmp ecx, esi
jle 0x43f7ca
cmp ecx, 0x70
jle 0x43f7ca
mov eax, ecx
cdq
idiv esi
cmp eax, 2
jl 0x43f7c6
mov eax, ecx
mov ecx, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
jmp 0x43f7ce
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
inc esi
dec edi
cmp esi, 0x180
jl 0x43f772
push 1
pop edi
test eax, eax
jle 0x43f96a
push 2
pop eax
mov dword [esp + 0x20], eax
mov edi, ebx
mov eax, edi
mov ebp, edi
cdq
idiv ecx
sub edx, ecx
and ebp, 7
jne 0x43f812
mov cl, byte [esp + edx + 0x910]
mov eax, edi
shl cl, 7
sar eax, 3
mov byte [esp + eax + 0x510], cl
jmp 0x43f82c
mov al, byte [esp + edx + 0x910]
mov esi, edi
push 7
pop ecx
sar esi, 3
sub ecx, ebp
shl al, cl
or byte [esp + esi + 0x510], al
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, 0x50
jl 0x43f7ec
mov ebp, dword [esp + 0x14]
mov ecx, ebx
movzx eax, byte [ecx + ebp + 0x6e]
mov al, byte [eax + 0x4d53a8]
xor byte [esp + ecx + 0x510], al
inc ecx
cmp ecx, 0xa
jl 0x43f83c
imul eax, dword [esp + 0x1c], 0xc
lea esi, [esp + 0x55]
mov edi, ebx
add esi, eax
mov al, byte [esp + 0x11]
test al, al
jne 0x43f95a
lea eax, [esp + 0x500]
push eax
lea eax, [esp + 0x514]
push eax
push edi
call fcn.0043f096
mov edi, eax
add esp, 0xc
test edi, edi
js 0x43f956
push 3
pop eax
mov dword [esp + 0x20], eax
mov ecx, ebx
mov al, byte [ecx + ebp + 0x42]
xor byte [esp + ecx + 0x500], al
inc ecx
cmp ecx, 5
jl 0x43f899
mov edx, ebx
cmp dword [esp + 0x1c], edx
jle 0x43f8e6
lea ecx, [esp + 0x54]
mov eax, dword [ecx]
lea ebp, [esp + 0x500]
cmp eax, dword [ebp]
mov ebp, dword [esp + 0x14]
jne 0x43f8dc
movzx eax, byte [ecx + 4]
lea ebp, [esp + 0x500]
cmp al, byte [ebp + 4]
mov ebp, dword [esp + 0x14]
je 0x43f933
inc edx
add ecx, 0xc
cmp edx, dword [esp + 0x1c]
jl 0x43f8b6
mov al, byte [esp + 0x500]
xor ecx, ecx
mov byte [esi - 1], al
inc ecx
mov al, byte [esp + 0x501]
inc dword [esp + 0x1c]
mov byte [esi], al
mov al, byte [esp + 0x502]
mov byte [esi + 1], al
mov al, byte [esp + 0x503]
mov byte [esi + 2], al
mov al, byte [esp + 0x504]
mov byte [esi + 3], al
mov al, cl
mov dword [esi - 5], ecx
add esi, 0xc
mov byte [esp + 0x11], al
mov byte [esp + 0x13], cl
jmp 0x43f865
imul eax, edx, 0xc
xor ecx, ecx
inc ecx
inc dword [esp + eax + 0x50]
cmp dword [esp + eax + 0x50], ecx
mov al, byte [esp + 0x11]
jl 0x43f865
mov al, cl
mov byte [esp + 0x11], al
jmp 0x43f865
mov al, byte [esp + 0x11]
mov ecx, dword [esp + 0x91c]
xor edi, edi
mov esi, dword [esp + 0x28]
inc edi
jmp 0x43f97d
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x91c]
mov esi, dword [esp + 0x28]
mov al, byte [esp + 0x11]
inc ecx
add ebp, 0x800
inc esi
mov dword [esp + 0x91c], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], ebp
cmp esi, dword [esp + 0x2c]
jb 0x43f666
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
cmp byte [esp + 0x11], bl
je 0x43f5f3
cmp byte [esp + 0x12], bl
je 0x43fa1f
mov ecx, dword [esp + 0x40]
mov eax, ecx
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sar eax, 9
mov al, byte [eax + 0x4d52a8]
mov byte [esi], al
movzx eax, cl
mov ecx, edx
sar ecx, 1
and ecx, 0xe00000
mov al, byte [eax + 0x4d52a8]
mov byte [esi + 1], al
mov eax, edx
and eax, 0x1f0000
or ecx, eax
sar ecx, 0x10
mov al, byte [ecx + 0x4d52a8]
mov byte [esi + 2], al
mov eax, edx
sar eax, 8
and eax, 0xff
mov al, byte [eax + 0x4d52a8]
mov byte [esi + 3], al
movzx eax, dl
mov al, byte [eax + 0x4d52a8]
mov byte [esi + 4], al
jmp 0x43fa79
cmp byte [esp + 0x13], bl
je 0x43fa79
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
jle 0x43fa50
push 0xc
mov edx, ebx
pop ecx
mov eax, dword [esp + ecx + 0x50]
cmp eax, dword [esp + edx + 0x50]
mov eax, dword [esp + 0x34]
jle 0x43fa44
mov ebx, eax
mov edx, ecx
inc eax
add ecx, 0xc
mov dword [esp + 0x34], eax
cmp eax, ebp
jl 0x43fa32
mov esi, dword [esp + 0x38]
imul ecx, ebx, 0xc
mov al, byte [esp + ecx + 0x54]
mov byte [esi], al
mov al, byte [esp + ecx + 0x55]
mov byte [esi + 1], al
mov al, byte [esp + ecx + 0x56]
mov byte [esi + 2], al
mov al, byte [esp + ecx + 0x57]
mov cl, byte [esp + ecx + 0x58]
mov byte [esi + 3], al
mov byte [esi + 4], cl
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x24], eax
cmovg eax, dword [esp + 0x24]
jmp 0x43fa8b
or eax, 0xffffffff
pop edi
pop ebp
mov ecx, dword [esp + 0x908]
pop esi
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x904
ret