Function at 0x100a5de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x100a5e05
push 0x101e48e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x101e4900
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx ecx, byte [0x101de7a0]
test ecx, ecx
jne 0x100a5fe6
mov dword [ebp - 0xc], 0x101e41d8
mov dword [ebp - 0x1c], 0x101e3fd8
mov dword [ebp - 0x18], fcn.101153c0
mov edx, dword [0x101db61c]
mov dword [ebp - 0x50], edx
mov eax, dword [0x101e43dc]
movzx ecx, word [eax + 0x16]
mov edx, dword [0x101d5b24]
sub edx, ecx
add edx, dword [ebp - 0x50]
mov dword [ebp - 0x14], edx
mov eax, dword [0x101e43dc]
movzx ecx, word [eax + 0x16]
add ecx, dword [0x101d5d24]
mov edx, dword [0x101e43d8]
movzx eax, word [edx + 0x16]
add ecx, eax
mov dword [ebp - 0x10], ecx
call fcn.100d8150
mov ecx, dword [0x101e47d4]
lea edx, [eax + ecx + 0x5d3e4c2b]
mov dword [ebp - 8], edx
mov eax, dword [0x101e47d0]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
je 0x100a5ec2
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x100a5ec2
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov eax, dword [edx]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
jmp 0x100a5e9e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
je 0x100a5ef5
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
je 0x100a5ef5
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
jmp 0x100a5ed1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
je 0x100a5f28
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x100a5f28
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [edx]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x30]
add eax, 4
mov dword [ebp - 0x30], eax
jmp 0x100a5f04
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x100a5f70
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x100a5f70
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp - 0x34], eax
jmp 0x100a5f4c
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
je 0x100a5fa3
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
je 0x100a5fa3
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x38]
add eax, 4
mov dword [ebp - 0x38], eax
jmp 0x100a5f7f
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x2c]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
je 0x100a5fd6
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x100a5fd6
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
add eax, 4
mov dword [ebp - 0x3c], eax
jmp 0x100a5fb2
mov ecx, dword [ebp - 0x20]
mov dword [0x101de79c], ecx
mov byte [0x101de7a0], 1
mov edx, dword [0x101e4208]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x100a601c
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
je 0x100a601c
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov eax, dword [edx]
sub eax, dword [0x101e47d0]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
add eax, 4
mov dword [ebp - 0x40], eax
jmp 0x100a5ff5
mov ecx, dword [0x101db61c]
mov dword [ebp - 0x54], ecx
push 0
mov edx, dword [0x101d5d28]
push edx
mov eax, dword [ebp - 0x54]
add eax, dword [0x101d5b28]
push eax
mov ecx, dword [0x101de79c]
or eax, 0x101de79c
push ecx
call fcn.100f0ed0
add esp, 0x10
mov edx, dword [0x101e4208]
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
je 0x100a607d
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
je 0x100a607d
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, dword [0x101e47d0]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
add eax, 4
mov dword [ebp - 0x44], eax
jmp 0x100a6056
xchg esi, edi
nop
xchg esi, edi
pop ecx
wait
sbb al, 0x69
xchg ebp, eax
jle 0x100a6039
leave
pop edi
fidiv word [esi]
jne 0x100a60ea
mov cs, word [ebx - 0x62]
jp 0x100a60ce
fimul dword [eax + 0x6d]
or al, 0x6c
outsd dx, dword [esi]
push edi
retf
sub al, 0x1b
inc eax
and eax, 0x3b771218
xor byte [esi - 0x15], al
hlt
cmp esi, dword [eax]
inc esi
jmp 0x100a60c7
mov ecx, 0xcc12a5b1
add al, 0x7e
and ah, byte [edi - 0x469a09a2]
add eax, esp
and byte [ecx + 0x2c], 0xf2
or bh, byte [esi + 0x5e]
cmp ch, byte [ebx]
or byte [ebx - 0x20], dh
lahf
mul byte [ebx]
sub dword [esi + 0x65c9078a], 0xd6aa0911
xchg ebx, eax
mov dh, bh
jb 0x100a6168
lahf
scasd eax, dword es:[edi]
adc al, 0x81
mov dword [ebp - 4], edx
jmp 0x100a6124
mov ecx, dword [0x101e4208]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
je 0x100a615a
mov edx, dword [ebp - 0x48]
cmp dword [edx], 0
je 0x100a615a
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov edx, dword [ecx]
sub edx, dword [0x101e47d0]
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
add edx, 4
mov dword [ebp - 0x48], edx
jmp 0x100a6133
mov eax, dword [0x101db61c]
mov dword [ebp - 0x60], eax
push 1
mov ecx, dword [0x101d5d28]
push ecx
mov edx, dword [ebp - 0x60]
add edx, dword [0x101d5b28]
push edx
mov eax, dword [0x101de79c]
push eax
call fcn.100f0ed0
sbb eax, 0x558b5110
mov al, byte [0x5b281503]
sbb eax, 0x9ca15210
out 0x1d, eax
adc byte [eax - 0x18], dl
push eax
lodsd eax, dword [esi]
add al, 0
add esp, 0x10
mov ecx, dword [0x101e4208]
mov dword [ebp - 0x4c], ecx
cmp dword [ebp - 0x4c], 0
je 0x100a61b9
mov edx, dword [ebp - 0x4c]
cmp dword [edx], 0
je 0x100a61b9
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx]
add edx, dword [0x101e47d0]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov dword [ecx], edx
mov edx, dword [ebp - 0x4c]
add edx, 4
mov dword [ebp - 0x4c], edx
jmp 0x100a6192
push 0x101e4900
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
test eax, eax
je 0x100a61d8
push 0x101e48e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8