Function at 0x40c18e
Capabilities:
Encrypt data using rc4 ksa
Enumerate pe sections
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x6ccd44]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 4
mov esi, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
cmp edx, edi
jge 0x40c1ca
xor eax, eax
jmp 0x40c86d
push ecx
mov edx, eax
xor ecx, ecx
call fcn.0040bf7b
movzx eax, word [esi]
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
pop ecx
push eax
call edi
movzx eax, ax
mov dword [esp + 0x20], eax
movzx eax, word [esi + 2]
push eax
call edi
movzx edi, ax
mov eax, edi
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jg 0x40c1c3
mov eax, dword [esp + 0x20]
movzx eax, ax
cmp eax, 0x55
ja 0x40c7f6
je 0x40c7cf
cmp eax, 0xb
ja 0x40c5a7
je 0x40c595
sub eax, 1
je 0x40c57b
sub eax, 1
je 0x40c404
sub eax, 3
je 0x40c395
sub eax, 1
jne 0x40c869
push 4
pop eax
cmp di, ax
jne 0x40c869
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 7
call esi
push 8
mov word [esp + 0x24], ax
call esi
mov word [esp + 0x22], ax
movzx eax, word [0x72a1ec]
push eax
call esi
mov word [esp + 0x24], ax
movzx eax, word [0x72a230]
push eax
call esi
mov edi, dword [esp + 8]
mov esi, dword [esp + 0xc]
push edi
mov word [esp + 0x2a], ax
lea eax, [esp + 0x24]
push 8
push eax
call esi
add esp, 0xc
mov edx, edi
mov ecx, esi
call fcn.0040bdca
mov ecx, dword [0x72a208]
test ecx, ecx
jne 0x40c354
mov eax, dword [0x72a224]
mov edi, 0x219
push edi
push 0x6d2104
shl eax, 2
push 1
push eax
call fcn.005e7f10
mov ecx, eax
add esp, 0x10
mov dword [0x72a208], ecx
test ecx, ecx
je 0x40c87e
mov edx, dword [0x72a224]
xor esi, esi
test edx, edx
jle 0x40c869
inc edi
mov eax, dword [0x72a22c]
push edi
push 0x6d2188
shl eax, 3
push 1
push eax
call fcn.005e7f10
mov ecx, dword [0x72a208]
add esp, 0x10
mov dword [ecx + esi*4], eax
test eax, eax
je 0x40c327
mov edx, dword [0x72a224]
inc esi
cmp esi, edx
jl 0x40c2f4
jmp 0x40c35a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6d21a8
push esi
push edi
xor ecx, ecx
call fcn.00488a50
add esp, 0xc
push edi
push 0x6d21c8
push 0x6d21e8
jmp 0x40c8a6
mov edx, dword [0x72a224]
test edx, edx
jle 0x40c869
mov edi, dword [0x72a22c]
push 4
pop eax
xor esi, esi
test edi, edi
jle 0x40c389
mov eax, dword [ecx]
mov dword [eax + esi*8], 0xff
mov eax, dword [ecx]
mov byte [eax + esi*8 + 4], 0
inc esi
cmp esi, edi
jl 0x40c371
push 4
pop eax
add ecx, eax
sub edx, 1
jne 0x40c36b
jmp 0x40c869
cmp edi, 0xa
jb 0x40c3bf
movzx eax, word [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x72a20c]
movzx edx, ax
lea eax, [edx - 0x14]
cmp eax, 0x1374
cmovbe ecx, edx
mov dword [0x72a20c], ecx
cmp edi, 8
jb 0x40c3e9
movzx eax, word [esi + 6]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [0x6d23d8]
movzx edx, ax
lea eax, [edx - 0x40]
cmp eax, 0xfc0
cmovbe ecx, edx
mov dword [0x6d23d8], ecx
cmp edi, 6
jb 0x40c869
movsx edx, byte [esi + 5]
movsx ecx, byte [esi + 4]
call fcn.0040e8bb
jmp 0x40c869
push 0xc
pop eax
cmp edi, 0xa
je 0x40c415
cmp di, ax
jne 0x40c869
movzx eax, word [esi + 6]
push eax
mov dword [0x72a1d4], 1
call dword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x6d23dc]
movzx eax, ax
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movzx eax, word [esi + 8]
push eax
mulsd xmm1, qword [0x6bb3f8]
divsd xmm1, xmm0
movsd qword [esp + 0x24], xmm1
call dword [sym.imp.WS2_32.dll_ntohs]
movd xmm0, dword [0x6d23dc]
mov edx, dword [0x72a218]
movzx eax, ax
cvtdq2pd xmm0, xmm0
push 0xc
movd xmm4, eax
cvtdq2pd xmm4, xmm4
mov eax, dword [0x72a214]
sub eax, dword [0x72a1d8]
movd xmm1, edx
mulsd xmm4, qword [0x6bb3f8]
cvtdq2pd xmm1, xmm1
divsd xmm4, xmm0
movd xmm0, dword [0x72a200]
cvtdq2pd xmm0, xmm0
movd xmm5, eax
divsd xmm1, xmm0
mov eax, dword [0x72a204]
sub eax, dword [0x72a234]
movd xmm0, dword [0x72a1f0]
cvtdq2pd xmm5, xmm5
cvtdq2pd xmm0, xmm0
andps xmm5, xmmword [0x6bb550]
addsd xmm5, qword [esp + 0x24]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
pop eax
mulsd xmm5, xmm1
movd xmm1, dword [0x72a1f8]
andps xmm6, xmmword [0x6bb550]
addsd xmm6, xmm4
mulsd xmm5, qword [0x6bb418]
cvtdq2pd xmm1, xmm1
movsd qword [esp + 0x20], xmm5
divsd xmm1, xmm0
mulsd xmm6, xmm1
mulsd xmm6, qword [0x6bb418]
movsd qword [esp + 0x18], xmm6
cmp di, ax
jne 0x40c547
movzx eax, word [esi + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [0x72a218]
movsd xmm5, qword [esp + 0x20]
movsd xmm6, qword [esp + 0x18]
movzx eax, ax
jmp 0x40c549
xor eax, eax
movd xmm2, dword [0x72a1f8]
cvtdq2pd xmm2, xmm2
movzx ecx, byte [esi + 5]
divsd xmm6, xmm2
movd xmm2, edx
mov edx, eax
cvtdq2pd xmm2, xmm2
movaps xmm1, xmm6
divsd xmm5, xmm2
movaps xmm0, xmm5
call fcn.0040b6f2
jmp 0x40c869
cmp edi, 6
jne 0x40c869
movsx edx, byte [esi + 4]
mov cl, byte [esi + 5]
call fcn.0040b75a
jmp 0x40c869
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
call fcn.0040bdca
jmp 0x40c869
sub eax, 0xc
je 0x40c7a4
sub eax, 1
je 0x40c77d
sub eax, 1
je 0x40c745
sub eax, 1
jne 0x40c869
mov al, byte [esi + 4]
cmp al, 1
jne 0x40c6f4
push dword [esi + 6]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x18], eax
movzx eax, word [esi + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, word [0x6d23dc]
movzx edi, ax
mov eax, dword [esp + 0x10]
shl edi, 0xa
movzx eax, word [eax + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
shl eax, 0xa
mov dword [esp + 0x20], eax
mov eax, dword [0x72a214]
sub eax, dword [0x72a1d8]
movd xmm1, dword [0x72a218]
cvtdq2pd xmm1, xmm1
movd xmm0, eax
mov eax, edi
cvtdq2pd xmm0, xmm0
div esi
andps xmm0, xmmword [0x6bb550]
xor edx, edx
cvttsd2si ecx, xmm0
movd xmm0, dword [0x72a200]
cvtdq2pd xmm0, xmm0
add cx, ax
movzx eax, cx
movzx ecx, word [0x6d23dc]
movd xmm2, eax
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm2, xmm1
movd xmm1, dword [0x72a1f8]
cvtdq2pd xmm1, xmm1
mulsd xmm2, qword [0x6bb418]
cvttsd2si eax, xmm2
movzx edi, ax
mov eax, dword [0x72a204]
sub eax, dword [0x72a234]
movd xmm0, eax
mov eax, dword [esp + 0x20]
cvtdq2pd xmm0, xmm0
div ecx
andps xmm0, xmmword [0x6bb550]
cvttsd2si esi, xmm0
mov edx, dword [esp + 0x18]
movd xmm0, dword [0x72a1f0]
cvtdq2pd xmm0, xmm0
add si, ax
movzx eax, si
movd xmm2, eax
divsd xmm1, xmm0
cvtdq2pd xmm2, xmm2
mulsd xmm2, xmm1
mulsd xmm2, qword [0x6bb418]
cvttsd2si eax, xmm2
movzx eax, ax
push eax
mov eax, dword [esp + 0x14]
push edi
mov cl, byte [eax + 5]
call fcn.0040b92d
pop ecx
jmp 0x40c70f
cmp al, 2
jne 0x40c869
push dword [0x6d23dc]
mov edx, edi
lea ecx, [esi + 5]
add edx, 0xfffffffb
call fcn.0040b9bf
pop ecx
cmp eax, 1
jne 0x40c869
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0xf
call esi
push 4
mov word [esp + 0x14], ax
pop eax
push eax
call esi
mov edi, dword [esp + 8]
push edi
push 4
mov word [esp + 0x1a], ax
pop eax
push eax
lea eax, [esp + 0x18]
jmp 0x40c85f
call fcn.0040b833
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0xe
movzx edi, ax
call esi
push 6
mov word [esp + 0x24], ax
call esi
push edi
mov word [esp + 0x26], ax
call esi
mov edi, dword [esp + 8]
push edi
mov word [esp + 0x28], ax
lea eax, [esp + 0x24]
push 6
jmp 0x40c85f
movzx eax, word [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
lea eax, [ecx - 0x14]
cmp eax, 0x1374
ja 0x40c869
mov dword [0x72a20c], ecx
jmp 0x40c869
cmp edi, 6
jb 0x40c869
movzx eax, word [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor ecx, ecx
cmp eax, 0xffff
cmove eax, ecx
mov dword [0x72a1dc], eax
jmp 0x40c869
cmp edi, 7
jne 0x40c869
movzx ecx, byte [esi + 5]
mov eax, 0x100
movsx edx, byte [esi + 4]
imul ecx, eax
movzx eax, byte [esi + 6]
add cx, ax
call fcn.0040b7d5
jmp 0x40c869
cmp eax, 0x57
jne 0x40c869
push 5
pop eax
cmp di, ax
jne 0x40c869
movsx ecx, byte [esi + 4]
sub ecx, 0
je 0x40c823
sub ecx, 1
je 0x40c818
sub ecx, 1
je 0x40c832
jmp 0x40c86d
mov byte [0x72a18e], 1
push 1
jmp 0x40c82c
mov byte [0x72a18e], 0
push 0
call dword [sym.imp.USER32.dll_BlockInput]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x57
call esi
push 5
mov word [esp + 0x24], ax
call esi
mov edi, dword [esp + 8]
mov cl, byte [0x72a18e]
push edi
mov word [esp + 0x26], ax
lea eax, [esp + 0x24]
mov byte [esp + 0x28], cl
push 5
mov esi, dword [esp + 0x14]
push eax
call esi
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.005b35b0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x6d2124
push esi
push edi
xor ecx, ecx
call fcn.00488a50
add esp, 0xc
push edi
push 0x6d2144
push 0x6d2164
call fcn.00401109
add esp, 0xc
push esi
call fcn.005c3000
int3