Function at 0x1007cf20
Capabilities:
Encrypt data using rc4 ksa
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101e6b6c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x102b7ffc
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0x104], eax
call fcn.10124b2c
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1007cf8d
push eax
push 0x80
lea eax, [ebp - 0xcc]
push 1
push eax
call fcn.10135779
add esp, 0x10
jmp 0x1007cfa5
mov eax, dword [ebx + 0x14]
lea edi, [ebp - 0xcc]
mov esi, eax
mov ecx, 0x20
sub eax, 0xffffff80
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x14], eax
cmp dword [ebp - 0xcc], 0x20534444
jne 0x1007d71a
cmp dword [ebp - 0xc8], 0x7c
jne 0x1007d71a
mov eax, dword [ebp - 0xc4]
and eax, 0x1007
cmp eax, 0x1007
jne 0x1007d71a
cmp dword [ebp - 0x80], 0x20
jne 0x1007d71a
mov edx, dword [ebp - 0x7c]
test dl, 0x44
je 0x1007d71a
mov eax, dword [ebp - 0x60]
test eax, 0x1000
je 0x1007d71a
mov edi, dword [ebp - 0xbc]
mov esi, edx
mov ecx, dword [ebp - 0xc0]
and edx, 1
shr esi, 2
and esi, 1
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 4
test eax, 0x400000
je 0x1007d039
cmp dword [ebp - 0xb0], 1
mov dword [ebp - 0xd8], 1
ja 0x1007d043
mov dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0x5c]
xor ecx, ecx
cmp edi, dword [ebp - 0xc0]
sete cl
shr eax, 9
and ecx, eax
lea eax, [ecx*4 + 1]
add eax, ecx
lea ecx, [edi + 3]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xc0]
add eax, 3
shr ecx, 2
shr eax, 2
imul eax, ecx
mov dword [ebp - 0x108], ecx
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xe4]
mov dword [eax], edi
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x100]
mov eax, dword [ebx + 8]
mov dword [ecx], eax
test esi, esi
je 0x1007d485
mov esi, dword [ebp - 0x78]
shr esi, 0x18
mov dword [ebp - 0xfc], esi
cmp esi, 0x31
jb 0x1007d71a
cmp esi, 0x35
ja 0x1007d71a
mov eax, dword [ebx]
imul eax, dword [ebp - 0xd4]
imul eax, dword [ebx + 4]
shl eax, 2
push eax
mov dword [ebp - 0xe0], eax
call fcn.101365ad
mov ecx, dword [ebp - 0xd4]
mov edi, eax
xor eax, eax
mov dword [ebp - 0xd0], edi
add esp, 4
mov dword [ebp - 0xe8], eax
test ecx, ecx
je 0x1007d5df
nop word [eax + eax]
xor ecx, ecx
mov dword [ebp - 0xe4], ecx
cmp dword [ebp - 0xdc], ecx
jle 0x1007d356
mov eax, ecx
mov esi, 4
cdq
idiv dword [ebp - 0x108]
mov eax, ecx
mov dword [ebp - 0xec], esi
mov edi, edx
mov ecx, dword [ebp - 0xfc]
cdq
idiv dword [ebp - 0x108]
shl edi, 2
shl eax, 2
mov dword [ebp - 0xf8], eax
cmp ecx, 0x31
jne 0x1007d1aa
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1007d184
push ecx
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.10135779
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10081f10
jmp 0x1007d28b
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], eax
lea eax, [edx + 8]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 8], ecx
push eax
call fcn.10081f10
jmp 0x1007d28b
mov eax, dword [ebx + 0x10]
cmp ecx, 0x34
jae 0x1007d215
test eax, eax
je 0x1007d1c9
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.10135779
add esp, 0x10
jmp 0x1007d1dd
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], eax
lea eax, [edx + 8]
mov dword [ebp - 8], ecx
mov dword [ebx + 0x14], eax
xor edx, edx
nop
mov eax, edx
movzx ecx, dl
sar eax, 3
and ecx, 7
movzx eax, byte [ebp + eax - 0xc]
shr eax, cl
and eax, 0xf
imul eax, eax, 0xff
add eax, 8
mov ecx, eax
shr ecx, 4
add ecx, eax
shr ecx, 4
mov byte [ebp + edx - 0x49], cl
add edx, esi
cmp edx, 0x3d
jl 0x1007d1e0
jmp 0x1007d250
test eax, eax
je 0x1007d22c
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.10135779
add esp, 0x10
jmp 0x1007d240
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], eax
lea eax, [edx + 8]
mov dword [ebp - 8], ecx
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.10082100
add esp, 8
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1007d26a
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.10135779
add esp, 0x10
jmp 0x1007d27e
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xc], eax
lea eax, [edx + 8]
mov dword [ebx + 0x14], eax
mov dword [ebp - 8], ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.100822b0
mov ecx, dword [ebx]
lea eax, [edi + 4]
add esp, 8
cmp eax, ecx
jbe 0x1007d29b
mov esi, ecx
sub esi, edi
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebx + 4]
add eax, 4
cmp eax, edx
jbe 0x1007d2bd
sub edx, dword [ebp - 0xf8]
mov dword [ebp - 0xec], edx
test edx, edx
jle 0x1007d331
jmp 0x1007d2c3
mov edx, dword [ebp - 0xec]
lea eax, [ecx*4]
mov dword [ebp - 0x10c], eax
lea ebx, [esi*4]
mov eax, ecx
lea esi, [ebp - 0x4c]
imul eax, dword [ebp - 0xe8]
add eax, dword [ebp - 0xf8]
imul eax, ecx
mov ecx, dword [ebp - 0xd0]
add eax, edi
lea edi, [ecx + eax*4]
mov eax, dword [ebp - 0x10c]
nop dword [eax]
test ebx, ebx
jle 0x1007d31b
push ebx
push esi
push edi
call fcn.101294d0
mov eax, dword [ebp - 0x10c]
add esp, 0xc
mov edx, dword [ebp - 0xec]
add edi, eax
add esi, 0x10
sub edx, 1
mov dword [ebp - 0xec], edx
jne 0x1007d300
mov ebx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0xe4]
inc ecx
mov dword [ebp - 0xe4], ecx
cmp ecx, dword [ebp - 0xdc]
jl 0x1007d124
mov esi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xe8]
cmp dword [ebp - 0xd8], 0
je 0x1007d3d1
xor eax, eax
cmp esi, 0x31
setne al
cmp dword [ebp - 0xb0], 1
lea eax, [eax*8 + 8]
mov dword [ebp - 0xe4], eax
jbe 0x1007d3cb
mov esi, 3
mov edi, eax
mov edx, dword [ebx]
mov ecx, esi
mov eax, dword [ebx + 4]
shr edx, cl
shr eax, cl
cmp edx, 1
mov ecx, 1
cmovl edx, ecx
cmp eax, ecx
cmovl eax, ecx
mov ecx, edi
imul ecx, eax
mov eax, dword [ebx + 0x10]
imul ecx, edx
test eax, eax
je 0x1007d3bc
push 1
push ecx
push eax
call fcn.10135b48
add esp, 0xc
jmp 0x1007d3bf
add dword [ebx + 0x14], ecx
inc esi
lea eax, [esi - 2]
cmp eax, dword [ebp - 0xb0]
jb 0x1007d384
mov eax, dword [ebp - 0xe8]
mov esi, dword [ebp - 0xfc]
inc eax
mov dword [ebp - 0xe8], eax
cmp eax, dword [ebp - 0xd4]
jl 0x1007d110
mov edi, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebx + 4]
imul eax, ecx
mov ecx, dword [ebp - 0xf4]
mov dword [ebx + 4], eax
mov dword [ecx], eax
xor ecx, ecx
mov edx, dword [ebx + 8]
cmp edx, 4
jne 0x1007d433
mov eax, 3
cmp esi, eax
jle 0x1007d433
test ecx, ecx
jne 0x1007d433
cmp byte [eax + edi], 0xff
sbb ecx, ecx
add eax, 4
neg ecx
cmp eax, esi
jl 0x1007d420
mov esi, dword [ebp - 0x104]
lea eax, [esi - 1]
cmp eax, 3
ja 0x1007d5ea
cmp esi, edx
je 0x1007d703
push dword [ebx + 4]
push dword [ebx]
push esi
push edx
push edi
call fcn.1007bf20
mov ecx, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xd0], eax
mov eax, dword [ebx + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
mov dword [ebx + 8], 3
mov eax, 3
test edx, edx
je 0x1007d4a1
mov dword [ebx + 8], 4
mov eax, 4
mov dword [ecx], eax
mov esi, dword [ebx + 8]
imul esi, dword [ebx]
imul esi, dword [ebp - 0xd4]
imul esi, dword [ebx + 4]
push esi
mov dword [ebp - 0xe0], esi
call fcn.101365ad
xor ecx, ecx
add esp, 4
mov edi, eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd0], edi
cmp dword [ebp - 0xd4], ecx
jbe 0x1007d5a7
nop
mov esi, dword [ebx + 8]
imul esi, dword [ebx]
imul esi, dword [ebx + 4]
mov eax, esi
imul eax, ecx
mov ecx, dword [ebx + 0x10]
add eax, edi
test ecx, ecx
je 0x1007d507
push ecx
push esi
push 1
push eax
call fcn.10135779
add esp, 0x10
jmp 0x1007d517
push esi
push dword [ebx + 0x14]
push eax
call fcn.101294d0
add esp, 0xc
add dword [ebx + 0x14], esi
cmp dword [ebp - 0xd8], 0
je 0x1007d588
mov edi, 1
cmp dword [ebp - 0xb0], edi
jbe 0x1007d582
lea eax, [ebx + 0x14]
mov esi, dword [ebx]
mov ecx, edi
mov edx, dword [ebx + 4]
shr esi, cl
shr edx, cl
lea ecx, [ebx + 0x14]
cmp esi, 1
jge 0x1007d54a
mov esi, 1
mov eax, ecx
cmp edx, 1
jge 0x1007d556
mov edx, 1
mov eax, ecx
mov ecx, dword [ebx + 8]
imul ecx, edx
mov edx, dword [ebx + 0x10]
imul ecx, esi
test edx, edx
je 0x1007d577
push 1
push ecx
push edx
call fcn.10135b48
add esp, 0xc
lea eax, [ebx + 0x14]
jmp 0x1007d579
add dword [eax], ecx
inc edi
cmp edi, dword [ebp - 0xb0]
jb 0x1007d530
mov edi, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xdc]
inc ecx
mov dword [ebp - 0xdc], ecx
cmp ecx, dword [ebp - 0xd4]
jl 0x1007d4e0
mov esi, dword [ebp - 0xe0]
xor edx, edx
test esi, esi
jle 0x1007d3f6
mov esi, dword [ebx + 8]
mov ebx, dword [ebp - 0xe0]
nop word [eax + eax]
mov cl, byte [edx + edi]
mov al, byte [edx + edi + 2]
mov byte [edx + edi], al
mov byte [edx + edi + 2], cl
add edx, esi
cmp edx, ebx
jl 0x1007d5c0
mov ebx, dword [ebp - 0xf0]
jmp 0x1007d3f0
mov esi, dword [ebp - 0xe0]
jmp 0x1007d3fc
test ecx, ecx
jne 0x1007d703
cmp edx, 4
jne 0x1007d703
mov esi, dword [ebx]
mov eax, esi
mov ecx, dword [ebx + 4]
imul eax, ecx
mov dword [ebp - 0xd8], ecx
lea eax, [eax + eax*2]
push eax
call fcn.101365ad
mov edx, eax
add esp, 4
mov dword [ebp - 0xdc], edx
test edx, edx
jne 0x1007d663
push edi
call fcn.10136592
mov ecx, dword [ebp - 0x100]
add esp, 4
mov dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [0x101e8bb0], 0x1018bad0
pop edi
pop esi
mov dword [ecx], 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd8]
test eax, eax
jle 0x1007d6dd
mov ebx, dword [ebp - 0xd0]
lea ecx, [esi - 1]
mov dword [ebp - 0x104], ecx
mov edi, edx
lea ecx, [esi + esi*2]
mov dword [ebp - 0xf0], ecx
lea ecx, [esi*4]
mov dword [ebp - 0xf4], ecx
mov esi, dword [ebp - 0x104]
mov ecx, ebx
mov edx, edi
test esi, esi
js 0x1007d6c6
sub esi, 1
movzx eax, byte [ecx]
mov byte [edx], al
lea ecx, [ecx + 4]
movzx eax, byte [ecx - 3]
lea edx, [edx + 3]
mov byte [edx - 2], al
movzx eax, byte [ecx - 2]
mov byte [edx - 1], al
jns 0x1007d6a2
mov eax, dword [ebp - 0xd8]
add ebx, dword [ebp - 0xf4]
add edi, dword [ebp - 0xf0]
sub eax, 1
mov dword [ebp - 0xd8], eax
jne 0x1007d694
push dword [ebp - 0xd0]
call fcn.10136592
mov ecx, dword [ebp - 0x100]
add esp, 4
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd0], eax
mov dword [ecx], 3
mov eax, dword [ebp - 0xd0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10124b5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10124b5e
mov esp, ebp
pop ebp
ret