Function at 0x42dbb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebx]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc0], ebx
mov dword [eax + 8], 0
mov dword [ebp - 0x9c], edi
cmp edi, 4
ja 0x42e54c
push ebx
call fcn.00431f30
add esp, 4
test eax, eax
jne 0x42dc32
push eax
mov eax, dword [ebx]
push dword [eax + 8]
push ebx
call fcn.004321f0
add esp, 0xc
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x9c]
test ecx, ecx
jne 0x42dc52
mov eax, dword [ebx]
cmp dword [eax + 8], 3
setge cl
lea ecx, [ecx*2 + 1]
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [ebp - 0xb8], eax
cmp eax, 3
jne 0x42dc89
cmp dword [ebx + 0x47ec], eax
je 0x42dc7c
cmp dword [ebx + 0x47e8], 0
jne 0x42dc89
cmp dword [ebx + 0x47e4], 0
jne 0x42dc89
mov edx, 1
mov dword [ebp - 0xbc], edx
jmp 0x42dc9a
xor edx, edx
mov dword [ebp - 0xbc], edx
cmp eax, 3
jne 0x42dd62
cmp ecx, 3
jge 0x42dd62
test edx, edx
jne 0x42dd62
mov dword [ebp - 0xb8], 1
mov ecx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea edi, [ebp - 0x88]
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
lea esi, [ebx + 0x46a0]
mov dword [ebp - 0xb0], ecx
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0xac], esi
mov eax, dword [ebx]
mov eax, dword [eax]
add eax, 3
push eax
call ecx
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
je 0x42e510
mov eax, dword [ebx + 0x4684]
cdq
idiv dword [esi]
mov dword [edi + 0x10], 0
mov dword [ebp - 0xa0], eax
mov dword [edi], eax
mov eax, dword [ebx + 0x4688]
cdq
idiv dword [esi + 4]
xor edx, edx
mov esi, eax
mov eax, dword [ebp - 0xa0]
mov ecx, esi
mov dword [edi + 4], esi
sar ecx, 1
dec eax
mov dword [edi + 0xc], ecx
mov ecx, dword [ebx]
add eax, dword [ecx]
mov ecx, dword [ebp - 0xa0]
div ecx
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x28]
mov dword [edi - 4], eax
mov dword [edi - 8], eax
cmp ecx, 1
jne 0x42dd94
cmp esi, ecx
jne 0x42dd88
mov eax, 0x42e580
jmp 0x42ddb7
test eax, eax
jg 0x42dcb5
push 0
push eax
push ebx
call fcn.004321f0
add esp, 0xc
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret
cmp esi, 2
jne 0x42dd94
mov eax, 0x43b2c0
jmp 0x42ddb7
cmp ecx, 2
jne 0x42ddb2
cmp esi, 1
jne 0x42dda5
mov eax, 0x43afa0
jmp 0x42ddb7
cmp esi, 2
jne 0x42ddb2
mov eax, dword [ebx + 0x4814]
jmp 0x42ddb7
mov eax, 0x43af50
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
add esi, 0x48
mov dword [edi - 0xc], eax
add edi, 0x20
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0xac], esi
mov dword [ebp - 0x98], eax
cmp eax, dword [ebp - 0xb8]
jl 0x42dce5
mov eax, dword [ebx]
mov edi, dword [ebp - 0x9c]
mov esi, dword [eax + 4]
mov ecx, dword [eax]
test edi, edi
js 0x42e510
test ecx, ecx
js 0x42e510
je 0x42de1a
mov eax, 0x7fffffff
cdq
idiv ecx
cmp edi, eax
jg 0x42e510
mov eax, ecx
imul eax, edi
mov dword [ebp - 0xa4], eax
test eax, eax
js 0x42e510
test esi, esi
js 0x42e510
je 0x42de4b
mov eax, 0x7fffffff
cdq
idiv esi
cmp dword [ebp - 0xa4], eax
jg 0x42e510
imul ecx, esi
mov eax, ecx
imul eax, edi
cmp eax, 0x7ffffffe
jg 0x42e510
imul ecx, edi
inc ecx
push ecx
call dword [ebp - 0xb0]
mov edi, eax
add esp, 4
mov eax, dword [ebx]
test edi, edi
je 0x42e512
xor ecx, ecx
mov dword [ebp - 0x98], ecx
cmp dword [eax + 4], ecx
jbe 0x42e4b8
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xac], edi
nop word [eax + eax]
mov esi, dword [eax]
imul esi, ecx
mov dword [ebp - 0xa4], 0
imul esi, edx
add esi, edi
cmp dword [ebp - 0xb8], 0
mov dword [ebp - 0xa8], esi
jbe 0x42dfa9
mov esi, dword [ebp - 0xac]
lea eax, [ebx + 0x46bc]
mov dword [ebp - 0xb0], eax
lea edi, [ebp - 0x7c]
mov ebx, eax
nop
mov eax, dword [edi - 8]
lea ecx, [edi - 0x10]
sar eax, 1
lea edx, [edi - 0x14]
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa0], edx
cmp dword [edi], eax
jl 0x42df07
mov eax, dword [edx]
mov edx, ecx
mov dword [ebp - 0xb0], ecx
jmp 0x42df1d
mov eax, ecx
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov eax, dword [ecx]
push dword [edi - 0xc]
push dword [edi - 4]
push eax
push dword [edx]
push dword [ebx + 0x18]
call dword [edi - 0x18]
mov edx, dword [ebp - 0xa4]
add esp, 0x14
mov dword [ebp + edx*4 - 0x14], eax
mov eax, dword [edi]
inc eax
mov dword [edi], eax
cmp eax, dword [edi - 8]
jl 0x42df70
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xa0]
inc dword [edi + 4]
mov dword [edi], 0
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [edi + 4]
cmp eax, dword [ebx]
jge 0x42df70
mov eax, dword [ebx + 4]
add eax, ecx
mov ecx, dword [ebp - 0xac]
mov dword [ecx], eax
inc edx
add edi, 0x20
add ebx, 0x48
mov dword [ebp - 0xa4], edx
cmp edx, dword [ebp - 0xb8]
jl 0x42dee0
mov ebx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xac], esi
mov eax, dword [ebx]
mov esi, dword [ebp - 0xa8]
cmp edx, 3
jl 0x42e1f6
mov ecx, dword [eax + 8]
cmp ecx, 3
jne 0x42e053
cmp dword [ebp - 0xbc], 0
je 0x42e036
xor edi, edi
cmp dword [eax], edi
jbe 0x42e49a
mov ecx, dword [ebp - 0x10]
add esi, 2
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0xa0], ebx
sub dword [ebp - 0xa0], ecx
mov ebx, dword [ebp - 0xc0]
mov dword [ebp - 0xa8], eax
nop word [eax + eax]
movzx eax, byte [eax + ecx]
lea ecx, [ecx + 1]
mov byte [esi - 2], al
inc edi
movzx eax, byte [ecx - 1]
mov byte [esi - 1], al
mov eax, dword [ebp - 0xa0]
movzx eax, byte [ecx + eax - 1]
mov byte [esi], al
mov byte [esi + 1], 0xff
add esi, edx
mov eax, dword [ebx]
cmp edi, dword [eax]
mov eax, dword [ebp - 0xa8]
jb 0x42e000
jmp 0x42e49a
push edx
push dword [eax]
mov eax, dword [ebx + 0x4810]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call eax
add esp, 0x18
jmp 0x42e494
cmp ecx, 4
jne 0x42e1cb
mov ecx, dword [ebx + 0x47e8]
test ecx, ecx
jne 0x42e123
mov dword [ebp - 0xa4], ecx
cmp dword [eax], ecx
jbe 0x42e49a
mov ecx, dword [ebp - 0x10]
lea edi, [esi + 2]
mov esi, dword [ebp - 8]
sub ecx, esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xa8], ecx
sub eax, esi
mov ecx, dword [ebp - 0xc]
sub ecx, esi
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], ecx
nop
movzx ecx, byte [esi + eax]
lea esi, [esi + 1]
movzx edx, byte [esi - 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 2], al
mov eax, dword [ebp - 0xa8]
movzx ecx, byte [esi + eax - 1]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 1], al
mov eax, dword [ebp - 0xb4]
movzx ecx, byte [esi + eax - 1]
imul ecx, edx
mov edx, dword [ebp - 0x9c]
mov byte [edi + 1], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xa4]
shr eax, 8
inc ecx
mov byte [edi], al
add edi, edx
mov eax, dword [ebx]
mov dword [ebp - 0xa4], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xb0]
jb 0x42e0a0
jmp 0x42e49a
mov eax, dword [eax]
mov edi, dword [ebx + 0x4810]
push edx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
cmp ecx, 2
jne 0x42e1c1
call edi
mov eax, dword [ebx]
xor edi, edi
add esp, 0x18
cmp dword [eax], edi
jbe 0x42e494
add esi, 2
mov eax, dword [ebp - 8]
movzx edx, byte [edi + eax]
inc edi
movzx eax, byte [esi - 2]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 2], al
movzx eax, byte [esi - 1]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi - 1], al
movzx eax, byte [esi]
not al
movzx ecx, al
imul ecx, edx
mov edx, dword [ebp - 0x9c]
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [esi], al
add esi, edx
mov eax, dword [ebx]
cmp edi, dword [eax]
jb 0x42e154
jmp 0x42e49a
call edi
add esp, 0x18
jmp 0x42e494
xor ecx, ecx
cmp dword [eax], ecx
jbe 0x42e49a
inc esi
mov eax, dword [ebp - 0x14]
mov al, byte [ecx + eax]
inc ecx
mov byte [esi + 1], al
mov byte [esi], al
mov byte [esi - 1], al
mov byte [esi + 2], 0xff
add esi, edx
mov eax, dword [ebx]
cmp ecx, dword [eax]
jb 0x42e1d6
jmp 0x42e49a
cmp dword [ebp - 0xbc], 0
je 0x42e2d5
mov eax, dword [eax]
xor edi, edi
cmp edx, 1
jne 0x42e26f
test eax, eax
je 0x42e4a0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc]
sub eax, edx
sub esi, edx
mov dword [ebp - 0xb4], eax
nop
movzx eax, byte [edx + eax]
lea edx, [edx + 1]
imul ecx, eax, 0x1d
inc edi
mov eax, dword [ebp - 0xa8]
movzx eax, byte [edx + eax - 1]
imul eax, eax, 0x96
add ecx, eax
movzx eax, byte [edx - 1]
imul eax, eax, 0x4d
add ecx, eax
shr ecx, 8
mov byte [edx + esi - 1], cl
mov eax, dword [ebx]
cmp edi, dword [eax]
mov eax, dword [ebp - 0xb4]
jb 0x42e230
jmp 0x42e494
test eax, eax
je 0x42e4a0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc]
sub eax, edx
mov dword [ebp - 0xb4], eax
movzx eax, byte [edx + eax]
lea edx, [edx + 1]
imul ecx, eax, 0x1d
lea esi, [esi + 2]
mov eax, dword [ebp - 0xa8]
inc edi
movzx eax, byte [edx + eax - 1]
imul eax, eax, 0x96
add ecx, eax
movzx eax, byte [edx - 1]
imul eax, eax, 0x4d
mov byte [esi - 1], 0xff
add ecx, eax
shr ecx, 8
mov byte [esi - 2], cl
mov eax, dword [ebx]
cmp edi, dword [eax]
mov eax, dword [ebp - 0xb4]
jb 0x42e290
jmp 0x42e494
cmp dword [eax + 8], 4
jne 0x42e452
mov ecx, dword [ebx + 0x47e8]
test ecx, ecx
jne 0x42e3e0
mov dword [ebp - 0xa4], ecx
cmp dword [eax], ecx
jbe 0x42e49a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0xa8], eax
sub edi, ecx
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb4], eax
nop word [eax + eax]
movzx edi, byte [ecx + edi]
movzx eax, byte [ecx]
mov edx, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xb4]
imul edi, eax
movzx ecx, byte [ecx + edx]
mov edx, dword [ebp - 0xa0]
imul ecx, eax
sub edi, 0xffffff80
movzx edx, byte [edx + ebx]
imul edx, eax
sub ecx, 0xffffff80
mov ebx, dword [ebp - 0xc0]
mov eax, ecx
mov byte [esi + 1], 0xff
shr eax, 8
add eax, ecx
shr eax, 8
sub edx, 0xffffff80
movzx eax, al
imul ecx, eax, 0x96
mov eax, edx
shr eax, 8
add eax, edx
mov edx, dword [ebp - 0x9c]
shr eax, 8
movzx eax, al
imul eax, eax, 0x1d
add ecx, eax
mov eax, edi
shr eax, 8
add eax, edi
mov edi, dword [ebp - 0xa4]
shr eax, 8
inc edi
movzx eax, al
imul eax, eax, 0x4d
mov dword [ebp - 0xa4], edi
add ecx, eax
shr ecx, 8
mov byte [esi], cl
add esi, edx
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xa0]
inc ecx
mov dword [ebp - 0xa0], ecx
cmp edi, dword [eax]
mov edi, dword [ebp - 0xb0]
jb 0x42e330
jmp 0x42e49a
cmp ecx, 2
jne 0x42e452
cmp dword [eax], 0
mov dword [ebp - 0xa4], 0
jbe 0x42e49a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
sub eax, edx
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], eax
nop dword [eax]
mov al, byte [edx + eax]
lea edx, [edx + 1]
not al
movzx ecx, al
movzx eax, byte [edx - 1]
imul ecx, eax
mov byte [esi + 1], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xa4]
shr eax, 8
inc ecx
mov byte [esi], al
add esi, edi
mov eax, dword [ebx]
mov dword [ebp - 0xa4], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa8]
jb 0x42e410
jmp 0x42e494
mov eax, dword [eax]
xor ecx, ecx
cmp edx, 1
jne 0x42e476
test eax, eax
je 0x42e49a
mov edi, dword [ebp - 0x14]
sub edi, esi
mov al, byte [edi + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
inc ecx
mov eax, dword [ebx]
cmp ecx, dword [eax]
jb 0x42e464
jmp 0x42e49a
test eax, eax
je 0x42e49a
mov edx, dword [ebp - 0x14]
nop dword [eax]
mov al, byte [ecx + edx]
lea esi, [esi + 2]
mov byte [esi - 2], al
inc ecx
mov byte [esi - 1], 0xff
mov eax, dword [ebx]
cmp ecx, dword [eax]
jb 0x42e480
mov edx, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebx]
inc ecx
mov edi, dword [ebp - 0xac]
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax + 4]
jb 0x42dea0
push 0
push dword [eax + 8]
push ebx
call fcn.004321f0
mov eax, dword [ebx]
add esp, 0xc
mov ecx, dword [ebp - 0xc4]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x42e4fd
mov ecx, dword [ebx]
xor edx, edx
cmp dword [ecx + 8], 3
setge dl
lea edx, [edx*2 + 1]
mov dword [eax], edx
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
push 0
push dword [eax + 8]
push ebx
call fcn.004321f0
mov ecx, dword [0x4ba108]
add esp, 0xc
mov eax, dword fs:[0x2c]
pop esi
mov eax, dword [eax + ecx*4]
pop edi
pop ebx
mov dword [eax + 0xc], str.Out_of_memory
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489aa9
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ba108]
mov eax, dword fs:[0x2c]
pop edi
pop ebx
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax + 0xc], str.Internal_error
xor eax, eax
call fcn.00489aa9
mov esp, ebp
pop ebp
ret