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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x73dd74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x743103
mov dword [ebp - 0xe0], 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 - 0x108], eax
call fcn.00442547
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x43030e
push eax
push 0x80
lea eax, [ebp - 0xcc]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
jmp 0x430326
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 0x430a79
cmp dword [ebp - 0xc8], 0x7c
jne 0x430a79
mov eax, dword [ebp - 0xc4]
and eax, 0x1007
cmp eax, 0x1007
jne 0x430a79
cmp dword [ebp - 0x80], 0x20
jne 0x430a79
mov edx, dword [ebp - 0x7c]
test dl, 0x44
je 0x430a79
mov eax, dword [ebp - 0x60]
test eax, 0x1000
je 0x430a79
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 0x4303ba
cmp dword [ebp - 0xb0], 1
mov dword [ebp - 0xd8], 1
ja 0x4303c4
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 - 0x104], ecx
mov ecx, dword [ebp - 0xf4]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe0]
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 0x43076a
mov esi, dword [ebp - 0x78]
shr esi, 0x18
mov dword [ebp - 0xfc], esi
cmp esi, 0x31
jb 0x430a79
cmp esi, 0x35
ja 0x430a79
mov eax, dword [ebx]
imul eax, dword [ebp - 0xd4]
imul eax, dword [ebx + 4]
shl eax, 2
push eax
mov dword [ebp - 0xdc], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ecx, ecx
add esp, 4
mov edi, eax
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xd0], edi
cmp dword [ebp - 0xd4], ecx
jbe 0x4308ac
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe4], eax
jle 0x4306ca
cdq
mov esi, 4
idiv dword [ebp - 0x104]
mov ecx, dword [ebp - 0xfc]
shl eax, 2
mov dword [ebp - 0xf8], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xe8], esi
lea edi, [edx*4]
cmp ecx, 0x31
jne 0x430522
test eax, eax
je 0x4304fc
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00435170
jmp 0x430602
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00435170
jmp 0x430602
cmp ecx, 0x34
jae 0x43058a
test eax, eax
je 0x43053f
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
jmp 0x430553
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
xor edx, edx
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 0x430555
jmp 0x4305c6
test eax, eax
je 0x4305a2
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
jmp 0x4305b6
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00435340
add esp, 8
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4305e1
push eax
push 8
lea eax, [ebp - 0xc]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
jmp 0x4305f5
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
lea eax, [ecx + 8]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00435500
mov ecx, dword [ebx]
lea eax, [edi + 4]
add esp, 8
cmp eax, ecx
jbe 0x430612
mov esi, ecx
sub esi, edi
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebx + 4]
add eax, 4
cmp eax, edx
jbe 0x430634
sub edx, dword [ebp - 0xf8]
mov dword [ebp - 0xe8], edx
test edx, edx
jle 0x4306a5
jmp 0x43063a
mov edx, dword [ebp - 0xe8]
lea eax, [ecx*4]
mov dword [ebp - 0x10c], eax
lea ebx, [esi*4]
mov eax, ecx
lea esi, [ebp - 0x4c]
imul eax, dword [ebp - 0xec]
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]
test ebx, ebx
jle 0x43068f
push ebx
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x10c]
add esp, 0xc
mov edx, dword [ebp - 0xe8]
add edi, eax
add esi, 0x10
sub edx, 1
mov dword [ebp - 0xe8], edx
jne 0x430674
mov ebx, dword [ebp - 0xf0]
mov eax, dword [ebp - 0xe0]
inc eax
mov dword [ebp - 0xe0], eax
cmp eax, dword [ebp - 0xe4]
jl 0x4304a4
mov esi, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xec]
cmp dword [ebp - 0xd8], 0
je 0x430746
xor eax, eax
cmp esi, 0x31
setne al
cmp dword [ebp - 0xb0], 1
lea eax, [eax*8 + 8]
mov dword [ebp - 0xe0], eax
jbe 0x430746
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 0x430731
push 1
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
jmp 0x430734
add dword [ebx + 0x14], ecx
inc esi
lea eax, [esi - 2]
cmp eax, dword [ebp - 0xb0]
jb 0x4306f8
mov ecx, dword [ebp - 0xec]
mov esi, dword [ebp - 0xfc]
inc ecx
mov dword [ebp - 0xec], ecx
cmp ecx, dword [ebp - 0xd4]
jl 0x430490
mov edi, dword [ebp - 0xd0]
jmp 0x4308ac
mov dword [ebx + 8], 3
mov eax, 3
test edx, edx
je 0x430786
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 - 0xdc], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ecx, ecx
add esp, 4
mov edi, eax
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xd0], edi
cmp dword [ebp - 0xd4], ecx
jbe 0x430883
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 0x4307ed
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
jmp 0x4307fd
push esi
push dword [ebx + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [ebx + 0x14], esi
cmp dword [ebp - 0xd8], 0
je 0x430864
mov esi, 1
cmp dword [ebp - 0xb0], esi
jbe 0x430864
mov edi, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, esi
shr edx, cl
mov eax, edi
shr eax, cl
cmp edx, 1
mov ecx, 1
cmovl edx, ecx
cmp eax, ecx
cmovl eax, ecx
mov ecx, dword [ebx + 8]
imul ecx, eax
mov eax, dword [ebx + 0x10]
imul ecx, edx
test eax, eax
je 0x430852
push 1
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov edi, dword [ebx + 4]
add esp, 0xc
jmp 0x430855
add dword [ebx + 0x14], ecx
inc esi
cmp esi, dword [ebp - 0xb0]
jb 0x430816
mov edi, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xe4]
inc ecx
mov dword [ebp - 0xe4], ecx
cmp ecx, dword [ebp - 0xd4]
jl 0x4307c5
mov esi, dword [ebp - 0xdc]
xor edx, edx
test esi, esi
jle 0x4308b2
mov esi, dword [ebx + 8]
mov ebx, dword [ebp - 0xdc]
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 0x430892
mov ebx, dword [ebp - 0xf0]
mov esi, dword [ebp - 0xdc]
mov eax, dword [ebx + 4]
imul eax, dword [ebp - 0xd4]
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 0x4308f3
mov eax, 3
cmp esi, eax
jle 0x4308f3
nop word [eax + eax]
test ecx, ecx
jne 0x4308f3
cmp byte [eax + edi], 0xff
sbb ecx, ecx
add eax, 4
neg ecx
cmp eax, esi
jl 0x4308e0
mov esi, dword [ebp - 0x108]
lea eax, [esi - 1]
cmp eax, 3
ja 0x430941
cmp esi, edx
je 0x430a62
push dword [ebx + 4]
push dword [ebx]
push esi
push edx
push edi
call fcn.0042f390
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.00442579
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x430a62
cmp edx, 4
jne 0x430a62
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 dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, eax
add esp, 4
mov dword [ebp - 0xf0], edx
test edx, edx
jne 0x4309bc
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x100]
add esp, 4
mov dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [0x73e710], 0x71c0f8
pop edi
pop esi
mov dword [ecx], 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442579
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd8]
test eax, eax
jle 0x430a3b
mov ebx, dword [ebp - 0xd0]
lea ecx, [esi - 1]
mov dword [ebp - 0x108], ecx
mov edi, edx
lea ecx, [esi + esi*2]
mov dword [ebp - 0xf4], ecx
lea ecx, [esi*4]
mov dword [ebp - 0x104], ecx
nop dword [eax]
mov esi, dword [ebp - 0x108]
mov ecx, ebx
mov edx, edi
test esi, esi
js 0x430a24
nop
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 0x430a00
mov eax, dword [ebp - 0xd8]
add ebx, dword [ebp - 0x104]
add edi, dword [ebp - 0xf4]
sub eax, 1
mov dword [ebp - 0xd8], eax
jne 0x4309f0
push dword [ebp - 0xd0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [ebp - 0x100]
add esp, 4
mov eax, dword [ebp - 0xf0]
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.00442579
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.00442579
mov esp, ebp
pop ebp
ret